Skip to content
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

Actually call listeners #421

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

breedx-splk
Copy link
Contributor

As part of #397, we introduced listeners who can get notified immediately after the otel sdk is created. This is used when creating the initialization events, but users also have the ability to add. Unfortunately, we forgot to actually call the listeners!

@breedx-splk breedx-splk requested a review from a team June 7, 2024 00:00
@breedx-splk breedx-splk mentioned this pull request Jun 7, 2024
Copy link
Contributor

@bidetofevil bidetofevil left a comment

Choose a reason for hiding this comment

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

LGTM - one non-blocking comment about the method name

@@ -348,4 +344,8 @@ private static ServiceManager createServiceManager(Object... services) {
private OpenTelemetryRumBuilder makeBuilder() {
return OpenTelemetryRum.builder(application, buildConfig());
}

private OtelRumConfig buildConfig() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is called in several tests and doesn't simply create a OtelRumConfig instance that just uses the defaults, should the method name indicate that?

@breedx-splk breedx-splk merged commit fdadc56 into open-telemetry:main Jun 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants