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

More defensive distributed HTTP propagator #1304

Merged
merged 1 commit into from
Jan 8, 2021
Merged

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Jan 8, 2021

Adds a "begin/rescue" block around HTTPPropagator extractors and injectors. This should catch any issues that could arise for any propagator implementations, specially useful for custom propagators.

This ensures that HTTPPropagator.inject! and HTTPPropagator.extract never fail.

An error is logged to Datadog.logger if any error occurs in the propagators.

@marcotc marcotc added the core Involves Datadog core libraries label Jan 8, 2021
@marcotc marcotc self-assigned this Jan 8, 2021
@marcotc marcotc requested a review from a team January 8, 2021 19:36
@marcotc marcotc merged commit a770176 into master Jan 8, 2021
@marcotc marcotc deleted the rescue-from-http-inject branch January 8, 2021 20:24
@github-actions github-actions bot added this to the 0.45.0 milestone Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants