File tree 1 file changed +8
-8
lines changed
javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 13
13
import io .opentelemetry .sdk .resources .Resource ;
14
14
15
15
@ AutoService (ResourceProvider .class )
16
- public class AutoVersionResourceProvider implements ResourceProvider {
16
+ public class DistroVersionResourceProvider implements ResourceProvider {
17
17
18
- private static final AttributeKey <String > TELEMETRY_AUTO_NAME =
19
- AttributeKey .stringKey ("telemetry.auto .name" );
20
- private static final AttributeKey <String > TELEMETRY_AUTO_VERSION =
21
- AttributeKey .stringKey ("telemetry.auto .version" );
18
+ private static final AttributeKey <String > TELEMETRY_DISTRO_NAME =
19
+ AttributeKey .stringKey ("telemetry.distro .name" );
20
+ private static final AttributeKey <String > TELEMETRY_DISTRO_VERSION =
21
+ AttributeKey .stringKey ("telemetry.distro .version" );
22
22
23
23
@ Override
24
24
public Resource createResource (ConfigProperties config ) {
25
25
return AgentVersion .VERSION == null
26
26
? Resource .empty ()
27
27
: Resource .create (
28
28
Attributes .of (
29
- TELEMETRY_AUTO_NAME ,
30
- "opentelemetry-javaagent " ,
31
- TELEMETRY_AUTO_VERSION ,
29
+ TELEMETRY_DISTRO_NAME ,
30
+ "opentelemetry-java-instrumentation " ,
31
+ TELEMETRY_DISTRO_VERSION ,
32
32
AgentVersion .VERSION ));
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments