From cf391fd7fc206aba3d247f539421a69bcdc79385 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Fri, 7 Aug 2026 16:17:27 +0200 Subject: [PATCH 1/2] test(size): Check bundle size of entire `ATTRIBUTE_METADATA` object --- packages/core/src/client.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/client.ts b/packages/core/src/client.ts index 778d03b7541c..40b6e9e2f20c 100644 --- a/packages/core/src/client.ts +++ b/packages/core/src/client.ts @@ -56,6 +56,7 @@ import { safeUnref } from './utils/timer'; import { convertSpanJsonToTransactionEvent, convertTransactionEventToSpanJson } from './utils/transactionEvent'; import { maybeWarnAboutIgnoredTransactionOptions } from './utils/warnAboutIgnoredTransactionOptions'; import { resolveDataCollectionOptions } from './utils/data-collection/resolveDataCollectionOptions'; +import { ATTRIBUTE_METADATA } from '@sentry/conventions'; const ALREADY_SEEN_ERROR = "Not capturing exception because it's already been captured."; const MISSING_RELEASE_FOR_SESSION_ERROR = 'Discarded session because of missing or non-string release'; @@ -256,6 +257,8 @@ export abstract class Client { DEBUG_BUILD && debug.warn('No DSN provided, client will not send events.'); } + debug.log(`I have ${Object.keys(ATTRIBUTE_METADATA).length} attributes I can assign`); + const { beforeSendSpan, traceLifecycle } = this._options; // A `beforeSendSpan` callback is only invoked for the span format matching the trace lifecycle, // so a mismatch means it is silently never called. From 723269f924db69515aaa876346db298d5d6d40f4 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Fri, 7 Aug 2026 16:20:29 +0200 Subject: [PATCH 2/2] more code --- packages/core/src/client.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/client.ts b/packages/core/src/client.ts index 40b6e9e2f20c..37d475a5cbde 100644 --- a/packages/core/src/client.ts +++ b/packages/core/src/client.ts @@ -258,6 +258,9 @@ export abstract class Client { } debug.log(`I have ${Object.keys(ATTRIBUTE_METADATA).length} attributes I can assign`); + Object.keys(ATTRIBUTE_METADATA).forEach(attribute => { + debug.log(`Attribute: ${attribute}`); + }); const { beforeSendSpan, traceLifecycle } = this._options; // A `beforeSendSpan` callback is only invoked for the span format matching the trace lifecycle,