mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 08:40:05 +00:00
naming changes
This commit is contained in:
parent
a7de2f3ce4
commit
4a64099243
2 changed files with 6 additions and 6 deletions
|
|
@ -239,7 +239,7 @@ class TracingMiddleware:
|
|||
|
||||
trace_context = await start_trace(trace_path, {"__location__": "server", "raw_path": path})
|
||||
|
||||
async def send_wrapper(message):
|
||||
async def send_with_trace_id(message):
|
||||
if message["type"] == "http.response.start":
|
||||
headers = message.get("headers", [])
|
||||
headers.append([b"x-trace-id", str(trace_context.trace_id).encode()])
|
||||
|
|
@ -247,7 +247,7 @@ class TracingMiddleware:
|
|||
await send(message)
|
||||
|
||||
try:
|
||||
return await self.app(scope, receive, send_wrapper)
|
||||
return await self.app(scope, receive, send_with_trace_id)
|
||||
finally:
|
||||
await end_trace()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue