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
{{ message }}
Repository navigation
Commit a5555ea
Browse filesBrowse the repository at this point in the historyBrowse files
feat(profiling): Drop profiler ids from spans no profile covers (#6015)
* feat(profiling): drop profiler ids from spans no profile covers
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* changelog
* feat(profiling): return unknown for profile chunks without an outcome
* fix(profiling): mark a chunk collected on a terminating close as not recorded
* docs(profiling): explain the chunk history size and the overlap rule
* fix(profiling): remember a chunk before profiling starts
* fix(profiling): keep the profiler id when no chunk covers the window
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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
@@ -18,6 +18,7 @@
18
18
- `globalHubMode` is enabled by default on Android, where tags, extras, contexts and level set inside the callback were silently dropped
19
19
- Scopes that are explicitly made current, e.g. via `Sentry.setCurrentScopes` or the `SentryContext` coroutine integration, are now also honoured when `globalHubMode` is enabled
20
20
- `Sentry.pushScope`, `Sentry.pushIsolationScope` and `Sentry.popScope` remain no-ops when `globalHubMode` is enabled
21
+
- Drop the `profiler_id` from transactions and spans when no Perfetto profile covers them, e.g. when Android's `ProfilingManager` rate limits the profiling request ([#6015](https://github.com/getsentry/sentry-java/pull/6015))
Copy file name to clipboardExpand all lines: sentry-android-core/api/sentry-android-core.api
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ public class io/sentry/android/core/AndroidContinuousProfiler : io/sentry/IConti
44
44
public fun <init> (Lio/sentry/android/core/BuildInfoProvider;Lio/sentry/android/core/internal/util/SentryFrameMetricsCollector;Lio/sentry/ILogger;Ljava/lang/String;ILio/sentry/util/LazyEvaluator$Evaluator;)V
45
45
public fun close (Z)V
46
46
public fun getChunkId ()Lio/sentry/protocol/SentryId;
47
+
public fun getProfileRecordingState (Lio/sentry/protocol/SentryId;Lio/sentry/SentryDate;Lio/sentry/SentryDate;)Lio/sentry/profiling/ProfileRecordingState;
47
48
public fun getProfilerId ()Lio/sentry/protocol/SentryId;
48
49
public fun getRootSpanCounter ()I
49
50
public fun isRunning ()Z
@@ -371,6 +372,7 @@ public class io/sentry/android/core/PerfettoContinuousProfiler : io/sentry/ICont
371
372
public fun <init> (Lio/sentry/ILogger;Lio/sentry/android/core/internal/util/SentryFrameMetricsCollector;Lio/sentry/util/LazyEvaluator$Evaluator;Ljava/util/function/Supplier;)V
372
373
public fun close (Z)V
373
374
public fun getChunkId ()Lio/sentry/protocol/SentryId;
375
+
public fun getProfileRecordingState (Lio/sentry/protocol/SentryId;Lio/sentry/SentryDate;Lio/sentry/SentryDate;)Lio/sentry/profiling/ProfileRecordingState;
374
376
public fun getProfilerId ()Lio/sentry/protocol/SentryId;
375
377
public fun isRunning ()Z
376
378
public fun onRateLimitChanged (Lio/sentry/transport/RateLimiter;)V
@@ -382,7 +384,6 @@ public class io/sentry/android/core/PerfettoContinuousProfiler : io/sentry/ICont
382
384
public class io/sentry/android/core/PerfettoProfiler {
383
385
public fun <init> (Landroid/content/Context;Lio/sentry/ILogger;Lio/sentry/ISentryExecutorService;)V
384
386
public fun endAndCollect (Ljava/util/function/Consumer;)V
385
-
public fun start (J)Z
386
387
}
387
388
388
389
public final class io/sentry/android/core/ScreenshotEventProcessor : io/sentry/EventProcessor {
0 commit comments