-
Notifications
You must be signed in to change notification settings - Fork 986
add missing declarative config resource providers #14222
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
base: main
Are you sure you want to change the base?
add missing declarative config resource providers #14222
Conversation
f5600d0
to
6728f62
Compare
@laurit please have a look 😄 |
...rary/src/main/java/io/opentelemetry/instrumentation/resources/AttributeResourceProvider.java
Outdated
Show resolved
Hide resolved
return create(); | ||
} | ||
|
||
public Resource create() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be part of the public api?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JarResourceComponentProvider is in the internal package - so we need this to be public unless we do some tricks.
I actually don't mind it being in the public API - it signals that config properties are not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if the detector decides later that it wants to look at config properties, but people are calling the method that doesn't pass in config properties?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point - fixed
...g/src/main/java/io/opentelemetry/javaagent/tooling/resources/ResourceCustomizerProvider.java
Outdated
Show resolved
Hide resolved
...g/src/main/java/io/opentelemetry/javaagent/tooling/resources/ResourceCustomizerProvider.java
Show resolved
Hide resolved
...a/io/opentelemetry/instrumentation/resources/internal/ManifestResourceComponentProvider.java
Outdated
Show resolved
Hide resolved
...n/java/io/opentelemetry/instrumentation/resources/internal/JarResourceComponentProvider.java
Outdated
Show resolved
Hide resolved
.../java/io/opentelemetry/instrumentation/spring/resources/SpringResourceComponentProvider.java
Outdated
Show resolved
Hide resolved
@laurit can you check again? |
f283f17
to
e99c20a
Compare
@laurit can you check again? |
1 similar comment
@laurit can you check again? |
3616ed0
to
78f8138
Compare
78f8138
to
2a610ea
Compare
Fixes #14081