Features
- Added
Environmentto theScope, allowing you to overwrite theEnvironmentset on the options (#5772)- The scope
Environmentis also applied to the trace envelope header (DSC), logs, metrics and profiles, so all telemetry of a trace reports the same environment
- The scope
- Add an
attachTracingHeadersflag toSentryApolloInterceptorto stop attachingsentry-traceandbaggageheaders to Apollo v2 requests (#6414)- Apollo v2 has no request URL in the interceptor, so these headers are attached without checking
tracePropagationTargets. PassattachTracingHeaders = falseto opt out.
- Apollo v2 has no request URL in the interceptor, so these headers are attached without checking
Improvements
- Speed up Session Replay and screenshot masking for large
maskViewClasses/unmaskViewClasseslists by using constant-time class lookups (#6410) - Skip ANR profiling while a debugger is connected (#6389)
Behavioral Changes
- Idle spans, including those produced by
SentryTraced, now let any idle parent transaction finish after the idle timeout (3s by default) with statusok, rather than waiting for the deadline (30s by default) and reportingdeadline_exceeded(#6396)- If you use
SentryTraced, expect shorter durations and lower failure rates for affectedui.loadand navigation transactions, plus changes to metrics measured over the transaction's lifetime, such as slow and frozen frames. - Cold and warm app start, TTID, and TTFD remain unchanged.
- If you use
Fixes
- Fix missing Navigation 3 transactions for preloaded ViewPager2 pages and destinations reached while another Activity or Fragment owns navigation tracking (#6400)
- Keep UI profiling running when
startProfileris called before a requested stop takes effect at the end of the current chunk (#6291)- Before, the start call was ignored and the profiler still stopped at the end of the chunk, even in
TRACEmode while sampled spans were active. On API 34 and lower, every later profile also stopped after one chunk.
- Before, the start call was ignored and the profiler still stopped at the end of the chunk, even in
- Refuse to send data to servers whose certificate was issued by one of the leaked eMudhra intermediates (CVE-2026-111943) (#6336)
- Stop sending the whole release as
diston ANR and app-exit events when the release has no+versionCode(#6450)- Relay rejected these values (e.g.
invalid character '@').distis now left empty unlessoptions.distis set or the release contains a version code.
- Relay rejected these values (e.g.