cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Johannes123123
Newcomer

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

2 REPLIES 2

Mizső
DynaMight Leader
DynaMight Leader

Hi @Johannes123123,

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

Best regards,

Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

PacoPorro
Dynatrace Leader
Dynatrace Leader

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.

https://caddyserver.com/docs/caddyfile/directives/tracing
https://docs.dynatrace.com/docs/extend-dynatrace/opentelemetry/overview/traces

 

Featured Posts