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
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ Breaking changes:
17
17
- Previously performing a click on the same UI widget twice would keep the existing transaction running, the new behavior now better aligns with other SDKs
18
18
- Android only: If global hub mode is enabled, Sentry.getSpan() returns the root span instead of the latest span ([#2855](https://github.com/getsentry/sentry-java/pull/2855))
19
19
- Android only: Observe network state to upload any unsent envelopes ([#2910](https://github.com/getsentry/sentry-java/pull/2910))
20
+
- Do not try to send and drop cached envelopes when rate-limiting is active ([#2937](https://github.com/getsentry/sentry-java/pull/2937))
Copy file name to clipboardExpand all lines: sentry-android-core/src/main/java/io/sentry/android/core/internal/util/AndroidConnectionStatusProvider.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@
8
8
importandroid.net.NetworkCapabilities;
9
9
importandroid.os.Build;
10
10
importandroidx.annotation.NonNull;
11
-
importandroidx.annotation.RequiresApi;
12
11
importio.sentry.IConnectionStatusProvider;
13
12
importio.sentry.ILogger;
14
13
importio.sentry.SentryLevel;
@@ -63,9 +62,14 @@ public AndroidConnectionStatusProvider(
Copy file name to clipboardExpand all lines: sentry-apache-http-client-5/api/sentry-apache-http-client-5.api
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ public final class io/sentry/transport/apache/ApacheHttpClientTransport : io/sen
2
2
public fun <init> (Lio/sentry/SentryOptions;Lio/sentry/RequestDetails;Lorg/apache/hc/client5/http/impl/async/CloseableHttpAsyncClient;Lio/sentry/transport/RateLimiter;)V
3
3
public fun close ()V
4
4
public fun flush (J)V
5
+
public fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
5
6
public fun send (Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)V
Copy file name to clipboardExpand all lines: sentry/api/sentry.api
+17-4Lines changed: 17 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -239,7 +239,7 @@ public final class io/sentry/EnvelopeReader : io/sentry/IEnvelopeReader {
239
239
}
240
240
241
241
public final class io/sentry/EnvelopeSender : io/sentry/IEnvelopeSender {
242
-
public fun <init> (Lio/sentry/IHub;Lio/sentry/ISerializer;Lio/sentry/ILogger;JLio/sentry/cache/IEnvelopeCache;)V
242
+
public fun <init> (Lio/sentry/IHub;Lio/sentry/ISerializer;Lio/sentry/ILogger;JI)V
243
243
public synthetic fun processDirectory (Ljava/io/File;)V
244
244
public fun processEnvelopeFile (Ljava/lang/String;Lio/sentry/Hint;)V
245
245
}
@@ -373,6 +373,7 @@ public final class io/sentry/Hub : io/sentry/IHub {
373
373
public fun getBaggage ()Lio/sentry/BaggageHeader;
374
374
public fun getLastEventId ()Lio/sentry/protocol/SentryId;
375
375
public fun getOptions ()Lio/sentry/SentryOptions;
376
+
public fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
376
377
public fun getSpan ()Lio/sentry/ISpan;
377
378
public fun getTraceparent ()Lio/sentry/SentryTraceHeader;
378
379
public fun getTransaction ()Lio/sentry/ITransaction;
@@ -422,6 +423,7 @@ public final class io/sentry/HubAdapter : io/sentry/IHub {
422
423
public static fun getInstance ()Lio/sentry/HubAdapter;
423
424
public fun getLastEventId ()Lio/sentry/protocol/SentryId;
424
425
public fun getOptions ()Lio/sentry/SentryOptions;
426
+
public fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
425
427
public fun getSpan ()Lio/sentry/ISpan;
426
428
public fun getTraceparent ()Lio/sentry/SentryTraceHeader;
427
429
public fun getTransaction ()Lio/sentry/ITransaction;
@@ -515,6 +517,7 @@ public abstract interface class io/sentry/IHub {
515
517
public abstract fun getBaggage ()Lio/sentry/BaggageHeader;
516
518
public abstract fun getLastEventId ()Lio/sentry/protocol/SentryId;
517
519
public abstract fun getOptions ()Lio/sentry/SentryOptions;
520
+
public abstract fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
518
521
public abstract fun getSpan ()Lio/sentry/ISpan;
519
522
public abstract fun getTraceparent ()Lio/sentry/SentryTraceHeader;
520
523
public abstract fun getTransaction ()Lio/sentry/ITransaction;
@@ -608,6 +611,7 @@ public abstract interface class io/sentry/ISentryClient {
608
611
public abstract fun captureUserFeedback (Lio/sentry/UserFeedback;)V
609
612
public abstract fun close ()V
610
613
public abstract fun flush (J)V
614
+
public abstract fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
611
615
public abstract fun isEnabled ()Z
612
616
}
613
617
@@ -910,6 +914,7 @@ public final class io/sentry/NoOpHub : io/sentry/IHub {
910
914
public static fun getInstance ()Lio/sentry/NoOpHub;
911
915
public fun getLastEventId ()Lio/sentry/protocol/SentryId;
912
916
public fun getOptions ()Lio/sentry/SentryOptions;
917
+
public fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
913
918
public fun getSpan ()Lio/sentry/ISpan;
914
919
public fun getTraceparent ()Lio/sentry/SentryTraceHeader;
915
920
public fun getTransaction ()Lio/sentry/ITransaction;
@@ -1070,7 +1075,7 @@ public final class io/sentry/OptionsContainer {
1070
1075
}
1071
1076
1072
1077
public final class io/sentry/OutboxSender : io/sentry/IEnvelopeSender {
1073
-
public fun <init> (Lio/sentry/IHub;Lio/sentry/IEnvelopeReader;Lio/sentry/ISerializer;Lio/sentry/ILogger;J)V
1078
+
public fun <init> (Lio/sentry/IHub;Lio/sentry/IEnvelopeReader;Lio/sentry/ISerializer;Lio/sentry/ILogger;JI)V
1074
1079
public synthetic fun processDirectory (Ljava/io/File;)V
1075
1080
public fun processEnvelopeFile (Ljava/lang/String;Lio/sentry/Hint;)V
1076
1081
}
@@ -1516,6 +1521,7 @@ public final class io/sentry/SentryClient : io/sentry/ISentryClient {
1516
1521
public fun captureUserFeedback (Lio/sentry/UserFeedback;)V
1517
1522
public fun close ()V
1518
1523
public fun flush (J)V
1524
+
public fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
1519
1525
public fun isEnabled ()Z
1520
1526
}
1521
1527
@@ -2472,7 +2478,6 @@ public final class io/sentry/TypeCheckHint {
2472
2478
public static final field OKHTTP_RESPONSE Ljava/lang/String;
2473
2479
public static final field OPEN_FEIGN_REQUEST Ljava/lang/String;
2474
2480
public static final field OPEN_FEIGN_RESPONSE Ljava/lang/String;
2475
-
public static final field SENTRY_CACHED_ENVELOPE_FILE_PATH Ljava/lang/String;
2476
2481
public static final field SENTRY_DART_SDK_NAME Ljava/lang/String;
2477
2482
public static final field SENTRY_DOTNET_SDK_NAME Ljava/lang/String;
2478
2483
public static final field SENTRY_EVENT_DROP_REASON Ljava/lang/String;
@@ -2761,6 +2766,10 @@ public abstract interface class io/sentry/hints/DiskFlushNotification {
2761
2766
public abstract fun markFlushed ()V
2762
2767
}
2763
2768
2769
+
public abstract interface class io/sentry/hints/Enqueable {
2770
+
public abstract fun markEnqueued ()V
2771
+
}
2772
+
2764
2773
public final class io/sentry/hints/EventDropReason : java/lang/Enum {
2765
2774
public static final field MULTITHREADED_DEDUPLICATION Lio/sentry/hints/EventDropReason;
2766
2775
public static fun valueOf (Ljava/lang/String;)Lio/sentry/hints/EventDropReason;
@@ -4138,6 +4147,7 @@ public final class io/sentry/transport/AsyncHttpTransport : io/sentry/transport/
4138
4147
public fun <init> (Lio/sentry/transport/QueuedThreadPoolExecutor;Lio/sentry/SentryOptions;Lio/sentry/transport/RateLimiter;Lio/sentry/transport/ITransportGate;Lio/sentry/transport/HttpConnection;)V
4139
4148
public fun close ()V
4140
4149
public fun flush (J)V
4150
+
public fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
4141
4151
public fun send (Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)V
4142
4152
}
4143
4153
@@ -4152,6 +4162,7 @@ public abstract interface class io/sentry/transport/ICurrentDateProvider {
4152
4162
4153
4163
public abstract interface class io/sentry/transport/ITransport : java/io/Closeable {
4154
4164
public abstract fun flush (J)V
4165
+
public abstract fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
4155
4166
public fun send (Lio/sentry/SentryEnvelope;)V
4156
4167
public abstract fun send (Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)V
4157
4168
}
@@ -4173,6 +4184,7 @@ public final class io/sentry/transport/NoOpTransport : io/sentry/transport/ITran
4173
4184
public fun close ()V
4174
4185
public fun flush (J)V
4175
4186
public static fun getInstance ()Lio/sentry/transport/NoOpTransport;
4187
+
public fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
4176
4188
public fun send (Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)V
4177
4189
}
4178
4190
@@ -4185,7 +4197,7 @@ public final class io/sentry/transport/RateLimiter {
4185
4197
public fun <init> (Lio/sentry/SentryOptions;)V
4186
4198
public fun <init> (Lio/sentry/transport/ICurrentDateProvider;Lio/sentry/SentryOptions;)V
4187
4199
public fun filter (Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)Lio/sentry/SentryEnvelope;
4188
-
public fun getRateLimitedUntilFor (Ljava/lang/String;)Ljava/util/Date;
4200
+
public fun isActiveForCategory (Lio/sentry/DataCategory;)Z
4189
4201
public fun updateRetryAfterLimits (Ljava/lang/String;Ljava/lang/String;I)V
4190
4202
}
4191
4203
@@ -4203,6 +4215,7 @@ public final class io/sentry/transport/StdoutTransport : io/sentry/transport/ITr
4203
4215
public fun <init> (Lio/sentry/ISerializer;)V
4204
4216
public fun close ()V
4205
4217
public fun flush (J)V
4218
+
public fun getRateLimiter ()Lio/sentry/transport/RateLimiter;
4206
4219
public fun send (Lio/sentry/SentryEnvelope;Lio/sentry/Hint;)V
0 commit comments