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

Extract tracing metadata from Event not OriginalEvent #284

Conversation

w1am
Copy link
Contributor

@w1am w1am commented Aug 28, 2024

Changed: Extract tracing metadata from Event

We were previously extracting trace context from the OriginalEvent. This means we will not be able to extract the trace information when consuming events from a category stream. This PR extracts the trace information from the Event itself. This applies to both regular and persistent subscriptions.

Also improved test testTracingContextInjectionIsIgnoredAsExpectedWhenUserMetadataIsNonNullAndNotAJsonObject to ensure no span is created in subscription for events with non-json metadata.

@w1am w1am force-pushed the DEVEX-77-Java-Client-Don-t-create-span-for-events-with-non-json-metadata branch from b6cd535 to ac15c5c Compare August 29, 2024 08:48
@w1am w1am changed the title Span is not created for non json metadata Extract tracing metadata from Event not OriginalEvent Aug 29, 2024
@w1am w1am requested a review from YoEight August 29, 2024 08:54
@w1am w1am force-pushed the DEVEX-77-Java-Client-Don-t-create-span-for-events-with-non-json-metadata branch from ac15c5c to 8af0a89 Compare August 29, 2024 09:54
@YoEight YoEight merged commit 12a1d4c into trunk Sep 1, 2024
38 checks passed
@YoEight YoEight deleted the DEVEX-77-Java-Client-Don-t-create-span-for-events-with-non-json-metadata branch September 1, 2024 03:07
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