|
2 | 2 |
|
3 | 3 | import io.sentry.ISentryLifecycleToken; |
4 | 4 | import io.sentry.SentryIntegrationPackageStorage; |
5 | | -import io.sentry.protocol.SentryPackage; |
6 | 5 | import io.sentry.util.AutoClosableReentrantLock; |
7 | 6 | import java.io.IOException; |
8 | 7 | import java.net.URL; |
9 | | -import java.util.ArrayList; |
10 | 8 | import java.util.Enumeration; |
11 | | -import java.util.List; |
12 | 9 | import java.util.jar.Attributes; |
13 | 10 | import java.util.jar.Manifest; |
14 | 11 | import org.jetbrains.annotations.ApiStatus; |
@@ -73,13 +70,15 @@ public void readManifestFiles() { |
73 | 70 | final @Nullable String otelVersion = |
74 | 71 | mainAttributes.getValue("Sentry-Opentelemetry-Version-Name"); |
75 | 72 | if (otelVersion != null) { |
76 | | - SentryIntegrationPackageStorage.getInstance().addPackage("maven:io.opentelemetry:opentelemetry-sdk", otelVersion); |
| 73 | + SentryIntegrationPackageStorage.getInstance() |
| 74 | + .addPackage("maven:io.opentelemetry:opentelemetry-sdk", otelVersion); |
77 | 75 | SentryIntegrationPackageStorage.getInstance().addIntegration("OpenTelemetry"); |
78 | 76 | } |
79 | 77 | final @Nullable String otelJavaagentVersion = |
80 | 78 | mainAttributes.getValue("Sentry-Opentelemetry-Javaagent-Version-Name"); |
81 | 79 | if (otelJavaagentVersion != null) { |
82 | | - SentryIntegrationPackageStorage.getInstance().addPackage( |
| 80 | + SentryIntegrationPackageStorage.getInstance() |
| 81 | + .addPackage( |
83 | 82 | "maven:io.opentelemetry.javaagent:opentelemetry-javaagent", |
84 | 83 | otelJavaagentVersion); |
85 | 84 | SentryIntegrationPackageStorage.getInstance().addIntegration("OpenTelemetry-Agent"); |
|
0 commit comments