File tree 5 files changed +17
-4
lines changed
opentelemetry-instrumentation-fastapi
src/opentelemetry/instrumentation/fastapi
opentelemetry-instrumentation-pymemcache/tests
opentelemetry-instrumentation/src/opentelemetry/instrumentation
5 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 16
16
| [ opentelemetry-instrumentation-django] ( ./opentelemetry-instrumentation-django ) | django >= 1.10 | Yes
17
17
| [ opentelemetry-instrumentation-elasticsearch] ( ./opentelemetry-instrumentation-elasticsearch ) | elasticsearch >= 2.0 | No
18
18
| [ opentelemetry-instrumentation-falcon] ( ./opentelemetry-instrumentation-falcon ) | falcon >= 1.4.1, < 4.0.0 | Yes
19
- | [ opentelemetry-instrumentation-fastapi] ( ./opentelemetry-instrumentation-fastapi ) | fastapi ~ = 0.58 | Yes
19
+ | [ opentelemetry-instrumentation-fastapi] ( ./opentelemetry-instrumentation-fastapi ) | fastapi < = 0.90.1 | Yes
20
20
| [ opentelemetry-instrumentation-flask] ( ./opentelemetry-instrumentation-flask ) | flask >= 1.0, < 3.0 | Yes
21
21
| [ opentelemetry-instrumentation-grpc] ( ./opentelemetry-instrumentation-grpc ) | grpcio ~ = 1.27 | No
22
22
| [ opentelemetry-instrumentation-httpx] ( ./opentelemetry-instrumentation-httpx ) | httpx >= 0.18.0 | No
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ dependencies = [
34
34
35
35
[project .optional-dependencies ]
36
36
instruments = [
37
- " fastapi ~ = 0.58 " ,
37
+ " fastapi < = 0.90.1 " ,
38
38
]
39
39
test = [
40
40
" opentelemetry-instrumentation-fastapi[instruments]" ,
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
16
- _instruments = ("fastapi ~ = 0.58 " ,)
16
+ _instruments = ("fastapi < = 0.90.1 " ,)
17
17
18
18
_supports_metrics = True
Original file line number Diff line number Diff line change @@ -509,6 +509,19 @@ def test_uninstrumented(self):
509
509
510
510
PymemcacheInstrumentor ().instrument ()
511
511
512
+ def test_no_op_tracer_provider (self ):
513
+ PymemcacheInstrumentor ().uninstrument ()
514
+ tracer_provider = trace_api .NoOpTracerProvider ()
515
+ PymemcacheInstrumentor ().instrument (tracer_provider = tracer_provider )
516
+
517
+ client = self .make_client ([b"STORED\r \n " ])
518
+ result = client .set (b"key" , b"value" , noreply = False )
519
+ self .assertTrue (result )
520
+
521
+ spans = self .memory_exporter .get_finished_spans ()
522
+ assert spans is not None
523
+ self .assertEqual (len (spans ), 0 )
524
+
512
525
513
526
class PymemcacheHashClientTestCase (TestBase ):
514
527
"""Tests for a patched pymemcache.client.hash.HashClient."""
Original file line number Diff line number Diff line change 69
69
"instrumentation" : "opentelemetry-instrumentation-falcon==0.37b0.dev" ,
70
70
},
71
71
"fastapi" : {
72
- "library" : "fastapi ~ = 0.58 " ,
72
+ "library" : "fastapi < = 0.90.1 " ,
73
73
"instrumentation" : "opentelemetry-instrumentation-fastapi==0.37b0.dev" ,
74
74
},
75
75
"flask" : {
You can’t perform that action at this time.
0 commit comments