I am trying to add logger for my python fastAPI ba...
# support
s
I 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
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
Copy code
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="<http://localhost:4317>"
opentelemetry-instrument uvicorn main:app --host localhost --port 5002
s
Set
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED
to true
s
still doesn't work. 2. How do I remove signoz logs. I only want my service logs.
f
Hi @Sahil, hope you are fine. Did you able to achieve this? I also want to do logging in my fastapi app with opentelemtry and signoz.