Open pjanotti opened 2 hours ago
Pinging code owners:
exporter/prometheus: @Aneurysm9 @dashpole
See Adding Labels via Comments if you do not have permissions to add labels yourself.
@Argannor this seems likely. to be related to https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/35465.
I'm OOO for the next few weeks. Are you able to investigate + fix or alternatively revert your PR?
Thanks!
@dashpole I can have a closer look on monday and come up with a new PR. If that's not fast enough for you feel free to revert and I'll open a new PR reintroducing the changes + fix.
In quick glance this seems likely because the server using the port is actually launched in a goroutine and the port can be closed by shutdown before the server starts.
I think that's a likely explanation. I'll do some experimentation to confirm your hypothesis. If I'm not mistaken the error only occurs sporadically, so it's likely to be a race condition.
My apologies.
Monday should be fine. I won't be able to review for a while, but other approvers are free to do so.
Component(s)
exporter/prometheus
Describe the issue you're reporting
A few instances of failures:
In quick glance this seems likely because the server using the port is actually launched in a goroutine and the port can be closed by shutdown before the server starts.