Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid logging errors when expanding a variable with a null context (r…
…esolves #124) (#151) When opentracing is set to off in the nginx configuration and if an opentracing variable was used, get_opentracing_context would return null during its expansion and an error was logged. Instead I think a NGX_ERROR should be returned so the variable is expanded to '-'. Also I made sure the full variable name is logged instead of only the prefix (`opentracing_context_x_datadog_trace_id` instead of `opentracing_context_`).
- Loading branch information