Skip to content

Commit 697b548

Browse files
authored
Merge branch 'main' into main
2 parents df13def + 9afaf26 commit 697b548

File tree

3 files changed

+11
-6
lines changed
  • instrumentation
    • opentelemetry-instrumentation-urllib/src/opentelemetry/instrumentation/urllib
    • opentelemetry-instrumentation-urllib3/src/opentelemetry/instrumentation/urllib3

3 files changed

+11
-6
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- `opentelemetry-instrumentation` Added Otel semantic convention opt-in mechanism
1313
([#1987](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1987))
1414

15+
### Fixed
16+
17+
- `opentelemetry-instrumentation-urllib`/`opentelemetry-instrumentation-urllib3` Fix metric descriptions to match semantic conventions
18+
([#1959]((https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1959))
19+
1520
## Version 1.21.0/0.42b0 (2023-11-01)
1621

1722
### Added

instrumentation/opentelemetry-instrumentation-urllib/src/opentelemetry/instrumentation/urllib/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -307,17 +307,17 @@ def _create_client_histograms(meter) -> Dict[str, Histogram]:
307307
MetricInstruments.HTTP_CLIENT_DURATION: meter.create_histogram(
308308
name=MetricInstruments.HTTP_CLIENT_DURATION,
309309
unit="ms",
310-
description="measures the duration outbound HTTP requests",
310+
description="Measures the duration of outbound HTTP requests.",
311311
),
312312
MetricInstruments.HTTP_CLIENT_REQUEST_SIZE: meter.create_histogram(
313313
name=MetricInstruments.HTTP_CLIENT_REQUEST_SIZE,
314314
unit="By",
315-
description="measures the size of HTTP request messages (compressed)",
315+
description="Measures the size of HTTP request messages.",
316316
),
317317
MetricInstruments.HTTP_CLIENT_RESPONSE_SIZE: meter.create_histogram(
318318
name=MetricInstruments.HTTP_CLIENT_RESPONSE_SIZE,
319319
unit="By",
320-
description="measures the size of HTTP response messages (compressed)",
320+
description="Measures the size of HTTP response messages.",
321321
),
322322
}
323323

instrumentation/opentelemetry-instrumentation-urllib3/src/opentelemetry/instrumentation/urllib3/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -183,17 +183,17 @@ def _instrument(self, **kwargs):
183183
duration_histogram = meter.create_histogram(
184184
name=MetricInstruments.HTTP_CLIENT_DURATION,
185185
unit="ms",
186-
description="measures the duration outbound HTTP requests",
186+
description="Measures the duration of outbound HTTP requests.",
187187
)
188188
request_size_histogram = meter.create_histogram(
189189
name=MetricInstruments.HTTP_CLIENT_REQUEST_SIZE,
190190
unit="By",
191-
description="measures the size of HTTP request messages (compressed)",
191+
description="Measures the size of HTTP request messages.",
192192
)
193193
response_size_histogram = meter.create_histogram(
194194
name=MetricInstruments.HTTP_CLIENT_RESPONSE_SIZE,
195195
unit="By",
196-
description="measures the size of HTTP response messages (compressed)",
196+
description="Measures the size of HTTP response messages.",
197197
)
198198

199199
_instrument(

0 commit comments

Comments
 (0)