Exporter is shutdown before controller finishes pushing metric events in otel-collector example #1499
Labels
bug
Something isn't working
documentation
Provides helpful information
question
Further information is requested
Milestone
opentelemetry-go/example/otel-collector/main.go
Lines 92 to 96 in c066f15
As I understand it, calling
tracerProvider.Shutdown()
eventually invokesShotdown()
of exporter which is shared with a controller.As commented,
cont.Stop()
tries to push metric events to the exporter.So,
cont.Stop()
should be called beforetracerProvider.Shutdown()
, or it may cause same issue with #1437 .Is it right?
The text was updated successfully, but these errors were encountered: