opentelemetry provider working with existing traces and spans

This commit is contained in:
Dinesh Yeduguru 2024-11-22 17:46:33 -08:00
parent e9d5a7735b
commit deb11be3e3
2 changed files with 19 additions and 15 deletions

View file

@ -218,7 +218,7 @@ class TracingMiddleware:
async def __call__(self, scope, receive, send):
path = scope["path"]
await start_trace(path)
await start_trace(path, {"location": "server"})
try:
return await self.app(scope, receive, send)
finally: