Closed kikito closed 4 years ago
@kikito , do I understand correctly that this change will not support the header "uber-trace-id"? Is it possible to put in the configuration the name of the header, which will be responsible for the name of the trace header.
do I understand correctly that this change will not support the header "uber-trace-id"
Your understanding is correct: this change does not include that header.
Is it possible to put in the configuration the name of the header, which will be responsible for the name of the trace header.
That is not possible with this change.
@victorNewRelic Please fill in the contributor form to claim your Kong swag: https://github.com/Kong/kong/blob/master/CONTRIBUTING.md#contributor-t-shirt
Thanks, @hbagdi! Done!
This is an expansion over #69 . In addition of recognizing the W3C header tracing header, this PR adds a new option called
header_type
, with 4 possible values:preserve
: the plugin produces whatever format it receives on each requestb3-single
: always use b3 singleb3
: always use the "regular zipkin" headers, such as x-b3-traceidw3c
: use the w3c formatWhen options.header_type is set to anything other than preserve, and the trace headers don't match (for example the config is b3-single but we receive a w3c-trace-context) then we should send both kinds of headers. A warning is logged.