https://signoz.io logo
Title
e

Einav Daniel

03/01/2023, 4:51 PM
Hi Everybody! I had just configured Signoz on my POC server - a Kubernetes single node with a Flask application executed with Gunicorn. I get traces all right but I have questions regarding logs: A - The only logs I get are from the k8s operator, which follows the k8s logs file. That's an issue since it will break any multiline log into single lines, which is not useable. How do I get the python OTEL instrumentation to send logs to the collector? B - I guess it's a side effect of A but the Exceptions tab stays clean even though I trigger some exceptions on the Flask server.
s

Srikanth Chekuri

03/02/2023, 12:25 AM
How do I get the python OTEL instrumentation to send logs to the collector?
https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples/logs
I guess it’s a side effect of A but the Exceptions tab stays clean even though I trigger some exceptions on the Flask server.
That shouldn’t be the case, are these exceptions caught and logged or just raised. If they are caught logged there won’t be any in the exceptions tab as they come from the traces exception event https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#record-exception.