Skip to content

[exporter/datadog] fix a race in serializer #39669

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

Merged
merged 4 commits into from
Apr 28, 2025

Conversation

songy23
Copy link
Member

@songy23 songy23 commented Apr 25, 2025

Description

Fix a race condition in metric serializer exporter where the exporter may not be fully initialized when it receives metrics

Link to tracking issue

Fixes #39601

Testing

ran the test 100 times with no failures

go test -run TestNewExporter_Serializer -count 100 -timeout 1h
...
PASS
ok  	github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter	513.392s

@github-actions github-actions bot added the exporter/datadog Datadog components label Apr 25, 2025
@songy23 songy23 marked this pull request as ready for review April 28, 2025 14:40
@songy23 songy23 requested a review from a team as a code owner April 28, 2025 14:40
@songy23 songy23 requested a review from fatsheep9146 April 28, 2025 14:40
@songy23 songy23 merged commit 597613b into open-telemetry:main Apr 28, 2025
176 checks passed
@songy23 songy23 deleted the dd-test branch April 28, 2025 15:25
@github-actions github-actions bot added this to the next release milestone Apr 28, 2025
vincentfree pushed a commit to ing-bank/opentelemetry-collector-contrib that referenced this pull request May 6, 2025
#### Description
Fix a race condition in metric serializer exporter where the exporter
may not be fully initialized when it receives metrics

#### Link to tracking issue
Fixes
open-telemetry#39601

#### Testing
ran the test 100 times with no failures
```
go test -run TestNewExporter_Serializer -count 100 -timeout 1h
...
PASS
ok  	github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter	513.392s
```
vincentfree pushed a commit to ing-bank/opentelemetry-collector-contrib that referenced this pull request May 20, 2025
#### Description
Fix a race condition in metric serializer exporter where the exporter
may not be fully initialized when it receives metrics

#### Link to tracking issue
Fixes
open-telemetry#39601

#### Testing
ran the test 100 times with no failures
```
go test -run TestNewExporter_Serializer -count 100 -timeout 1h
...
PASS
ok  	github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter	513.392s
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[exporter/datadogexporter]: Report for failed tests on main
3 participants