Skip to content

Commit e4d522f

Browse files
committed
Use Implementation-Version as raw version
1 parent f8ba72d commit e4d522f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sentry-opentelemetry/sentry-opentelemetry-agent/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ tasks {
147147
attributes.put("Can-Retransform-Classes", "true")
148148
attributes.put("Implementation-Vendor", "Sentry")
149149
attributes.put("Implementation-Title", project.name)
150-
attributes.put("Implementation-Version", "sentry-${project.version}-otel-${Config.Libs.OpenTelemetry.otelInstrumentationVersion}")
151-
attributes.put("Sentry-Version-Name", project.version)
150+
attributes.put("Implementation-Version", project.version)
151+
attributes.put("Sentry-Version-Name", "sentry-${project.version}-otel-${Config.Libs.OpenTelemetry.otelInstrumentationVersion}")
152152
attributes.put("Sentry-SDK-Name", Config.Sentry.SENTRY_OPENTELEMETRY_AGENT_SDK_NAME)
153153
attributes.put("Sentry-SDK-Package-Name", "maven:io.sentry:sentry-opentelemetry-agent")
154154
attributes.put("Sentry-Opentelemetry-SDK-Name", Config.Sentry.SENTRY_OPENTELEMETRY_AGENT_SDK_NAME)

sentry/src/main/java/io/sentry/internal/ManifestVersionReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void readManifestFiles() {
6161
final @Nullable Attributes mainAttributes = manifest.getMainAttributes();
6262
if (mainAttributes != null) {
6363
final @Nullable String name = mainAttributes.getValue("Sentry-Opentelemetry-SDK-Name");
64-
final @Nullable String version = mainAttributes.getValue("Sentry-Version-Name");
64+
final @Nullable String version = mainAttributes.getValue("Implementation-Version");
6565
final @Nullable String sdkName = mainAttributes.getValue("Sentry-SDK-Name");
6666
final @Nullable String packageName = mainAttributes.getValue("Sentry-SDK-Package-Name");
6767

0 commit comments

Comments
 (0)