<https://gist.github.com/mmkhitaryan/eb7d662fa6760...
# support
m
https://gist.github.com/mmkhitaryan/eb7d662fa6760b0968d03e5b1fa4ef28 Why when I run my app by
Copy code
OTEL_RESOURCE_ATTRIBUTES=service.name=test \
OTEL_EXPORTER_OTLP_ENDPOINT="<https://ingest.eu.signoz.cloud:443>" \
OTEL_EXPORTER_OTLP_HEADERS="signoz-ingestion-key=072b0626-bf0b-407b-8f32-63ef31ad61e2" \
OTEL_EXPORTER_OTLP_PROTOCOL=grpc \
opentelemetry-instrument python otel_intercept.py
I do not get any spans / logs? The output of that is
Copy code
Attempting to instrument while already instrumented
Attempting to instrument while already instrumented
Attempting to instrument while already instrumented
Attempting to instrument while already instrumented
DEBUG:__main__:Starting OpenTelemetry automatic instrumentation with DEBUG logging.
INFO:__main__:Processing value: 100
INFO:__main__:Processing value: 100
INFO:__main__:Processing value: 42
INFO:__main__:Processing value: 42
INFO:__main__:Processing value: 100
DEBUG:__main__:Script execution completed.
But I do not see any logs in my dashboard? Doesn't LoggingInstrumentor send them to signoz by intercepting logger calls?
n
please don’t share ingestion key in public
m
Now I understand, I didn't realize that I needed to enable the log collection via
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED
. It's not that obvious and I also didn't realize the importance of specifying the
--traces_exporter otlp --metrics_exporter otlp --logs_exporter otlp