Fix parent endpoint and peer in segment ref and tag url in entry span.#63
Fix parent endpoint and peer in segment ref and tag url in entry span.#63wu-sheng merged 4 commits intoapache:masterfrom
Conversation
|
It does when you check endpoint dependencies(endpoint dashboard). The graph would be totally wrong. |
|
You could use this page to verify the result. http://demo.skywalking.apache.org/dashboard/GENERAL/Endpoint/YWdlbnQ6OnJlY29tbWVuZGF0aW9u.1/YWdlbnQ6OnJlY29tbWVuZGF0aW9u.1_L3JjbWQ=/General-Endpoint/tab/1 Of course, the e2e verification works too. |
src/plugin/plugin_curl.rs
Outdated
| let sw_header = RequestContext::try_with_global_ctx(request_id, |ctx| { | ||
| Ok(encode_propagation(ctx, info.url.path(), &info.peer)) | ||
| let sw_header = RequestContext::try_with_global(request_id, |req_ctx| { | ||
| let span_object = req_ctx.entry_span.span_object(); |
There was a problem hiding this comment.
Is there any case the entry_span is null? Usually, in Java practice. we would pick the first entry span, if it can't be found, we fall back to the first span. This is usually happens this trace starts from a timer/scheduler.
There was a problem hiding this comment.
Or sometimes, the plugin doesn't cover the entry. So, only the current exit span with some local spans left.
There was a problem hiding this comment.
Now PHP trace always start from HTTP requests, so the entry span will exist, I think.
There was a problem hiding this comment.
I just suggest maybe it is better to add a method to retrieve the endpoint(looking for entrySpan's) rather than hard-coding this everywhere.
There was a problem hiding this comment.
Well, I has switch to use get_primary_span method.
How I test it in my personal UI, and it works. |

Uh oh!
There was an error while loading. Please reload this page.