Skip to content

Commit 99ba99a

Browse files
authored
Update client.py
1 parent 4a2b43b commit 99ba99a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/testapps/python/client.py

+10
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@
1616
processor = BatchSpanProcessor(span_exporter=exporter)
1717
trace.set_tracer_provider(provider)
1818
provider.add_span_processor(processor)
19+
20+
21+
async def main():
22+
async with aiohttp.ClientSession() as session:
23+
async with session.get('http://httpbin.org/get') as resp:
24+
print(resp.status)
25+
print(await resp.text())
26+
27+
28+
asyncio.run(main())

0 commit comments

Comments
 (0)