Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Pliner committed Jan 5, 2025
1 parent 4111333 commit aa22a1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aio_request/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(
):
if metrics_provider is not None:
warnings.warn(
"metrics_provider is deprecated, it will not be used, consider a migration to OpenTelemetry",
"metrics_provider is deprecated, it will not be used, please use builtin prometheus support",
DeprecationWarning,
)

Expand Down
4 changes: 2 additions & 2 deletions aio_request/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .endpoint_provider import EndpointProvider, StaticEndpointProvider
from .pipeline import BypassModule, CircuitBreakerModule, LowTimeoutModule, TransportModule, build_pipeline
from .priority import Priority
from .request import RequestEnricher, Request, SimpleRequestEnricher
from .request import Request, RequestEnricher, SimpleRequestEnricher
from .request_strategy import MethodBasedStrategy, RequestStrategy, sequential_strategy, single_attempt_strategy
from .response_classifier import DefaultResponseClassifier, ResponseClassifier
from .transport import Transport
Expand Down Expand Up @@ -45,7 +45,7 @@ def setup_v2(

if metrics_provider is not None:
warnings.warn(
"metrics_provider is deprecated, it will not be used, consider a migration to OpenTelemetry",
"metrics_provider is deprecated, it will not be used, please use builtin prometheus support",
DeprecationWarning,
)

Expand Down

0 comments on commit aa22a1f

Please sign in to comment.