Skip to content

Commit 6c238a8

Browse files
committed
Revert "feat: Increase default normalizeDepth"
This reverts commit 19cdf22. This is too aggressive, would increase the side of breadcrumbs
1 parent 71dc415 commit 6c238a8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/apm/src/integrations/tracing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export class Tracing implements Integration {
520520
Tracing._forceLCP();
521521
if (Tracing._lcp) {
522522
// Set the last observed LCP score.
523-
transactionSpan.setData('_sentry_extra_metrics', { lcp: Tracing._lcp });
523+
transactionSpan.setData('_sentry_extra_metrics', JSON.stringify({ lcp: Tracing._lcp }));
524524
}
525525
}
526526

packages/core/src/baseclient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
248248
* @returns A new event with more information.
249249
*/
250250
protected _prepareEvent(event: Event, scope?: Scope, hint?: EventHint): PromiseLike<Event | null> {
251-
const { normalizeDepth } = this.getOptions();
251+
const { normalizeDepth = 3 } = this.getOptions();
252252
const prepared: Event = {
253253
...event,
254254
event_id: event.event_id || (hint && hint.event_id ? hint.event_id : uuid4()),

packages/types/src/options.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ export interface Options {
101101
* - `user`
102102
* - `contexts`
103103
* - `extra`
104-
* Defaults to `4`. Set to `0` to disable.
104+
* Defaults to `3`. Set to `0` to disable.
105105
*/
106-
normalizeDepth?: number = 4;
106+
normalizeDepth?: number;
107107

108108
/**
109109
* A callback invoked during event submission, allowing to optionally modify

0 commit comments

Comments
 (0)