Automatic injection with nginx as a proxy and an incompatible web server

Hello everyone. We’re using nginx

- as a reverse proxy that terminates TLS connections from browsers and

- to forward requests to upstream servers also via TLS

Our front end is served by caddy2 what is not compatible with the auto injection feature.

I’m wondering if auto injection should also work in nginx when only used as a proxy.

Any experiences with that?

Thanks. Johannes

Hi @Johannes123123,

Auto injection works for nginx, but your traces will be ended on the nginx server. :disappointed_face:

Best regards,

Mizső

Using Nginx and Opentelemetry with Caddy should do the trick.
Even if Nginx is only acting as a proxy, it can  work with the auto-injection feature, s
Looks like Caddy supports opentelemetry and this can give you additional information about the traces.