Skip to content

Commit e8963d8

Browse files
committed
non nullable trace id
1 parent de58ea0 commit e8963d8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

sentry/api/sentry.api

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,6 +3338,7 @@ public final class io/sentry/SentryMetricsEvent : io/sentry/JsonSerializable, io
33383338
public fun getName ()Ljava/lang/String;
33393339
public fun getSpanId ()Lio/sentry/SpanId;
33403340
public fun getTimestamp ()Ljava/lang/Double;
3341+
public fun getTraceId ()Lio/sentry/protocol/SentryId;
33413342
public fun getType ()Ljava/lang/String;
33423343
public fun getUnit ()Ljava/lang/String;
33433344
public fun getUnknown ()Ljava/util/Map;
@@ -3348,6 +3349,7 @@ public final class io/sentry/SentryMetricsEvent : io/sentry/JsonSerializable, io
33483349
public fun setName (Ljava/lang/String;)V
33493350
public fun setSpanId (Lio/sentry/SpanId;)V
33503351
public fun setTimestamp (Ljava/lang/Double;)V
3352+
public fun setTraceId (Lio/sentry/protocol/SentryId;)V
33513353
public fun setType (Ljava/lang/String;)V
33523354
public fun setUnit (Ljava/lang/String;)V
33533355
public fun setUnknown (Ljava/util/Map;)V

sentry/src/main/java/io/sentry/SentryMetricsEvent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ public void setSpanId(final @Nullable SpanId spanId) {
107107
this.spanId = spanId;
108108
}
109109

110-
public @Nullable SentryId getTraceId() {
110+
public @NotNull SentryId getTraceId() {
111111
return traceId;
112112
}
113113

114-
public void setTraceId(final @Nullable SentryId traceId) {
114+
public void setTraceId(final @NotNull SentryId traceId) {
115115
this.traceId = traceId;
116116
}
117117

0 commit comments

Comments
 (0)