#support

Correlating Uvicorn Logs with Traces in FastAPI application

TLDR fahad wants to correlate uvicorn logs with their traces for a FastAPI application but is having issues. vishal-signoz reprimanded him for duplicate posts.

Powered by Struct AI

1

Aug 29, 2023 (1 month ago)
fahad
Photo of md5-bbf0ac7435b8d8a33de4c7665168df87
fahad
09:15 AM
Hi,
I have a fastapi application and I am saving the uvicorn logs to a file and added the filelog receiver to otel-collector-config.yaml using this guide https://signoz.io/docs/userguide/collect_logs_from_file/ . But my logs don't have trace_id and span_id. I want to correlate my logs with their traces. I am not sure how to do this. Your help will be appreciated.
Aug 30, 2023 (1 month ago)
vishal-signoz
Photo of md5-f936d3e5743d23344d6c60813189716f
vishal-signoz
12:54 AM
Please don’t post duplicate posts in multiple channels.
https://signoz-community.slack.com/archives/C01HWUTP4HH/p1693300491258379
fahad
Photo of md5-bbf0ac7435b8d8a33de4c7665168df87
fahad
06:28 AM
apologies vishal-signoz

1