Skip to content

opentracing: SpanContext not found in Extract carrier #10216

@zetaab

Description

@zetaab

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?

I am testing opentelemetry. I added following parameters to traefik:

        - --tracing.openTelemetry.address=tempo.tempo.svc.cluster.local:4318
        - --tracing.openTelemetry=true
        - --tracing.openTelemetry.insecure=true

grafana tempo is deployed using https://github.com/grafana/helm-charts/tree/main/charts/tempo

What did you see instead?

After everything is running, I can see that some traces are going to tempo. However, I can see quite a lot of spam:

2023-11-07T10:38:03Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:09Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:09Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:19Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:19Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:29Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:29Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:39Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:39Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:49Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:49Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:59Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint
2023-11-07T10:38:59Z DBG go/src/github.com/traefik/traefik/pkg/middlewares/tracing/entrypoint.go:39 > Failed to extract the context error="opentracing: SpanContext not found in Extract carrier" middlewareName=tracing middlewareType=TracingEntryPoint

that is coming from https://github.com/traefik/traefik/blob/v3.0/pkg/middlewares/tracing/entrypoint.go#L36-L39

What version of Traefik are you using?

I am using latest from v3.0 branch currently

What is your environment & configuration?

        - --global.checknewversion
        - --entrypoints.metrics.address=:9100/tcp
        - --entrypoints.traefik.address=:9000/tcp
        - --entrypoints.web.address=:8000/tcp
        - --entrypoints.websecure.address=:8443/tcp
        - --api.dashboard=true
        - --ping=true
        - --metrics.prometheus=true
        - --metrics.prometheus.entrypoint=metrics
        - --providers.kubernetescrd
        - --providers.kubernetesingress
        - --providers.kubernetesingress.ingressendpoint.publishedservice=traefik-external/traefik
        - --providers.kubernetesingress.ingressClass=traefik-external
        - --entrypoints.web.http.redirections.entrypoint.to=:443
        - --entrypoints.web.http.redirections.entrypoint.scheme=https
        - --entrypoints.web.proxyProtocol.trustedIPs=127.0.0.1,100.64.0.0/11,100.96.0.0/11
        - --entrypoints.websecure.http.tls=true
        - --entrypoints.websecure.proxyProtocol.trustedIPs=127.0.0.1,100.64.0.0/11,100.96.0.0/11
        - --tracing.openTelemetry.address=tempo.tempo.svc.cluster.local:4318
        - --tracing.openTelemetry=true
        - --tracing.openTelemetry.insecure=true
        - --log.level=DEBUG

Add more configuration information here.

If applicable, please paste the log output in DEBUG level

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions