https://signoz.io logo
#support
Title
# support
s

Sahil

07/25/2023, 12:47 PM
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

Srikanth Chekuri

07/26/2023, 6:32 AM
Set
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED
to true
s

Sahil

07/26/2023, 7:09 AM
still doesn't work. 2. How do I remove signoz logs. I only want my service logs.
f

fahad yamin

08/21/2023, 7:16 PM
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.