Issues with Logger Addition in Python FastAPI Based Services
TLDR Sahil is struggling to push server logs to the signoz dashboard and wants to remove signoz logs. Srikanth suggested enabling auto instrumentation but it didn't resolve the issue.
Powered by Struct AI
3
2mo
Jul 25, 2023 (2 months ago)
Sahil
Sahil
12:47 PMI am trying to add logger for my python fastAPI base services.
I am able to see the exceptions and trace. But when I click on
All the logs in the logs tab seem to be internal signoz logs or click house logs.
How can I make it such that all the server logs are pushed and shown in the signoz dashboard.
All I have done is this
I am able to see the exceptions and trace. But when I click on
Go to related logs
I am not getting any logs.All the logs in the logs tab seem to be internal signoz logs or click house logs.
How can I make it such that all the server logs are pushed and shown in the signoz dashboard.
All I have done is this
pip install opentelemetry-distro
pip install opentelemetry-exporter-otlp
opentelemetry-bootstrap --action=install
export OTEL_RESOURCE_ATTRIBUTES=service.name=fastapiApp
export OTEL_EXPORTER_OTLP_ENDPOINT=""
opentelemetry-instrument uvicorn main:app --host localhost --port 5002
Jul 26, 2023 (2 months ago)
Srikanth
Srikanth
06:32 AMSet
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED
to trueSahil
Sahil
07:09 AMstill doesn't work.
2. How do I remove signoz logs. I only want my service logs.
2. How do I remove signoz logs. I only want my service logs.
SigNoz Community
Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI
Indexed 825 threads (61% resolved)
Similar Threads
Sending Python Logs using Otel SDK and Signoz
fahad asked for help in displaying logs within their fastapi application using Signoz. vishal-signoz suggested sending python logs using otel sdk.
3
1mo
Solved
Issues with Logging and Trace Correlation in FastAPI Application
fahad has trouble correlating logs with traces in a FastAPI application. Srikanth gives resourceful guides and advises manual configuration handling.
5
1mo
Solved
Integrating Python's Logging Library with Signoz in a Fastapi Application
fahad wants to integrate Python's logging library with Signoz in a Fastapi application and seeks assistance. Yash rV inquired further about the sources and app deployment.
3
1mo