Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes health check spams log with "no opentracing context value found" #169

Open
lathspell opened this issue Jun 17, 2021 · 1 comment

Comments

@lathspell
Copy link

We use Nginx with Opentracing in a Kubernetes cluster. It's behind an oauth2-proxy which usually genereates an OpenTracing header for every request. The Kubernetes health checks on /liveness and /readiness come without any OpenTracing support and thus our logs are spammed with:

2021/06/17 09:12:34 [error] 54#54: *587 no opentracing context value found for span context key x_b3_traceid for request 000055D767E61D10 while logging request, client: x.x.x.x, server: xxx.xxx.xxx, request: "GET /liveness HTTP/1.1", host: "x.x.x.x:80"

Our config is:

{
  "service_name": "nginx",
  "sampler": {
    "type": "const",
    "param": 1
  },
  "reporter": {
    "localAgentHostPort": "$opentracing_jaeger_udp_sender_host:6831"
  }
}

and

opentracing_load_tracer /usr/local/lib/libjaegertracing_plugin.so /etc/jaeger-nginx-config.json;
opentracing on;
opentracing_propagate_context;
@miry
Copy link
Collaborator

miry commented Jun 18, 2021

I think it is similar to #157

It is possible to disable opentracing per location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants