Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(zipkin) support adding trace id in response header #9173

Merged
merged 2 commits into from
Oct 18, 2022

Conversation

windmgc
Copy link
Member

@windmgc windmgc commented Aug 1, 2022

Summary

This PR adds a new field in Zipkin plugin schema to support adding trace id in the response header.

Full changelog

  • Add response_header_for_traceid field in Zipkin plugin. The plugin will set the corresponding header in the response if the field is specified with a string value.
  • Add related tests.

Issue reference

Fix FTI-4198, #8124

@mayocream mayocream added this to the 3.1 milestone Sep 21, 2022
@@ -226,6 +226,9 @@ if subsystem == "http" then

local proxy_span = get_or_add_proxy_span(zipkin, header_filter_start_mu)
proxy_span:annotate("khs", header_filter_start_mu)
if conf.http_response_header_for_traceid then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

local xxx = conf.http_response_header_for_traceid then use it.

@fffonion fffonion merged commit 997c8ce into Kong:master Oct 18, 2022
chronolaw added a commit that referenced this pull request Oct 19, 2022
@windmgc windmgc deleted the feat-zipkin-expose-trace-id branch October 19, 2022 03:11
dndx pushed a commit that referenced this pull request Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants