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

Corona: Add a request parser for tracing info #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pprkut
Copy link
Contributor

@pprkut pprkut commented Feb 3, 2025

No description provided.

TracingInfoValue::TraceID,
TracingInfoValue::RequestID => $this->traceID ?? $this->parseTraceID(),
TracingInfoValue::SpanID => $this->spanID ?? $this->parseSpanID(),
TracingInfoValue::ParentSpanID => NULL,

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?

Copy link
Contributor Author

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().

Copy link

sonarqubecloud bot commented Feb 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants