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

NH-87394: ensure url is formed when port is appended #249

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

cleverchuk
Copy link
Contributor

@cleverchuk cleverchuk commented Jul 29, 2024

A customer experienced startup error with our latest release 2.5.0; this occurred because the code didn't consider that the collector endpoint can be specified with the port number. This code change addresses this scenario and adds unit test to cover this scenario. We'll not attempt to setup the configuration when the collector endpoint is appoptics.com.

Test services 0, 1 and 2

@cleverchuk cleverchuk requested a review from a team as a code owner July 29, 2024 18:22

assertNotNull(System.getProperty("otel.exporter.otlp.logs.endpoint"));
assertDoesNotThrow(() -> new URL(System.getProperty("otel.exporter.otlp.logs.endpoint")));
}
Copy link
Contributor

@cheempz cheempz Jul 29, 2024

Choose a reason for hiding this comment

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

Great to have this test! To confirm, if the customer is pointing to AO but somehow enables log export, does our distro still try to automatically set any of the OTel log export system properties? Wondering if the log export setting should just take no effect in this scenario, i.e. the customer would need to manually set all the OTel config needed to export logs to SWO.

Copy link
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @cleverchuk~!

@cleverchuk cleverchuk merged commit 00b4248 into main Jul 29, 2024
11 checks passed
@cleverchuk cleverchuk deleted the cc/NH-87394 branch July 29, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants