File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
instrumentation/opentelemetry-instrumentation-fastapi/tests Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## Unreleased
99
10+ - ` opentelemetry-instrumentation-fastapi ` Add autoinstrumentation mechanism tests.
11+ ([ #2860 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2860 ) )
12+
1013## Version 1.27.0/0.48b0 ()
1114
1215### Added
Original file line number Diff line number Diff line change 1414
1515# pylint: disable=too-many-lines
1616
17- from pkg_resources import (
18- DistributionNotFound ,
19- iter_entry_points ,
20- )
2117import unittest
2218from timeit import default_timer
23- from unittest .mock import (
24- Mock ,
25- patch ,
26- )
19+ from unittest .mock import Mock , patch
20+
2721import fastapi
2822from fastapi .middleware .httpsredirect import HTTPSRedirectMiddleware
2923from fastapi .responses import JSONResponse
3024from fastapi .testclient import TestClient
25+ from pkg_resources import DistributionNotFound , iter_entry_points
3126
3227import opentelemetry .instrumentation .fastapi as otel_fastapi
3328from opentelemetry import trace
34- from opentelemetry .instrumentation .auto_instrumentation ._load import (
35- _load_instrumentors ,
36- )
3729from opentelemetry .instrumentation ._semconv import (
3830 OTEL_SEMCONV_STABILITY_OPT_IN ,
3931 _OpenTelemetrySemanticConventionStability ,
4335 _server_duration_attrs_old ,
4436)
4537from opentelemetry .instrumentation .asgi import OpenTelemetryMiddleware
38+ from opentelemetry .instrumentation .auto_instrumentation ._load import (
39+ _load_instrumentors ,
40+ )
4641from opentelemetry .sdk .metrics .export import (
4742 HistogramDataPoint ,
4843 NumberDataPoint ,
You can’t perform that action at this time.
0 commit comments