File tree 2 files changed +7
-9
lines changed
instrumentation/opentelemetry-instrumentation-asyncio
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ dependencies = [
29
29
" wrapt >= 1.0.0, < 2.0.0" ,
30
30
]
31
31
32
+ [project .optional-dependencies ]
33
+ instruments = []
34
+ test = [
35
+ " opentelemetry-test-utils == 0.41b0.dev" ,
36
+ ]
37
+
32
38
[project .optional-dependencies ]
33
39
test = [
34
40
" opentelemetry-instrumentation-asyncio[instruments]" ,
Original file line number Diff line number Diff line change 14
14
import asyncio
15
15
import sys
16
16
17
- import aiotools
18
17
from opentelemetry .test .test_base import TestBase
19
18
from opentelemetry .trace import get_tracer
20
19
21
- from .common_test_func import async_func
22
20
from opentelemetry .instrumentation .asyncio import AsyncioInstrumentor
21
+ from .common_test_func import async_func
23
22
24
23
py11 = False
25
24
if sys .version_info >= (3 , 11 ):
@@ -44,16 +43,9 @@ async def main():
44
43
async with asyncio .TaskGroup () as tg :
45
44
for _ in range (10 ):
46
45
tg .create_task (async_func ())
47
- else :
48
- async with aiotools .TaskGroup () as tg :
49
- for _ in range (10 ):
50
- tg .create_task (async_func ())
51
46
52
47
asyncio .run (main ())
53
48
spans = self .memory_exporter .get_finished_spans ()
54
49
assert spans
55
50
if py11 :
56
51
self .assertEqual (len (spans ), 10 )
57
- else :
58
- # aiotools.TaskGroup is Out of scope of support.
59
- self .assertEqual (len (spans ), 0 )
You can’t perform that action at this time.
0 commit comments