opentelemetry-instrumentation-aiohttp-client 0.55b1__tar.gz → 0.56b0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {opentelemetry_instrumentation_aiohttp_client-0.55b1 → opentelemetry_instrumentation_aiohttp_client-0.56b0}/PKG-INFO +4 -4
- {opentelemetry_instrumentation_aiohttp_client-0.55b1 → opentelemetry_instrumentation_aiohttp_client-0.56b0}/pyproject.toml +3 -3
- {opentelemetry_instrumentation_aiohttp_client-0.55b1 → opentelemetry_instrumentation_aiohttp_client-0.56b0}/src/opentelemetry/instrumentation/aiohttp_client/__init__.py +3 -3
- {opentelemetry_instrumentation_aiohttp_client-0.55b1 → opentelemetry_instrumentation_aiohttp_client-0.56b0}/src/opentelemetry/instrumentation/aiohttp_client/version.py +1 -1
- {opentelemetry_instrumentation_aiohttp_client-0.55b1 → opentelemetry_instrumentation_aiohttp_client-0.56b0}/tests/test_aiohttp_client_integration.py +6 -4
- {opentelemetry_instrumentation_aiohttp_client-0.55b1 → opentelemetry_instrumentation_aiohttp_client-0.56b0}/.gitignore +0 -0
- {opentelemetry_instrumentation_aiohttp_client-0.55b1 → opentelemetry_instrumentation_aiohttp_client-0.56b0}/LICENSE +0 -0
- {opentelemetry_instrumentation_aiohttp_client-0.55b1 → opentelemetry_instrumentation_aiohttp_client-0.56b0}/README.rst +0 -0
- {opentelemetry_instrumentation_aiohttp_client-0.55b1 → opentelemetry_instrumentation_aiohttp_client-0.56b0}/src/opentelemetry/instrumentation/aiohttp_client/package.py +0 -0
- {opentelemetry_instrumentation_aiohttp_client-0.55b1 → opentelemetry_instrumentation_aiohttp_client-0.56b0}/tests/__init__.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: opentelemetry-instrumentation-aiohttp-client
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.56b0
|
4
4
|
Summary: OpenTelemetry aiohttp client instrumentation
|
5
5
|
Project-URL: Homepage, https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-aiohttp-client
|
6
6
|
Project-URL: Repository, https://github.com/open-telemetry/opentelemetry-python-contrib
|
@@ -19,9 +19,9 @@ Classifier: Programming Language :: Python :: 3.12
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.13
|
20
20
|
Requires-Python: >=3.9
|
21
21
|
Requires-Dist: opentelemetry-api~=1.12
|
22
|
-
Requires-Dist: opentelemetry-instrumentation==0.
|
23
|
-
Requires-Dist: opentelemetry-semantic-conventions==0.
|
24
|
-
Requires-Dist: opentelemetry-util-http==0.
|
22
|
+
Requires-Dist: opentelemetry-instrumentation==0.56b0
|
23
|
+
Requires-Dist: opentelemetry-semantic-conventions==0.56b0
|
24
|
+
Requires-Dist: opentelemetry-util-http==0.56b0
|
25
25
|
Requires-Dist: wrapt<2.0.0,>=1.0.0
|
26
26
|
Provides-Extra: instruments
|
27
27
|
Requires-Dist: aiohttp~=3.0; extra == 'instruments'
|
@@ -26,9 +26,9 @@ classifiers = [
|
|
26
26
|
]
|
27
27
|
dependencies = [
|
28
28
|
"opentelemetry-api ~= 1.12",
|
29
|
-
"opentelemetry-instrumentation == 0.
|
30
|
-
"opentelemetry-semantic-conventions == 0.
|
31
|
-
"opentelemetry-util-http == 0.
|
29
|
+
"opentelemetry-instrumentation == 0.56b0",
|
30
|
+
"opentelemetry-semantic-conventions == 0.56b0",
|
31
|
+
"opentelemetry-util-http == 0.56b0",
|
32
32
|
"wrapt >= 1.0.0, < 2.0.0",
|
33
33
|
]
|
34
34
|
|
@@ -135,7 +135,7 @@ from opentelemetry.semconv.metrics.http_metrics import (
|
|
135
135
|
)
|
136
136
|
from opentelemetry.trace import Span, SpanKind, TracerProvider, get_tracer
|
137
137
|
from opentelemetry.trace.status import Status, StatusCode
|
138
|
-
from opentelemetry.util.http import
|
138
|
+
from opentelemetry.util.http import redact_url, sanitize_method
|
139
139
|
|
140
140
|
_UrlFilterT = typing.Optional[typing.Callable[[yarl.URL], str]]
|
141
141
|
_RequestHookT = typing.Optional[
|
@@ -311,9 +311,9 @@ def create_trace_config(
|
|
311
311
|
method = params.method
|
312
312
|
request_span_name = _get_span_name(method)
|
313
313
|
request_url = (
|
314
|
-
|
314
|
+
redact_url(trace_config_ctx.url_filter(params.url))
|
315
315
|
if callable(trace_config_ctx.url_filter)
|
316
|
-
else
|
316
|
+
else redact_url(str(params.url))
|
317
317
|
)
|
318
318
|
|
319
319
|
span_attributes = {}
|
@@ -762,16 +762,16 @@ class TestAioHttpIntegration(TestBase):
|
|
762
762
|
)
|
763
763
|
self.memory_exporter.clear()
|
764
764
|
|
765
|
-
def
|
765
|
+
def test_remove_sensitive_params(self):
|
766
766
|
trace_configs = [aiohttp_client.create_trace_config()]
|
767
767
|
|
768
|
-
app = HttpServerMock("
|
768
|
+
app = HttpServerMock("test_remove_sensitive_params")
|
769
769
|
|
770
770
|
@app.route("/status/200")
|
771
771
|
def index():
|
772
772
|
return "hello"
|
773
773
|
|
774
|
-
url = "http://username:password@localhost:5000/status/200"
|
774
|
+
url = "http://username:password@localhost:5000/status/200?Signature=secret"
|
775
775
|
|
776
776
|
with app.run("localhost", 5000):
|
777
777
|
with self.subTest(url=url):
|
@@ -793,7 +793,9 @@ class TestAioHttpIntegration(TestBase):
|
|
793
793
|
(StatusCode.UNSET, None),
|
794
794
|
{
|
795
795
|
HTTP_METHOD: "GET",
|
796
|
-
HTTP_URL: (
|
796
|
+
HTTP_URL: (
|
797
|
+
"http://REDACTED:REDACTED@localhost:5000/status/200?Signature=REDACTED"
|
798
|
+
),
|
797
799
|
HTTP_STATUS_CODE: int(HTTPStatus.OK),
|
798
800
|
},
|
799
801
|
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|