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