You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attributes are applied from the final location of the request. Looks like, try_files redirects your request to the regexp location, which doesn't have any otel_span_attr directives.
Documentation used
https://nginx.org/en/docs/ngx_otel_module.html#otel_span_attr
Environment
Include the result of the following commands:
docker run --rm nginx:1.27.1-alpine3.20-otel nginx -V
docker run --rm nginx:1.27.1-alpine3.20-otel uname -a
Description
otel_span_attr
directive is used inlocation
directive is same asif
otel_span_attr
directive is used inserver
directive.to reproduce the issue and doesn't contain third-party modules
nginx configuration
or share the configuration in gist.
nginx debug log
It is advised to enable
debug logging.
or share the debug log in gist.
Workaround
Move
location
directives onserver
.Initially posted nginx/nginx#195
The text was updated successfully, but these errors were encountered: