File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
instrumentation/opentelemetry-instrumentation-asyncio Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ dependencies = [
2929 " wrapt >= 1.0.0, < 2.0.0" ,
3030]
3131
32+ [project .optional-dependencies ]
33+ instruments = []
34+ test = [
35+ " opentelemetry-test-utils == 0.41b0.dev" ,
36+ ]
37+
3238[project .optional-dependencies ]
3339test = [
3440 " opentelemetry-instrumentation-asyncio[instruments]" ,
Original file line number Diff line number Diff line change 1414import asyncio
1515import sys
1616
17- import aiotools
1817from opentelemetry .test .test_base import TestBase
1918from opentelemetry .trace import get_tracer
2019
21- from .common_test_func import async_func
2220from opentelemetry .instrumentation .asyncio import AsyncioInstrumentor
21+ from .common_test_func import async_func
2322
2423py11 = False
2524if sys .version_info >= (3 , 11 ):
@@ -44,16 +43,9 @@ async def main():
4443 async with asyncio .TaskGroup () as tg :
4544 for _ in range (10 ):
4645 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 ())
5146
5247 asyncio .run (main ())
5348 spans = self .memory_exporter .get_finished_spans ()
5449 assert spans
5550 if py11 :
5651 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