-
Notifications
You must be signed in to change notification settings - Fork 15
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
Corona: Add a request parser for tracing info #37
base: master
Are you sure you want to change the base?
Conversation
TracingInfoValue::TraceID, | ||
TracingInfoValue::RequestID => $this->traceID ?? $this->parseTraceID(), | ||
TracingInfoValue::SpanID => $this->spanID ?? $this->parseSpanID(), | ||
TracingInfoValue::ParentSpanID => NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this null always?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the information available on the top level of the request, i.e. what's coming from external systems. The TraceID
is generated by nginx and is coming from there. There SpanID
we generate here to say "This is the PHP processing span". There's no point to generate an ID for a parent at this point because there is none. You can set the SpanID
as ParentSpanID
later through setMockValues()
/addMockValues()
.
|
No description provided.