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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@
4
4
5
5
### Breaking Changes
6
6
7
+
- Use String instead of UUID for SessionId ([#3834](https://github.com/getsentry/sentry-java/pull/3834))
8
+
- The `Session` constructor now takes a `String` instead of a `UUID` for the `sessionId` parameter.
9
+
-`Session.getSessionId()` now returns a `String` instead of a `UUID`.
7
10
- The Android minSdk level for all Android modules is now 21 ([#3852](https://github.com/getsentry/sentry-java/pull/3852))
8
11
- The minSdk level for sentry-android-ndk changed from 19 to 21 ([#3851](https://github.com/getsentry/sentry-java/pull/3851))
9
12
@@ -13,6 +16,9 @@
13
16
-`globalHubMode` used to only be a param on `Sentry.init`. To make it easier to be used in e.g. Desktop environments, we now additionally added it as an option on SentryOptions that can also be set via `sentry.properties`.
14
17
- If both the param on `Sentry.init` and the option are set, the option will win. By default the option is set to `null` meaning whatever is passed to `Sentry.init` takes effect.
15
18
- Lazy uuid generation for SentryId and SpanId ([#3770](https://github.com/getsentry/sentry-java/pull/3770))
19
+
- Faster generation of Sentry and Span IDs ([#3818](https://github.com/getsentry/sentry-java/pull/3818))
20
+
- Uses faster implementation to convert UUID to SentryID String
21
+
- Uses faster Random implementation to generate UUIDs
16
22
- Use a separate `Random` instance per thread to improve SDK performance ([#3835](https://github.com/getsentry/sentry-java/pull/3835))
17
23
- Android 15: Add support for 16KB page sizes ([#3851](https://github.com/getsentry/sentry-java/pull/3851))
18
24
- See https://developer.android.com/guide/practices/page-sizes for more details
Copy file name to clipboardExpand all lines: sentry/api/sentry.api
+21-2Lines changed: 21 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3265,14 +3265,19 @@ public final class io/sentry/SentryTracer : io/sentry/ITransaction {
3265
3265
public fun updateEndDate (Lio/sentry/SentryDate;)Z
3266
3266
}
3267
3267
3268
+
public final class io/sentry/SentryUUID {
3269
+
public static fun generateSentryId ()Ljava/lang/String;
3270
+
public static fun generateSpanId ()Ljava/lang/String;
3271
+
}
3272
+
3268
3273
public final class io/sentry/SentryWrapper {
3269
3274
public fun <init> ()V
3270
3275
public static fun wrapCallable (Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Callable;
3271
3276
public static fun wrapSupplier (Ljava/util/function/Supplier;)Ljava/util/function/Supplier;
3272
3277
}
3273
3278
3274
3279
public final class io/sentry/Session : io/sentry/JsonSerializable, io/sentry/JsonUnknown {
3275
-
public fun <init> (Lio/sentry/Session$State;Ljava/util/Date;Ljava/util/Date;ILjava/lang/String;Ljava/util/UUID;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Double;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
3280
+
public fun <init> (Lio/sentry/Session$State;Ljava/util/Date;Ljava/util/Date;ILjava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;Ljava/lang/Long;Ljava/lang/Double;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
3276
3281
public fun <init> (Ljava/lang/String;Lio/sentry/protocol/User;Ljava/lang/String;Ljava/lang/String;)V
3277
3282
public fun clone ()Lio/sentry/Session;
3278
3283
public synthetic fun clone ()Ljava/lang/Object;
@@ -3287,7 +3292,7 @@ public final class io/sentry/Session : io/sentry/JsonSerializable, io/sentry/Jso
3287
3292
public fun getIpAddress ()Ljava/lang/String;
3288
3293
public fun getRelease ()Ljava/lang/String;
3289
3294
public fun getSequence ()Ljava/lang/Long;
3290
-
public fun getSessionId ()Ljava/util/UUID;
3295
+
public fun getSessionId ()Ljava/lang/String;
3291
3296
public fun getStarted ()Ljava/util/Date;
3292
3297
public fun getStatus ()Lio/sentry/Session$State;
3293
3298
public fun getTimestamp ()Ljava/util/Date;
@@ -6198,6 +6203,20 @@ public final class io/sentry/util/TracingUtils$TracingHeaders {
6198
6203
public fun getSentryTraceHeader ()Lio/sentry/SentryTraceHeader;
6199
6204
}
6200
6205
6206
+
public final class io/sentry/util/UUIDGenerator {
6207
+
public fun <init> ()V
6208
+
public static fun randomHalfLengthUUID ()J
6209
+
public static fun randomUUID ()Ljava/util/UUID;
6210
+
}
6211
+
6212
+
public final class io/sentry/util/UUIDStringUtils {
6213
+
public fun <init> ()V
6214
+
public static fun toSentryIdString (JJ)Ljava/lang/String;
6215
+
public static fun toSentryIdString (Ljava/util/UUID;)Ljava/lang/String;
6216
+
public static fun toSentrySpanIdString (J)Ljava/lang/String;
6217
+
public static fun toSentrySpanIdString (Ljava/util/UUID;)Ljava/lang/String;
6218
+
}
6219
+
6201
6220
public final class io/sentry/util/UrlUtils {
6202
6221
public static final field SENSITIVE_DATA_SUBSTITUTE Ljava/lang/String;
0 commit comments