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

Remove invalid message header #3958

Merged
merged 1 commit into from
Aug 26, 2021
Merged

Remove invalid message header #3958

merged 1 commit into from
Aug 26, 2021

Conversation

trask
Copy link
Member

@trask trask commented Aug 26, 2021

Unsurprisingly #3863 didn't work out, since the header is still not serializable.

This PR implements @mateuszrzeszutek's #3863 (comment).

private static final String SCOPE_KEY =
TracingChannelInterceptor.class.getName().replace('.', '_') + "_scope";

private static final ThreadLocal<Map<MessageChannel, ContextAndScope>> LOCAL_CONTEXT_AND_SCOPE =
Copy link
Contributor

@anuraaga anuraaga Aug 26, 2021

Choose a reason for hiding this comment

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

Any thoughts on InstrumentationContext<MessageChannel, ThreadLocal<ContextAndScope>>?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah is this library instrumentation? Then Map is better indeed

private static final String SCOPE_KEY =
TracingChannelInterceptor.class.getName().replace('.', '_') + "_scope";

private static final ThreadLocal<Map<MessageChannel, ContextAndScope>> LOCAL_CONTEXT_AND_SCOPE =
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah is this library instrumentation? Then Map is better indeed

@trask trask merged commit 38d5c39 into open-telemetry:main Aug 26, 2021
@trask trask deleted the remove-spring-integration-header branch August 26, 2021 15:53
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.

3 participants