Skip to content

Conversation

@atoulme
Copy link
Contributor

@atoulme atoulme commented May 1, 2024

The testbed starts and stops the exporter once per signal, but we know it's the same exporter underneath.

This PR changes the behavior of testbed to start and stop the exporter just once. This change is needed to support open-telemetry/opentelemetry-collector#10059

if err = bor.metricsReceiver.Start(context.Background(), componenttest.NewNopHost()); err != nil {
return err
}
// we reuse the receiver across signals. Starting the log receiver starts the metrics and traces receiver.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is confusing, do we need the three factory calls above then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you need them to set the logs, metrics and traces consumer.

@codeboten codeboten merged commit 3bec577 into open-telemetry:main May 3, 2024
@github-actions github-actions bot added this to the next release milestone May 3, 2024
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.

4 participants