Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@

### Features

- Aggregate TurboModule call counts + latency per `(module, method, kind)` and flush them on transaction finish and on a lazy periodic timer ([#6377](https://github.com/getsentry/sentry-react-native/pull/6377))

Counters land on the finishing transaction as a synthetic `turbo_modules.aggregate` child span (per-call breakdown in span attributes) plus headline measurements on the root span (`turbo_modules.call_count`, `turbo_modules.error_count`, `turbo_modules.total_ms`, `turbo_modules.top_module_ms`). Long-running sessions without transactions emit a periodic info-level event (default every 30s, only when there's data).

```ts
Sentry.init({
integrations: [
Sentry.turboModuleContextIntegration({
// optional knobs (defaults shown):
enableAggregateStats: true,
aggregateFlushIntervalMs: 30_000,
ignoreTurboModules: ['RNSentry'],
}),
],
});
```

- Add `Sentry.reportFullyDisplayed()` imperative API for signaling Time to Full Display ([#6419](https://github.com/getsentry/sentry-react-native/pull/6419))
- Add `enableHistoricalTombstoneReporting` option to report historical tombstones from Android's `ApplicationExitInfo` ([#6450](https://github.com/getsentry/sentry-react-native/pull/6450))

Expand Down
8 changes: 7 additions & 1 deletion packages/core/etc/sentry-react-native.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -856,17 +856,23 @@ export { TransactionEvent }
// @public
export interface TurboModuleCall {
callId: number;
kind: 'sync' | 'async';
kind: TurboModuleCallKind;
method: string;
name: string;
startedAtMs: number;
}

// @public
export type TurboModuleCallKind = 'sync' | 'async';

// @public
export const turboModuleContextIntegration: (options?: TurboModuleContextOptions) => Integration;

// @public (undocumented)
export interface TurboModuleContextOptions {
aggregateFlushIntervalMs?: number;
enableAggregateStats?: boolean;
ignoreTurboModules?: ReadonlyArray<string>;
modules?: Array<{
name: string;
module: object | null | undefined;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,4 @@ export {
pushTurboModuleCall,
wrapTurboModule,
} from './turbomodule';
export type { TurboModuleCall } from './turbomodule';
export type { TurboModuleCall, TurboModuleCallKind } from './turbomodule';
Loading
Loading