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

[exporter/datadog] Fix canceling on createTracesExporter #9797

Merged
merged 2 commits into from May 9, 2022

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented May 9, 2022

Description:

Fixes a bug introduced in #9426 where a context is incorrectly canceled via defer instead of being canceled only when the function errors out.

It was spotted by @gbbr on #9426 (comment).

Since this has not been out on any release, no changelog note is needed.

@mx-psi mx-psi added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 9, 2022
@mx-psi mx-psi requested a review from a team as a code owner May 9, 2022 08:54
@mx-psi mx-psi requested a review from djaglowski May 9, 2022 08:54
@mx-psi mx-psi added the release:blocker The issue must be resolved before cutting the next release label May 9, 2022
@mx-psi
Copy link
Member Author

mx-psi commented May 9, 2022

I am marking this as a blocker since it affects the Datadog exporter functionality in a bad way (missing host metadata, which can result in missing tags and incorrect dimensions).

Copy link
Member

@gbbr gbbr left a comment

Choose a reason for hiding this comment

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

👍🏻

@mx-psi
Copy link
Member Author

mx-psi commented May 9, 2022

Ci failure is unrelated: trying to fix on #9799

@mx-psi mx-psi added the ready to merge Code review completed; ready to merge by maintainers label May 9, 2022
@mx-psi
Copy link
Member Author

mx-psi commented May 9, 2022

@djaglowski we need this to be merged before Wednesday, since this addresses an important bug that would land on the next release otherwise. Could you have a look?

@bogdandrutu bogdandrutu merged commit 613c9ed into open-telemetry:main May 9, 2022
@mx-psi mx-psi deleted the mx-psi/fix-canceling branch May 10, 2022 07:12
djaglowski pushed a commit to djaglowski/opentelemetry-collector-contrib that referenced this pull request May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers release:blocker The issue must be resolved before cutting the next release Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants