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

Fix check for parent context when extract propagation context fails #319

Merged

Conversation

w1am
Copy link
Contributor

@w1am w1am commented Aug 28, 2024

Changed: Removed check for "application/json" when tracing subscriptions
Changed: Try to inject trace context in metadata regardless of event type.
Changed: Extract trace context from Event rather than OriginalEvent to account for link metadata.
Fixed: Fix check for parent context when extract propagation context fails

Previously, if (parentContext == null) return; was returning false even though the extraction of the propagation context had failed. I changed it to parentContext == default(ActivityContext) because the tracing method returns a default ActivityContext when it fails to extract the trace context.

@w1am w1am changed the title Fix context check in trace subscription method Fix check for parent context when extract propagation context fails Aug 28, 2024
@w1am w1am force-pushed the DEVEX-75-NET-Client-Exception-on-non-json-metadata-events branch from f55461a to 62915aa Compare August 28, 2024 12:40
@w1am w1am force-pushed the DEVEX-75-NET-Client-Exception-on-non-json-metadata-events branch from 62915aa to 1ff5d29 Compare August 28, 2024 13:19
@w1am w1am requested review from YoEight and RagingKore and removed request for YoEight and RagingKore August 28, 2024 15:06
@w1am w1am marked this pull request as draft August 29, 2024 05:51
@w1am w1am marked this pull request as ready for review August 29, 2024 07:16
Copy link
Contributor

@RagingKore RagingKore left a comment

Choose a reason for hiding this comment

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

LGTM

@w1am w1am merged commit 09fcaa6 into master Aug 29, 2024
64 checks passed
@w1am w1am deleted the DEVEX-75-NET-Client-Exception-on-non-json-metadata-events branch August 29, 2024 09:20
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