From aa22a1f2e3536e39b2729ec080873f9dd600a708 Mon Sep 17 00:00:00 2001 From: Iurii Pliner Date: Sun, 5 Jan 2025 13:24:09 +0000 Subject: [PATCH] Fix deprecation warnings --- aio_request/aiohttp.py | 2 +- aio_request/setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aio_request/aiohttp.py b/aio_request/aiohttp.py index d451e67..84ec279 100644 --- a/aio_request/aiohttp.py +++ b/aio_request/aiohttp.py @@ -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, ) diff --git a/aio_request/setup.py b/aio_request/setup.py index a18078d..04770de 100644 --- a/aio_request/setup.py +++ b/aio_request/setup.py @@ -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 @@ -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, )