Skip to content

change(zipkin): rearrange the child span#3877

Merged
membphis merged 2 commits into
apache:masterfrom
spacewander:zk
Mar 23, 2021
Merged

change(zipkin): rearrange the child span#3877
membphis merged 2 commits into
apache:masterfrom
spacewander:zk

Conversation

@spacewander

Copy link
Copy Markdown
Member

If you need to be compatible with the old one, you can set the
span_version to 1.

Fix #3827

Signed-off-by: spacewander [email protected]

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

If you need to be compatible with the old one, you can set the
span_version to 1.

Fix apache#3827

Signed-off-by: spacewander <[email protected]>
@spacewander
spacewander marked this pull request as ready for review March 22, 2021 08:06
Comment thread apisix/plugins/zipkin.lua Outdated
local request_span = ctx.opentracing.request_span
ctx.opentracing.rewrite_span = request_span:start_child_span(
"apisix.rewrite", start_timestamp)
if conf.span_version == 1 then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what about user pre-defined version const?

Signed-off-by: spacewander <[email protected]>
└── body_filter
```

注意上述的 span 的名称跟同名的 Nginx phase 没有关系。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
注意上述的 span 的名称跟同名的 Nginx phase 没有关系。
注意:上述的 span 的名称跟同名的 Nginx phase 没有关系。

This should be better.

@membphis
membphis merged commit 116deb2 into apache:master Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: the duration recorded by the zipkin plugin does not match the phase

4 participants