You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POTEL 53 - Automatically set span factory based on presence of OpenTelemetry (#3858)
* Auto config for Spring Boot combined with OTel but without agent
* try to cleanup otel classloader
* make agent, no agent and agent without auto init work for spring boot
* Fix ignored instrumentation for OTel without agent; separate sample for no agent
* fix test result upload on CI
* automatically detect otel and use OtelSpanFactory
* changelog
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@
22
22
- The `sentry-opentelemetry-extra` module has been removed again, most classes have been moved to `sentry-opentelemetry-bootstrap` which is loaded into the bootstrap classloader (i.e. `null`) when our Java agent is used. The rest has been moved into `sentry-opentelemetry-agentcustomization` and is loaded into the agent classloader when our Java agent is used.
23
23
- The `sentry-opentelemetry-bootstrap` and `sentry-opentelemetry-agentcustomization` modules can be used without the agent as well, in which case all classes are loaded into the application classloader. Check out our `sentry-samples-spring-boot-jakarta-opentelemetry-noagent` sample.
24
24
- In this mode the SDK makes use of `GlobalOpenTelemetry`
25
+
- Automatically set span factory based on presence of OpenTelemetry ([#3858](https://github.com/getsentry/sentry-java/pull/3858))
26
+
-`SentrySpanFactoryHolder` has been removed as it is no longer required.
25
27
- Add a sample for showcasing Sentry with OpenTelemetry for Spring Boot 3 with our Java agent (`sentry-samples-spring-boot-jakarta-opentelemetry`) ([#3856](https://github.com/getsentry/sentry-java/pull/3828))
26
28
- Add a sample for showcasing Sentry with OpenTelemetry for Spring Boot 3 without our Java agent (`sentry-samples-spring-boot-jakarta-opentelemetry-noagent`) ([#3856](https://github.com/getsentry/sentry-java/pull/3856))
27
29
- Add `globalHubMode` to options ([#3805](https://github.com/getsentry/sentry-java/pull/3805))
Copy file name to clipboardExpand all lines: sentry-opentelemetry/sentry-opentelemetry-agentcustomization/src/main/java/io/sentry/opentelemetry/SentryAutoConfigurationCustomizerProvider.java
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@
9
9
importio.sentry.Sentry;
10
10
importio.sentry.SentryIntegrationPackageStorage;
11
11
importio.sentry.SentryOptions;
12
-
importio.sentry.SentrySpanFactoryHolder;
13
12
importio.sentry.protocol.SdkVersion;
14
13
importio.sentry.protocol.SentryPackage;
15
14
importjava.io.IOException;
@@ -34,9 +33,6 @@ public void customize(AutoConfigurationCustomizer autoConfiguration) {
Copy file name to clipboardExpand all lines: sentry-opentelemetry/sentry-opentelemetry-bootstrap/src/main/java/io/sentry/opentelemetry/OpenTelemetryUtil.java
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
packageio.sentry.opentelemetry;
2
2
3
3
importio.sentry.SentryOptions;
4
-
importio.sentry.SentrySpanFactoryHolder;
5
4
importio.sentry.util.SpanUtils;
6
5
importorg.jetbrains.annotations.ApiStatus;
7
6
importorg.jetbrains.annotations.Nullable;
@@ -12,7 +11,6 @@ public final class OpenTelemetryUtil {
Copy file name to clipboardExpand all lines: sentry-spring-boot-jakarta/src/test/kotlin/io/sentry/spring/boot/jakarta/it/SentrySpringIntegrationTest.kt
Copy file name to clipboardExpand all lines: sentry-spring-jakarta/src/main/java/io/sentry/spring/jakarta/opentelemetry/SentryOpenTelemetryAgentWithoutAutoInitConfiguration.java
0 commit comments