File tree 2 files changed +9
-11
lines changed
instrumentation/opentelemetry-instrumentation-fastapi/tests
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
7
7
8
8
## Unreleased
9
9
10
+ - ` opentelemetry-instrumentation-fastapi ` Add autoinstrumentation mechanism tests.
11
+ ([ #2860 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2860 ) )
12
+
10
13
## Version 1.27.0/0.48b0 ()
11
14
12
15
### Added
Original file line number Diff line number Diff line change 14
14
15
15
# pylint: disable=too-many-lines
16
16
17
- from pkg_resources import (
18
- DistributionNotFound ,
19
- iter_entry_points ,
20
- )
21
17
import unittest
22
18
from timeit import default_timer
23
- from unittest .mock import (
24
- Mock ,
25
- patch ,
26
- )
19
+ from unittest .mock import Mock , patch
20
+
27
21
import fastapi
28
22
from fastapi .middleware .httpsredirect import HTTPSRedirectMiddleware
29
23
from fastapi .responses import JSONResponse
30
24
from fastapi .testclient import TestClient
25
+ from pkg_resources import DistributionNotFound , iter_entry_points
31
26
32
27
import opentelemetry .instrumentation .fastapi as otel_fastapi
33
28
from opentelemetry import trace
34
- from opentelemetry .instrumentation .auto_instrumentation ._load import (
35
- _load_instrumentors ,
36
- )
37
29
from opentelemetry .instrumentation ._semconv import (
38
30
OTEL_SEMCONV_STABILITY_OPT_IN ,
39
31
_OpenTelemetrySemanticConventionStability ,
43
35
_server_duration_attrs_old ,
44
36
)
45
37
from opentelemetry .instrumentation .asgi import OpenTelemetryMiddleware
38
+ from opentelemetry .instrumentation .auto_instrumentation ._load import (
39
+ _load_instrumentors ,
40
+ )
46
41
from opentelemetry .sdk .metrics .export import (
47
42
HistogramDataPoint ,
48
43
NumberDataPoint ,
You can’t perform that action at this time.
0 commit comments