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
5 changes: 2 additions & 3 deletions packages/core/src/integrations/reportSdkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ function serialize(value: unknown, ancestors = new Set<object>()): unknown {
}

// Integrations are reported at the top level; serverName would split configurations by host.
const EXCLUDED_OPTIONS = new Set(['dsn', 'integrations', 'release', 'serverName']);
const EXCLUDED_OPTIONS = new Set(['dist', 'dsn', 'integrations', 'release', 'serverName']);

function buildConfigAttributes(client: Client): Record<string, string> {
const { sdk, optionsSetByUser = [] } = client.getSdkMetadata() || {};
const clientOptions = client.getOptions();
const { environment, dist } = clientOptions;
const { environment } = clientOptions;
const runtime = 'runtime' in clientOptions ? clientOptions.runtime : undefined;

// Only what the user passed, so SDK defaults never show up as config.
Expand All @@ -120,7 +120,6 @@ function buildConfigAttributes(client: Client): Record<string, string> {
sdk: serialize(sdk),
runtime: serialize(runtime),
environment,
dist,
integrations: client.getIntegrationNames().map(name => ({ name })),
options: serialize(options),
});
Expand Down
4 changes: 1 addition & 3 deletions packages/core/test/lib/integrations/reportSdkConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,10 @@ describe('experimentalReportSdkConfigIntegration', () => {
sdk: { name: 'sentry.javascript.node', version: '11.14.0' },
runtime: { name: 'node', version: 'v24.22.1' },
environment: 'staging',
dist: '42',
integrations: [{ name: 'ExperimentalReportSdkConfig' }, { name: 'Tag' }],
options: {
runtime: { name: 'node', version: 'v24.22.1' },
environment: 'staging',
dist: '42',
defaultIntegrations: false,
tracesSampleRate: 0.5,
},
Expand All @@ -86,13 +84,13 @@ describe('experimentalReportSdkConfigIntegration', () => {
const resolvedOptions = {
runtime: { name: 'node', version: 'v24.22.1' },
environment: 'staging',
dist: '42',
};

const payload = reportConfig(
getDefaultTestClientOptions({
dsn: 'https://username@domain/123',
release: 'shop@1.4.2',
dist: '42',
...resolvedOptions,
...userOptions,
}),
Expand Down
Loading