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

Support application.yaml files in SpringBootServiceNameDetector #9515

Conversation

mateuszrzeszutek
Copy link
Member

Resolves #9456

@mateuszrzeszutek mateuszrzeszutek requested a review from a team as a code owner September 20, 2023 13:30
String result = null;
try (InputStream in = system.openFile("application.yml")) {
try (InputStream in = system.openFile(fileName)) {
result = parseNameFromYaml(in);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there should be a null check here to avoid NPE

Copy link
Member Author

Choose a reason for hiding this comment

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

This one loads the file from the file system, Files.newInputStream() never returns nulls

@laurit laurit merged commit d6c6e8a into open-telemetry:main Sep 21, 2023
46 checks passed
@mateuszrzeszutek mateuszrzeszutek deleted the application-yaml-in-SpringBootServiceNameDetector branch October 5, 2023 18:59
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.

SpringBootServiceNameDetector should detect application.yaml in addition to application.yml
3 participants