Replies: 4 comments
-
@srikanthccv you were very helpful last week, do you have any ideas? |
Beta Was this translation helpful? Give feedback.
-
We are having the same problem with FastAPI. From what I can tell the OTEL_TRACES_EXPORTER env vars are currently ignored, because the _OTelSDKConfigurator is never used. |
Beta Was this translation helpful? Give feedback.
-
@aschuhl, do not the app in debug mode and try again. |
Beta Was this translation helpful? Give feedback.
-
for anyone who is stuck here: check this link https://opentelemetry-python.readthedocs.io/en/latest/exporter/otlp/otlp.html |
Beta Was this translation helpful? Give feedback.
-
So i have been having some trouble sending traces without the
opentelemetry-instrument
command.I followed the manual instrumentation: https://opentelemetry.io/docs/instrumentation/python/manual/
and the flask instrumentation: https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/flask/flask.html
but am still having problems.
So following the flask guide, I created an app with their code:
If a run:
It works and outputs traces:
But the point of me instrumenting was so I wouldn't use the opentelemetry-instrument command.
But, running:
Does not work. I noticed when getting the spans, it outputs:
So I looked at the manual instrumentation and added:
This now outputs a span that is recording:
but it still doesn't output the full trace to console. What I am missing to achieve this?
PS. Ultimately I want to send the traces to a collector, and I experience the same issue. Works when passing the opentelemetry-instrument command, but no traces are sent without it.
Beta Was this translation helpful? Give feedback.
All reactions