Skip to content

Commit 704f3c0

Browse files
committed
fix examples
Signed-off-by: emdneto <[email protected]>
1 parent 552d3fa commit 704f3c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def response_hook(span, request_obj, response):
6767
import requests
6868
from opentelemetry.instrumentation.requests import RequestsInstrumentor
6969
70-
custom_boundaries = [0, 5, 10, 25, 50, 100, 250, 500, 1000]
70+
custom_boundaries = [0.0, 5.0, 10.0, 25.0, 50.0, 100.0]
7171
7272
RequestsInstrumentor().instrument(
7373
duration_histogram_boundaries=custom_boundaries

instrumentation/opentelemetry-instrumentation-requests/tests/test_requests_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ def test_basic_metric_both_semconv(self):
847847

848848
def test_custom_histogram_boundaries(self):
849849
RequestsInstrumentor().uninstrument()
850-
custom_boundaries = (0, 1, 2, 5, 10, 20, 50, 100)
850+
custom_boundaries = (0.0, 1.0, 2.0, 5.0, 10.0, 20.0, 50.0, 100.0)
851851
meter_provider, memory_reader = self.create_meter_provider()
852852
RequestsInstrumentor().instrument(
853853
meter_provider=meter_provider,
@@ -863,7 +863,7 @@ def test_custom_histogram_boundaries(self):
863863

864864
def test_custom_histogram_boundaries_new_semconv(self):
865865
RequestsInstrumentor().uninstrument()
866-
custom_boundaries = (0, 5, 10, 25, 50, 100, 250, 500, 1000)
866+
custom_boundaries = (0.0, 5.0, 10.0, 25.0, 50.0, 100.0)
867867
meter_provider, memory_reader = self.create_meter_provider()
868868
RequestsInstrumentor().instrument(
869869
meter_provider=meter_provider,

0 commit comments

Comments
 (0)