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

Tracing: Allow trace id to propagate and included in logs even though tracing disabled #1126

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

marefr
Copy link
Contributor

@marefr marefr commented Oct 23, 2024

What this PR does / why we need it:
Currently, if a plugin doesn't have tracing enabled any traceID's forwarded from caller would not be included in logs. This should fix this.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

@marefr marefr requested a review from a team as a code owner October 23, 2024 10:59
@marefr marefr requested review from wbrowne, andresmgot and oshirohugo and removed request for a team October 23, 2024 10:59
Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

LGTM, Can you add a test so we ensure that InitGlobalTracerProvider is called?

@marefr marefr self-assigned this Oct 23, 2024
@marefr
Copy link
Contributor Author

marefr commented Oct 23, 2024

LGTM, Can you add a test so we ensure that InitGlobalTracerProvider is called?

@andresmgot let me know if this is enough for you?

@marefr marefr requested a review from andresmgot October 23, 2024 16:11
Copy link
Contributor

@andresmgot andresmgot left a comment

Choose a reason for hiding this comment

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

sounds good, thanks!

@marefr marefr merged commit 000fe01 into main Oct 24, 2024
3 checks passed
@marefr marefr deleted the fix_trace_id_propagation branch October 24, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants