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

Consolidate request listener lists #5667

Merged
merged 1 commit into from
Mar 23, 2022
Merged

Consolidate request listener lists #5667

merged 1 commit into from
Mar 23, 2022

Conversation

trask
Copy link
Member

@trask trask commented Mar 22, 2022

follow-up from @mateuszrzeszutek's #5655 (comment)

This PR moves context customizer execution and request listener start execution from right before the span is started until right after the span is started.

This makes the newly create span available in the Context, which the metric listeners need for generating exemplars, and seems like could be useful for other listeners.

I'm thinking it doesn't matter much one way or the other for context customizers, so seems to make some sense to me to keep them with the listeners (after span start), so we can think of all context updates happening after span start.

@trask trask requested a review from a team March 22, 2022 19:02
Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

Choose a reason for hiding this comment

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

Thanks! 👍

@trask trask merged commit bb677a0 into open-telemetry:main Mar 23, 2022
@trask trask deleted the consolidate-request-listeners branch March 23, 2022 17:56
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
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.

2 participants