Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
305baf5
replace hub with scopes
adinauer Mar 27, 2024
95f5e1b
Add Scopes
adinauer Apr 2, 2024
27f2398
Introduce `IScopes` interface.
adinauer Apr 2, 2024
ce3c14f
Replace `IHub` with `IScopes` in core
adinauer Apr 2, 2024
ce615f4
Replace `IHub` with `IScopes` in android core
adinauer Apr 2, 2024
22ddc00
Replace `IHub` with `IScopes` in android integrations
adinauer Apr 2, 2024
305c217
Replace `IHub` with `IScopes` in apollo integrations
adinauer Apr 2, 2024
da927bc
Replace `IHub` with `IScopes` in okhttp integration
adinauer Apr 2, 2024
8279276
Replace `IHub` with `IScopes` in graphql integration
adinauer Apr 2, 2024
9bfc086
Replace `IHub` with `IScopes` in logging integrations
adinauer Apr 2, 2024
b998e50
Replace `IHub` with `IScopes` in more integrations
adinauer Apr 2, 2024
739827a
Replace `IHub` with `IScopes` in OTel integration
adinauer Apr 2, 2024
69f2d63
Replace `IHub` with `IScopes` in Spring 5 / Spring Boot 2 integrations
adinauer Apr 2, 2024
792d482
Replace `IHub` with `IScopes` in Spring 6 / Spring Boot 3 integrations
adinauer Apr 2, 2024
9bcbce6
Replace `IHub` with `IScopes` in samples
adinauer Apr 2, 2024
3f25a4b
Merge branch 'feat/hsm-13-replacements-in-samples' into feat/hubs-sco…
adinauer Apr 2, 2024
d6fb40a
gitscopes -> github
adinauer Apr 2, 2024
7752bcc
Replace ThreadLocal with ScopesStorage
adinauer Apr 4, 2024
1e329c5
Move client and throwable to span map to scope
adinauer Apr 4, 2024
b0d89ae
Add global scope
adinauer Apr 4, 2024
cdd414a
use global scope in Scopes
adinauer Apr 4, 2024
98da9ff
Implement pushScope popScope and withScope for Scopes
adinauer Apr 4, 2024
2d26033
Add pushIsolationScope; add fork methods to ISCope
adinauer Apr 12, 2024
bbb6700
Use separate scopes for current, isolation and global scope; rename m…
adinauer Apr 12, 2024
c714b21
Allow controlling which scope configureScope uses
adinauer Apr 12, 2024
a474402
Combine scopes
adinauer Apr 12, 2024
ae93e33
Use new API for CRONS integrations
adinauer Apr 12, 2024
b01298b
Add lifecycle helper
adinauer Apr 12, 2024
b64e688
Change spring integrations to use new API
adinauer Apr 12, 2024
d06fc50
Use new API in servlet integrations
adinauer Apr 12, 2024
f0af5c3
Use new API for kotlin coroutines and wrapers for Supplier/Callable
adinauer Apr 12, 2024
2f02001
Discussion TODOs
adinauer Apr 12, 2024
bf4a7bf
Fix breadcrumb ordering
adinauer Apr 15, 2024
62cb91a
Mark TODOS with [HSM]
adinauer Apr 15, 2024
b1630ea
Add getGlobalScope and forkedRootScopes to IScopes
adinauer Apr 16, 2024
136b9ce
Fix EventProcessor ordering on scopes
adinauer Apr 16, 2024
94d54ef
Reuse code in Scopes
adinauer Apr 16, 2024
017599d
No longer replace global scope
adinauer Apr 16, 2024
f4c2b3c
Replace hub occurrences in comments, var names etc.
adinauer Apr 16, 2024
61c9d4a
Implement ScopesTest
adinauer Apr 18, 2024
04f3892
Implement CombinedScopeViewTest
adinauer Apr 18, 2024
840c194
Fix combined contexts
adinauer Apr 19, 2024
ab1c3a6
Use combined scopes for cross platform
adinauer Apr 19, 2024
23506c5
Changes according to reviews of previous PRs
adinauer Apr 23, 2024
c9b6f8b
more
adinauer Apr 23, 2024
696a809
even more
adinauer Apr 23, 2024
847200d
isEnabled checks client instead of having a property on Scopes
adinauer Apr 24, 2024
8e86d3b
Use SentryOptions.empty
adinauer Apr 25, 2024
06db228
Remove Hub
adinauer Apr 25, 2024
37ab4d0
Use OpenTelemetry for Performance and Scopes propagation
adinauer Apr 30, 2024
faef2f8
Promote certain span attributes
adinauer May 2, 2024
c57b2d3
Merge branch '8.x.x' into feat/potel-1-context-forking-and-basics
adinauer May 3, 2024
5b15128
Merge branch '8.x.x' into feat/potel-1-context-forking-and-basics
adinauer May 7, 2024
9d48538
Merge branch 'feat/potel-1-context-forking-and-basics' into feat/pote…
adinauer May 7, 2024
9b900c7
Use OTel in Sentry API
adinauer May 13, 2024
b3919bd
Deduplicate SpanInfo extraction
adinauer May 15, 2024
36ed84a
Forward Sentry API to Sentry through OTel
adinauer May 22, 2024
8f56e3f
Use OTel status for Sentry span API
adinauer May 23, 2024
81982bc
POTel Tracing
adinauer May 28, 2024
fba451c
fix root span detection (remote flag), and scope closing
adinauer May 29, 2024
c787e91
Inherit OTel span IDs when sending to sentry
adinauer May 31, 2024
8c25d81
Fix tracing; parse incoming baggage; add baggage to outgoing
adinauer Jun 3, 2024
ffe1bef
Cleanup
adinauer Jun 5, 2024
a31fc08
Move sampling logic to OTel Sampler
adinauer Jun 6, 2024
789ae1e
Remove internal span attributes so they are not sent to Sentry
adinauer Jun 6, 2024
f0c8cf2
Use transaction name
adinauer Jun 6, 2024
0d84b57
remove obsolete comment
adinauer Jun 6, 2024
ce1f729
Keep OTel and Sentry span name/op in sync
adinauer Jun 10, 2024
720b07c
more cleanup
adinauer Jun 10, 2024
20f8a86
Make it possible to ignore span origins
adinauer Jun 13, 2024
2134179
Reuse TracesSampler instance
adinauer Jun 13, 2024
5ae32b7
Catch exceptions thrown by integration.close
adinauer Jun 17, 2024
6ddb833
Set NoOpSpanFactory as property default
adinauer Jun 17, 2024
507ca74
Use correct SentryOptions for SentryClient ctor
adinauer Jun 17, 2024
f5caf82
PR review feedback
adinauer Jun 17, 2024
ce75759
more
adinauer Jun 17, 2024
2c0eddd
Merge branch '8.x.x' into feat/potel-19-pr-review-feedback
adinauer Jun 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties;
import io.opentelemetry.sdk.trace.SdkTracerProviderBuilder;
import io.opentelemetry.sdk.trace.export.BatchSpanProcessor;
import io.sentry.Instrumenter;
import io.sentry.Sentry;
import io.sentry.SentryIntegrationPackageStorage;
import io.sentry.SentryOptions;
Expand Down Expand Up @@ -38,10 +37,6 @@ public void customize(AutoConfigurationCustomizer autoConfiguration) {
Sentry.init(
options -> {
options.setEnableExternalConfiguration(true);
// TODO [POTEL] deprecate
options.setInstrumenter(Instrumenter.OTEL);
// TODO [POTEL] do we still need this?
options.addEventProcessor(new OpenTelemetryLinkErrorEventProcessor());
options.setIgnoredSpanOrigins(SpanUtils.ignoredSpanOriginsForOpenTelemetry());
options.setSpanFactory(new OtelSpanFactory());
final @Nullable SdkVersion sdkVersion = createSdkVersion(options, versionInfoHolder);
Expand Down Expand Up @@ -153,8 +148,6 @@ private static class VersionInfoHolder {

private SdkTracerProviderBuilder configureSdkTracerProvider(
SdkTracerProviderBuilder tracerProvider, ConfigProperties config) {
// TODO [POTEL] configurable or separate packages for old vs new way
// return tracerProvider.addSpanProcessor(new SentrySpanProcessor());
return tracerProvider
.setSampler(new SentrySampler())
.addSpanProcessor(new PotelSentrySpanProcessor())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public final class io/sentry/opentelemetry/OtelSpanWrapper : io/sentry/ISpan {
public fun getData ()Ljava/util/Map;
public fun getData (Ljava/lang/String;)Ljava/lang/Object;
public fun getDescription ()Ljava/lang/String;
public fun getEventId ()Lio/sentry/protocol/SentryId;
public fun getFinishDate ()Lio/sentry/SentryDate;
public fun getLocalMetricsAggregator ()Lio/sentry/metrics/LocalMetricsAggregator;
public fun getMeasurements ()Ljava/util/Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public final class OtelContextScopesStorage implements IScopesStorage {

@Override
public ISentryLifecycleToken set(@Nullable IScopes scopes) {
public @NotNull ISentryLifecycleToken set(@Nullable IScopes scopes) {
final @NotNull Scope otelScope =
Context.current().with(SENTRY_SCOPES_KEY, scopes).makeCurrent();
return new OtelStorageToken(otelScope);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,6 @@ public Map<String, MeasurementValue> getMeasurements() {
return context.getSamplingDecision();
}

@Override
public @NotNull SentryId getEventId() {
// TODO [POTEL]
return new SentryId(getOtelSpanId().toString());
}

@ApiStatus.Internal
public @NotNull IScopes getScopes() {
return scopes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ public boolean isNoOp() {

@Override
public @NotNull SentryId getEventId() {
return rootSpan.getEventId();
// TODO [POTEL]
return new SentryId();
}

@ApiStatus.Internal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@
import org.jetbrains.annotations.Nullable;

/**
* This class may have to be moved to a new gradle module to include it in the bootstrap
* classloader.
*
* <p>This uses multiple maps instead of a single one with a wrapper object as porting this to
* Android would mean there's no access to methods like compute etc. before API level 24. There's
* also no easy way to pre-initialize the map for all keys as spans are used as keys. For span IDs
* it would also not work as they are random. For client report storage we know beforehand what keys
* can exist.
* Weakly references wrappers for OpenTelemetry spans meaning they'll be cleaned up when the
* OpenTelemetry span is garbage collected.
*/
@ApiStatus.Internal
public final class SentryWeakSpanStorage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,23 @@
import io.sentry.ScopesAdapter;
import io.sentry.SentryEvent;
import io.sentry.SentryLevel;
import io.sentry.SentrySpanStorage;
import io.sentry.SpanContext;
import io.sentry.protocol.SentryId;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.TestOnly;

/**
* @deprecated this is no longer needed for the latest version of our OpenTelemetry integration.
*/
@Deprecated
public final class OpenTelemetryLinkErrorEventProcessor implements EventProcessor {

private final @NotNull IScopes scopes;
private final @NotNull SentrySpanStorage spanStorage = SentrySpanStorage.getInstance();

@SuppressWarnings("deprecation")
private final @NotNull io.sentry.SentrySpanStorage spanStorage =
io.sentry.SentrySpanStorage.getInstance();

public OpenTelemetryLinkErrorEventProcessor() {
this(ScopesAdapter.getInstance());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@ApiStatus.Internal
public final class OtelSamplingUtil {

public static @Nullable TracesSamplingDecision extractSamplingDecisionOrDefault(
public static @NotNull TracesSamplingDecision extractSamplingDecisionOrDefault(
final @NotNull Attributes attributes) {
final @Nullable TracesSamplingDecision decision = extractSamplingDecision(attributes);
if (decision != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ public void onStart(final @NotNull Context parentContext, final @NotNull ReadWri
}
}

// TODO [POTEL] what do we use as fallback here? could happen if misconfigured (i.e. sampler
// not in place)
final boolean sampled = samplingDecision != null ? samplingDecision.getSampled() : true;
final boolean sampled =
samplingDecision != null
? samplingDecision.getSampled()
: otelSpan.getSpanContext().isSampled();

final @NotNull PropagationContext propagationContext =
sentryTraceHeader == null
Expand Down Expand Up @@ -128,7 +129,6 @@ public void onEnd(final @NotNull ReadableSpan spanBeingEnded) {
new SentryLongDate(spanBeingEnded.toSpanData().getEndEpochNanos());
sentrySpan.updateEndDate(finishDate);
}
System.out.println("span ended: " + spanBeingEnded.getSpanContext().getSpanId());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import io.sentry.ISpan;
import io.sentry.ScopesAdapter;
import io.sentry.SentryLevel;
import io.sentry.SentrySpanStorage;
import io.sentry.SentryTraceHeader;
import io.sentry.exception.InvalidSentryTraceHeaderException;
import java.util.Arrays;
Expand All @@ -24,11 +23,19 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* @deprecated please use {@link PotelSentryPropagator} instead
*/
@Deprecated
public final class SentryPropagator implements TextMapPropagator {

private static final @NotNull List<String> FIELDS =
Arrays.asList(SentryTraceHeader.SENTRY_TRACE_HEADER, BaggageHeader.BAGGAGE_HEADER);
private final @NotNull SentrySpanStorage spanStorage = SentrySpanStorage.getInstance();

@SuppressWarnings("deprecation")
private final @NotNull io.sentry.SentrySpanStorage spanStorage =
io.sentry.SentrySpanStorage.getInstance();

private final @NotNull IScopes scopes;

public SentryPropagator() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
import io.opentelemetry.context.Context;
import io.opentelemetry.sdk.trace.data.LinkData;
import io.opentelemetry.sdk.trace.samplers.Sampler;
import io.opentelemetry.sdk.trace.samplers.SamplingDecision;
import io.opentelemetry.sdk.trace.samplers.SamplingResult;
import io.sentry.Baggage;
import io.sentry.IScopes;
import io.sentry.PropagationContext;
import io.sentry.SamplingContext;
import io.sentry.ScopesAdapter;
import io.sentry.SentryOptions;
import io.sentry.SentryTraceHeader;
import io.sentry.SpanId;
import io.sentry.TracesSampler;
import io.sentry.TracesSamplingDecision;
import io.sentry.TransactionContext;
import io.sentry.protocol.SentryId;
Expand All @@ -25,10 +26,10 @@
public final class SentrySampler implements Sampler {

private final @NotNull SentryWeakSpanStorage spanStorage = SentryWeakSpanStorage.getInstance();
private final @NotNull TracesSampler tracesSampler;
private final @NotNull SentryOptions options;

public SentrySampler(final @NotNull IScopes scopes) {
this.tracesSampler = scopes.getOptions().getInternalTracesSampler();
this.options = scopes.getOptions();
}

public SentrySampler() {
Expand Down Expand Up @@ -61,8 +62,11 @@ public SamplingResult shouldSample(
}
}

private @NotNull SentrySamplingResult handleRootOtelSpan(
private @NotNull SamplingResult handleRootOtelSpan(
final @NotNull String traceId, final @NotNull Context parentContext) {
if (!options.isTraceSampling()) {
return SamplingResult.create(SamplingDecision.DROP);
}
@Nullable Baggage baggage = null;
@Nullable
SentryTraceHeader sentryTraceHeader = parentContext.get(SentryOtelKeys.SENTRY_TRACE_KEY);
Expand All @@ -81,7 +85,7 @@ public SamplingResult shouldSample(
final @NotNull TransactionContext transactionContext =
TransactionContext.fromPropagationContext(propagationContext);
final @NotNull TracesSamplingDecision sentryDecision =
tracesSampler.sample(new SamplingContext(transactionContext, null));
options.getInternalTracesSampler().sample(new SamplingContext(transactionContext, null));
return new SentrySamplingResult(sentryDecision);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,15 @@ private boolean isSentryRequest(final @NotNull SpanData spanData) {
// TODO [POTEL] should check if enabled but multi init with different options makes testing hard
// atm
// if (scopes.getOptions().isEnableSpotlight()) {
final @Nullable String spotlightUrl = scopes.getOptions().getSpotlightConnectionUrl();
if (spotlightUrl != null) {
if (containsSpotlightUrl(fullUrl, spotlightUrl)) {
return true;
}
if (containsSpotlightUrl(httpUrl, spotlightUrl)) {
return true;
}
} else {
if (containsSpotlightUrl(fullUrl, "http://localhost:8969/stream")) {
return true;
}
if (containsSpotlightUrl(httpUrl, "http://localhost:8969/stream")) {
return true;
}
final @Nullable String optionsSpotlightUrl = scopes.getOptions().getSpotlightConnectionUrl();
final @NotNull String spotlightUrl =
optionsSpotlightUrl != null ? optionsSpotlightUrl : "http://localhost:8969/stream";

if (containsSpotlightUrl(fullUrl, spotlightUrl)) {
return true;
}
if (containsSpotlightUrl(httpUrl, spotlightUrl)) {
return true;
}
// }

Expand Down Expand Up @@ -344,7 +338,7 @@ private void transferSpanDetails(
traceId);
final SpanId sentrySpanId = new SpanId(spanId);

@NotNull String transactionName = spanInfo.getDescription();
@Nullable String transactionName = spanInfo.getDescription();
@NotNull TransactionNameSource transactionNameSource = spanInfo.getTransactionNameSource();
@Nullable SpanId parentSpanId = null;
@Nullable Baggage baggage = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import io.sentry.SentryDate;
import io.sentry.SentryLevel;
import io.sentry.SentryLongDate;
import io.sentry.SentrySpanStorage;
import io.sentry.SentryTraceHeader;
import io.sentry.SpanId;
import io.sentry.SpanOptions;
Expand All @@ -40,6 +39,10 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/**
* @deprecated please use {@link PotelSentrySpanProcessor} instead.
*/
@Deprecated
public final class SentrySpanProcessor implements SpanProcessor {

private static final String TRACE_ORIGN = "auto.otel";
Expand All @@ -48,7 +51,11 @@ public final class SentrySpanProcessor implements SpanProcessor {
Arrays.asList(SpanKind.CLIENT, SpanKind.INTERNAL);
private final @NotNull SpanDescriptionExtractor spanDescriptionExtractor =
new SpanDescriptionExtractor();
private final @NotNull SentrySpanStorage spanStorage = SentrySpanStorage.getInstance();

@SuppressWarnings("deprecation")
private final @NotNull io.sentry.SentrySpanStorage spanStorage =
io.sentry.SentrySpanStorage.getInstance();

private final @NotNull IScopes scopes;

public SentrySpanProcessor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@Deprecated
@ApiStatus.Internal
public final class TraceData {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import io.sentry.SentryIntegrationPackageStorage;
import io.sentry.SentryOptions;
import io.sentry.graphql.SentryGraphqlExceptionHandler;
import io.sentry.opentelemetry.OpenTelemetryLinkErrorEventProcessor;
import io.sentry.protocol.SdkVersion;
import io.sentry.quartz.SentryJobListener;
import io.sentry.spring.boot.jakarta.graphql.SentryGraphqlAutoConfiguration;
Expand Down Expand Up @@ -158,14 +157,16 @@ static class ContextTagsEventProcessorConfiguration {

@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(name = "sentry.auto-init", havingValue = "false")
@ConditionalOnClass(OpenTelemetryLinkErrorEventProcessor.class)
@ConditionalOnClass(io.sentry.opentelemetry.OpenTelemetryLinkErrorEventProcessor.class)
@SuppressWarnings("deprecation")
@Open
static class OpenTelemetryLinkErrorEventProcessorConfiguration {

@Bean
@ConditionalOnMissingBean
public @NotNull OpenTelemetryLinkErrorEventProcessor openTelemetryLinkErrorEventProcessor() {
return new OpenTelemetryLinkErrorEventProcessor();
public @NotNull io.sentry.opentelemetry.OpenTelemetryLinkErrorEventProcessor
openTelemetryLinkErrorEventProcessor() {
return new io.sentry.opentelemetry.OpenTelemetryLinkErrorEventProcessor();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import io.sentry.SentryIntegrationPackageStorage;
import io.sentry.SentryOptions;
import io.sentry.graphql.SentryGraphqlExceptionHandler;
import io.sentry.opentelemetry.OpenTelemetryLinkErrorEventProcessor;
import io.sentry.protocol.SdkVersion;
import io.sentry.quartz.SentryJobListener;
import io.sentry.spring.ContextTagsEventProcessor;
Expand Down Expand Up @@ -156,14 +155,16 @@ static class ContextTagsEventProcessorConfiguration {

@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(name = "sentry.auto-init", havingValue = "false")
@ConditionalOnClass(OpenTelemetryLinkErrorEventProcessor.class)
@ConditionalOnClass(io.sentry.opentelemetry.OpenTelemetryLinkErrorEventProcessor.class)
@SuppressWarnings("deprecation")
@Open
static class OpenTelemetryLinkErrorEventProcessorConfiguration {

@Bean
@ConditionalOnMissingBean
public @NotNull OpenTelemetryLinkErrorEventProcessor openTelemetryLinkErrorEventProcessor() {
return new OpenTelemetryLinkErrorEventProcessor();
public @NotNull io.sentry.opentelemetry.OpenTelemetryLinkErrorEventProcessor
openTelemetryLinkErrorEventProcessor() {
return new io.sentry.opentelemetry.OpenTelemetryLinkErrorEventProcessor();
}
}

Expand Down
1 change: 1 addition & 0 deletions sentry/api/sentry.api
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ public abstract interface class io/sentry/ISpanFactory {
public abstract interface class io/sentry/ITransaction : io/sentry/ISpan {
public abstract fun finish (Lio/sentry/SpanStatus;Lio/sentry/SentryDate;ZLio/sentry/Hint;)V
public abstract fun forceFinish (Lio/sentry/SpanStatus;ZLio/sentry/Hint;)V
public abstract fun getEventId ()Lio/sentry/protocol/SentryId;
public abstract fun getLatestActiveSpan ()Lio/sentry/ISpan;
public abstract fun getName ()Ljava/lang/String;
public abstract fun getSpans ()Ljava/util/List;
Expand Down
5 changes: 2 additions & 3 deletions sentry/src/main/java/io/sentry/ISpan.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import io.sentry.metrics.LocalMetricsAggregator;
import io.sentry.protocol.Contexts;
import io.sentry.protocol.SentryId;
import java.util.List;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -281,8 +280,8 @@ ISpan startChild(
@Nullable
TracesSamplingDecision getSamplingDecision();

@NotNull
SentryId getEventId();
// @NotNull
// SentryId getEventId();

@ApiStatus.Internal
@NotNull
Expand Down
Loading