mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 21:56:07 +08:00
Set schema_url on all tracers and meters (#1977)
This commit is contained in:
@ -328,7 +328,9 @@ class TestProgrammatic(InstrumentationTest, WsgiTestBase):
|
||||
if isinstance(point, NumberDataPoint):
|
||||
self.assertEqual(point.value, 0)
|
||||
|
||||
def _assert_basic_metric(self, expected_duration_attributes, expected_requests_count_attributes):
|
||||
def _assert_basic_metric(
|
||||
self, expected_duration_attributes, expected_requests_count_attributes
|
||||
):
|
||||
metrics_list = self.memory_metrics_reader.get_metrics_data()
|
||||
for resource_metric in metrics_list.resource_metrics:
|
||||
for scope_metrics in resource_metric.scope_metrics:
|
||||
@ -394,7 +396,7 @@ class TestProgrammatic(InstrumentationTest, WsgiTestBase):
|
||||
)
|
||||
|
||||
@patch.dict(
|
||||
"os.environ",
|
||||
"os.environ",
|
||||
{
|
||||
OTEL_PYTHON_INSTRUMENTATION_HTTP_CAPTURE_ALL_METHODS: "1",
|
||||
},
|
||||
|
Reference in New Issue
Block a user