Commit 35bb2ab
[exporter/datadog] fix a race in serializer (open-telemetry#39669)
#### 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
```1 parent 749f8ba commit 35bb2ab
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments