Skip to content

django instrumentation error #4039

Answered by gustavosett
vishnu-k1 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Change the endpoint in your Django app to "http://10.1.150.74:4318/v1/traces" to match the collector's configuration.

  2. Confirm that the Django application can reach the OpenTelemetry Collector at 10.1.150.74:4318.

  3. Look for errors or warnings in the collector logs that might indicate issues.

  4. Ensure all collector exporters are correctly set up and functioning.

  5. Restart both your Django application and the OpenTelemetry Collector after making changes.

Try something like this:

from opentelemetry.sdk.resources import SERVICE_NAME, Resource
from opentelemetry import trace
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace im…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vishnu-k1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants