- syntax
opentracing on|off - default:
off - context:
http,server,location
Enables or disables OpenTracing for NGINX requests.
- syntax
opentracing_load_tracer <tracer_library> <tracer_config_file> - context:
http,server
Dynamicaly loads in a tracer implementing the OpenTracing dynamic loading interface.
tracer_library provides the path to the tracer's OpenTracing plugin, and tracer_config_file
provides a path to a JSON configuration for the tracer. See the vendor's documentation for
details on the format of the JSON configuration.
- syntax
opentracing_propagate_context - context:
http,server,location
Propagates the active span context for upstream requests. (See inject-extract)
- syntax
opentracing_fastcgi_propagate_context - context:
http,server,location
Propagates the active span context for FastCGI requests. (See inject-extract)
- syntax
opentracing_grpc_propagate_context - context:
http,server,location
Propagates the active span context for gRPC requests. (See inject-extract)
- syntax
opentracing_trace_locations on|off - default:
on - context:
http,server,location
Enables the creation of OpenTracing spans for location blocks within a request.
- syntax
opentracing_operation_name <operation_name> - default: The name of the first location block entered.
- context:
http,server,location
Sets the operation name of the span for an NGINX request.
- syntax
opentracing_location_operation_name <operation_name> - default: The name of the location block.
- context:
http,server,location
Sets the operation name of the span for an NGINX location block.
- syntax
opentracing_trust_incoming_span on|off - default:
on - context:
http,server,location
Enables or disables using OpenTracing spans from incoming requests as parent for created ones. Might be disabled for security reasons.
- syntax
opentracing_tag <key> <value> - context:
http,server,location
Sets a tag
with the given key and value for an NGINX span.
Expands to the a value of the active span context; the last part of the variable name is the span context's header converted to lower case with dashes replaced by underscores.
Expands to a binary string representation of the active span.