open-telemetry / opentelemetry-operator

Kubernetes Operator for OpenTelemetry Collector
Apache License 2.0
1.13k stars 396 forks source link

Python auto-instrumentation returns failed traces #2721

Closed muandane closed 3 months ago

muandane commented 4 months ago

Component(s)

instrumentation

Describe the issue you're reporting

I have a couple of python containers running on kubernetes, that use Pika mainly and do some exchange with a minio service and a rabbitmq service, i do recover some of the traces correctly but i get spammed with Erroring traces from Urllib3 that tries to connect to port 42699 on local host (i dont have nor did i configure anything that uses urllib)

this is my instrumentation configuration as of now:

---
apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
  name: python-traces
  namespace: caas-apps
spec:
  exporter:
    endpoint: http://caas-collector.caas-infra.svc.cluster.local:4318
  propagators:
    - tracecontext
    - baggage
    - b3
  sampler:
    type: parentbased_traceidratio
    argument: '1'
  python:
    env:
      - name: OTEL_PYTHON_DISABLED_INSTRUMENTATIONS
        value: "urllib3,urllib,flask"

i get alot of these error traces that say the same thing image

trace-error

image

i'm running other language instrumentations using different instrumentation definitions for java and nodejs and both of them work flawlessly.

iblancasa commented 4 months ago

(i dont have nor did i configure anything that uses urllib)

Could you check your dependencies? Maybe something you installed is doing that.

muandane commented 3 months ago

Fixed by disabling requests