add missing declarative config resource providers#14222
add missing declarative config resource providers#14222trask merged 29 commits intoopen-telemetry:mainfrom
Conversation
f5600d0 to
6728f62
Compare
|
@laurit please have a look 😄 |
|
@laurit can you check again? |
f283f17 to
e99c20a
Compare
|
@laurit can you check again? |
1 similar comment
|
@laurit can you check again? |
78f8138 to
2a610ea
Compare
|
@trask can you check again? |
|
@trask I've separated the "extraction" logic (which is re-usable) from the declarative and non-declarative provider interfaces, which should make the code easier to maintain (e.g. to delete the non-declarative classes) |
|
🔧 The result from spotlessApply was committed to the PR branch. |
66b0827 to
27bcee2
Compare
|
🔧 The result from spotlessApply was committed to the PR branch. |
|
@trask can you check again? |
|
where can I add an integration test tests all resource providers, including a customizer in javaagent-tooling. @laurit do you have an idea? |
6acc35c to
194d2cb
Compare
|
@laurit please check again |
| // (DistroComponentProvider in this package) | ||
| // service: adds "service.name" and "service.instance.id" attributes | ||
| // (https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/incubator/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/ServiceResourceDetector.java) | ||
| private static final List<String> REQUIRED_DETECTORS = Arrays.asList("distribution", "service"); |
There was a problem hiding this comment.
should we leave out service since it's promoting using env var instead of:
trask
left a comment
There was a problem hiding this comment.
https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/14222/files#r2341481892 let's remove service detector for now and we can discuss adding it further (easier to add it later than to remove it later)
| @Override | ||
| public Resource createResource(ConfigProperties config) { | ||
| return get(); | ||
| return get("opentelemetry-java-instrumentation"); |
There was a problem hiding this comment.
can you open an issue to change this in 3.0?
Fixes #14081