diff --git a/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AutoVersionResourceProvider.java b/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AutoVersionResourceProvider.java index 4010f191da29..23c30a4934bb 100644 --- a/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AutoVersionResourceProvider.java +++ b/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AutoVersionResourceProvider.java @@ -15,6 +15,8 @@ @AutoService(ResourceProvider.class) public class AutoVersionResourceProvider implements ResourceProvider { + private static final AttributeKey TELEMETRY_AUTO_NAME = + AttributeKey.stringKey("telemetry.auto.name"); private static final AttributeKey TELEMETRY_AUTO_VERSION = AttributeKey.stringKey("telemetry.auto.version"); @@ -22,6 +24,11 @@ public class AutoVersionResourceProvider implements ResourceProvider { public Resource createResource(ConfigProperties config) { return AgentVersion.VERSION == null ? Resource.empty() - : Resource.create(Attributes.of(TELEMETRY_AUTO_VERSION, AgentVersion.VERSION)); + : Resource.create( + Attributes.of( + TELEMETRY_AUTO_NAME, + "opentelemetry-javaagent", + TELEMETRY_AUTO_VERSION, + AgentVersion.VERSION)); } }