Skip to content

Commit

Permalink
add to spring
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Feb 21, 2024
1 parent eb9febf commit b372f09
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import io.opentelemetry.instrumentation.resources.ContainerResourceProvider;
import io.opentelemetry.instrumentation.resources.HostResource;
import io.opentelemetry.instrumentation.resources.HostResourceProvider;
import io.opentelemetry.instrumentation.resources.ManifestResourceProvider;
import io.opentelemetry.instrumentation.resources.OsResource;
import io.opentelemetry.instrumentation.resources.OsResourceProvider;
import io.opentelemetry.instrumentation.resources.ProcessResource;
Expand Down Expand Up @@ -46,6 +47,12 @@ public ResourceProvider otelDistroVersionResourceProvider() {
return new DistroVersionResourceProvider();
}

@Bean
@ConditionalOnClass(ManifestResourceProvider.class)
public ResourceProvider otelJarNameResourceProvider() {
return new ManifestResourceProvider();
}

@Bean
@ConditionalOnClass(OsResource.class)
public ResourceProvider otelOsResourceProvider() {
Expand Down

0 comments on commit b372f09

Please sign in to comment.