From 3a06041816f776ec1c1612b0a7860bd54a63b75d Mon Sep 17 00:00:00 2001 From: JPeer264 Date: Wed, 22 Oct 2025 11:15:09 +0200 Subject: [PATCH] feat: align sentry origin with documentation --- .../public-api/logger/integration/test.ts | 30 ++++++------ .../suites/winston/test.ts | 18 ++++---- .../suites/consola/test.ts | 46 +++++++++---------- .../suites/pino/test.ts | 12 ++--- .../suites/winston/test.ts | 18 ++++---- packages/core/src/integrations/consola.ts | 2 +- packages/core/src/logs/console-integration.ts | 2 +- .../test/lib/integrations/consola.test.ts | 20 ++++---- packages/node-core/src/integrations/pino.ts | 2 +- .../node-core/src/integrations/winston.ts | 2 +- 10 files changed, 76 insertions(+), 76 deletions(-) diff --git a/dev-packages/browser-integration-tests/suites/public-api/logger/integration/test.ts b/dev-packages/browser-integration-tests/suites/public-api/logger/integration/test.ts index 442800456f9b..dd4bd7e8ebc3 100644 --- a/dev-packages/browser-integration-tests/suites/public-api/logger/integration/test.ts +++ b/dev-packages/browser-integration-tests/suites/public-api/logger/integration/test.ts @@ -30,7 +30,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'console.trace 123 false', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'console.trace {} {}', type: 'string' }, @@ -45,7 +45,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'console.debug 123 false', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'console.debug {} {}', type: 'string' }, @@ -60,7 +60,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'console.log 123 false', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'console.log {} {}', type: 'string' }, @@ -75,7 +75,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'console.info 123 false', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'console.info {} {}', type: 'string' }, @@ -90,7 +90,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'console.warn 123 false', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'console.warn {} {}', type: 'string' }, @@ -105,7 +105,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'console.error 123 false', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'console.error {} {}', type: 'string' }, @@ -120,7 +120,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'Assertion failed: console.assert 123 false', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, }, @@ -132,7 +132,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'Object: {"key":"value","nested":{"prop":123}}', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'Object: {}', type: 'string' }, @@ -146,7 +146,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'Array: [1,2,3,"string"]', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'Array: {}', type: 'string' }, @@ -160,7 +160,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'Mixed: prefix {"obj":true} [4,5,6] suffix', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'Mixed: {} {} {} {}', type: 'string' }, @@ -177,7 +177,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: '', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, }, @@ -189,7 +189,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'String substitution %s %d test 42', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, }, @@ -201,7 +201,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'Object substitution %o {"key":"value"}', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, }, @@ -213,7 +213,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'first 0 1 2', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'first {} {} {}', type: 'string' }, @@ -229,7 +229,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page trace_id: expect.any(String), body: 'hello true null undefined', attributes: { - 'sentry.origin': { value: 'auto.console.logging', type: 'string' }, + 'sentry.origin': { value: 'auto.log.console', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' }, 'sentry.sdk.version': { value: expect.any(String), type: 'string' }, 'sentry.message.template': { value: 'hello {} {} {}', type: 'string' }, diff --git a/dev-packages/node-core-integration-tests/suites/winston/test.ts b/dev-packages/node-core-integration-tests/suites/winston/test.ts index 034210f8690b..777b1149c871 100644 --- a/dev-packages/node-core-integration-tests/suites/winston/test.ts +++ b/dev-packages/node-core-integration-tests/suites/winston/test.ts @@ -18,7 +18,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -33,7 +33,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -62,7 +62,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -77,7 +77,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -92,7 +92,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -107,7 +107,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -136,7 +136,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -151,7 +151,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -166,7 +166,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, diff --git a/dev-packages/node-integration-tests/suites/consola/test.ts b/dev-packages/node-integration-tests/suites/consola/test.ts index cf396e319c51..2ee47a17dd20 100644 --- a/dev-packages/node-integration-tests/suites/consola/test.ts +++ b/dev-packages/node-integration-tests/suites/consola/test.ts @@ -18,7 +18,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -35,7 +35,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -52,7 +52,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -83,7 +83,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -100,7 +100,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -117,7 +117,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -135,7 +135,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -152,7 +152,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -169,7 +169,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -186,7 +186,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -203,7 +203,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -220,7 +220,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -236,7 +236,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -253,7 +253,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -283,7 +283,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -300,7 +300,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -342,7 +342,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -360,7 +360,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -392,7 +392,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -410,7 +410,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -440,7 +440,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -457,7 +457,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -474,7 +474,7 @@ describe('consola integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.consola', type: 'string' }, + 'sentry.origin': { value: 'auto.log.consola', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, diff --git a/dev-packages/node-integration-tests/suites/pino/test.ts b/dev-packages/node-integration-tests/suites/pino/test.ts index f9cdb143ddff..37f96f4ccb0c 100644 --- a/dev-packages/node-integration-tests/suites/pino/test.ts +++ b/dev-packages/node-integration-tests/suites/pino/test.ts @@ -70,7 +70,7 @@ conditionalTest({ min: 20 })('Pino integration', () => { type: 'string', value: '{"more":3,"complex":"nope"}', }, - 'sentry.origin': { value: 'auto.logging.pino', type: 'string' }, + 'sentry.origin': { value: 'auto.log.pino', type: 'string' }, 'sentry.release': { value: '1.0', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, }, @@ -85,7 +85,7 @@ conditionalTest({ min: 20 })('Pino integration', () => { name: { value: 'myapp', type: 'string' }, module: { value: 'authentication', type: 'string' }, 'pino.logger.level': { value: 50, type: 'integer' }, - 'sentry.origin': { value: 'auto.logging.pino', type: 'string' }, + 'sentry.origin': { value: 'auto.log.pino', type: 'string' }, 'sentry.release': { value: '1.0', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, }, @@ -146,7 +146,7 @@ conditionalTest({ min: 20 })('Pino integration', () => { type: 'string', value: '{"more":3,"complex":"nope"}', }, - 'sentry.origin': { value: 'auto.logging.pino', type: 'string' }, + 'sentry.origin': { value: 'auto.log.pino', type: 'string' }, 'sentry.release': { value: '1.0', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, }, @@ -160,7 +160,7 @@ conditionalTest({ min: 20 })('Pino integration', () => { attributes: { name: { value: 'myapp', type: 'string' }, 'pino.logger.level': { value: 50, type: 'integer' }, - 'sentry.origin': { value: 'auto.logging.pino', type: 'string' }, + 'sentry.origin': { value: 'auto.log.pino', type: 'string' }, 'sentry.release': { value: '1.0', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, }, @@ -196,7 +196,7 @@ conditionalTest({ min: 20 })('Pino integration', () => { value: '{"more":3,"complex":"nope"}', }, msg: { value: 'hello world', type: 'string' }, - 'sentry.origin': { value: 'auto.logging.pino', type: 'string' }, + 'sentry.origin': { value: 'auto.log.pino', type: 'string' }, 'sentry.release': { value: '1.0', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, }, @@ -212,7 +212,7 @@ conditionalTest({ min: 20 })('Pino integration', () => { module: { value: 'authentication', type: 'string' }, msg: { value: 'oh no', type: 'string' }, 'pino.logger.level': { value: 50, type: 'integer' }, - 'sentry.origin': { value: 'auto.logging.pino', type: 'string' }, + 'sentry.origin': { value: 'auto.log.pino', type: 'string' }, 'sentry.release': { value: '1.0', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, }, diff --git a/dev-packages/node-integration-tests/suites/winston/test.ts b/dev-packages/node-integration-tests/suites/winston/test.ts index 034210f8690b..777b1149c871 100644 --- a/dev-packages/node-integration-tests/suites/winston/test.ts +++ b/dev-packages/node-integration-tests/suites/winston/test.ts @@ -18,7 +18,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -33,7 +33,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -62,7 +62,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -77,7 +77,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -92,7 +92,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -107,7 +107,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -136,7 +136,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -151,7 +151,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, @@ -166,7 +166,7 @@ describe('winston integration', () => { severity_number: expect.any(Number), trace_id: expect.any(String), attributes: { - 'sentry.origin': { value: 'auto.logging.winston', type: 'string' }, + 'sentry.origin': { value: 'auto.log.winston', type: 'string' }, 'sentry.release': { value: '1.0.0', type: 'string' }, 'sentry.environment': { value: 'test', type: 'string' }, 'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' }, diff --git a/packages/core/src/integrations/consola.ts b/packages/core/src/integrations/consola.ts index 1caa7d2f212f..4781b253b161 100644 --- a/packages/core/src/integrations/consola.ts +++ b/packages/core/src/integrations/consola.ts @@ -217,7 +217,7 @@ export function createConsolaReporter(options: ConsolaReporterOptions = {}): Con const message = messageParts.join(' '); // Build attributes - attributes['sentry.origin'] = 'auto.logging.consola'; + attributes['sentry.origin'] = 'auto.log.consola'; if (tag) { attributes['consola.tag'] = tag; diff --git a/packages/core/src/logs/console-integration.ts b/packages/core/src/logs/console-integration.ts index bf49c745e788..ccf14e3ebf48 100644 --- a/packages/core/src/logs/console-integration.ts +++ b/packages/core/src/logs/console-integration.ts @@ -16,7 +16,7 @@ interface CaptureConsoleOptions { const INTEGRATION_NAME = 'ConsoleLogs'; const DEFAULT_ATTRIBUTES = { - [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.console.logging', + [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.log.console', }; const _consoleLoggingIntegration = ((options: Partial = {}) => { diff --git a/packages/core/test/lib/integrations/consola.test.ts b/packages/core/test/lib/integrations/consola.test.ts index a5c68184e03b..a32f073eeb75 100644 --- a/packages/core/test/lib/integrations/consola.test.ts +++ b/packages/core/test/lib/integrations/consola.test.ts @@ -78,7 +78,7 @@ describe('createConsolaReporter', () => { level: 'error', message: 'This is an error', attributes: { - 'sentry.origin': 'auto.logging.consola', + 'sentry.origin': 'auto.log.consola', 'consola.tag': 'test', 'consola.type': 'error', 'consola.level': 0, @@ -98,7 +98,7 @@ describe('createConsolaReporter', () => { level: 'warn', message: 'This is a warning', attributes: { - 'sentry.origin': 'auto.logging.consola', + 'sentry.origin': 'auto.log.consola', 'consola.type': 'warn', }, }); @@ -116,7 +116,7 @@ describe('createConsolaReporter', () => { level: 'info', message: 'This is info', attributes: { - 'sentry.origin': 'auto.logging.consola', + 'sentry.origin': 'auto.log.consola', 'consola.type': 'info', }, }); @@ -134,7 +134,7 @@ describe('createConsolaReporter', () => { level: 'debug', message: 'Debug message', attributes: { - 'sentry.origin': 'auto.logging.consola', + 'sentry.origin': 'auto.log.consola', 'consola.type': 'debug', }, }); @@ -152,7 +152,7 @@ describe('createConsolaReporter', () => { level: 'trace', message: 'Trace message', attributes: { - 'sentry.origin': 'auto.logging.consola', + 'sentry.origin': 'auto.log.consola', 'consola.type': 'trace', }, }); @@ -170,7 +170,7 @@ describe('createConsolaReporter', () => { level: 'fatal', message: 'Fatal error', attributes: { - 'sentry.origin': 'auto.logging.consola', + 'sentry.origin': 'auto.log.consola', 'consola.type': 'fatal', }, }); @@ -189,7 +189,7 @@ describe('createConsolaReporter', () => { level: 'info', message: 'Hello world 123 {"key":"value"}', attributes: { - 'sentry.origin': 'auto.logging.consola', + 'sentry.origin': 'auto.log.consola', 'consola.type': 'info', }, }); @@ -210,7 +210,7 @@ describe('createConsolaReporter', () => { level: 'info', message: 'Message {"self":"[Circular ~]"}', attributes: { - 'sentry.origin': 'auto.logging.consola', + 'sentry.origin': 'auto.log.consola', 'consola.type': 'info', }, }); @@ -228,7 +228,7 @@ describe('createConsolaReporter', () => { level: 'fatal', message: 'Fatal message', attributes: { - 'sentry.origin': 'auto.logging.consola', + 'sentry.origin': 'auto.log.consola', 'consola.level': 0, }, }); @@ -257,7 +257,7 @@ describe('createConsolaReporter', () => { level: expectedLevel, message: `Test ${type} message`, attributes: { - 'sentry.origin': 'auto.logging.consola', + 'sentry.origin': 'auto.log.consola', 'consola.type': type, }, }); diff --git a/packages/node-core/src/integrations/pino.ts b/packages/node-core/src/integrations/pino.ts index 7c3e0c2c813f..7351d1ada42b 100644 --- a/packages/node-core/src/integrations/pino.ts +++ b/packages/node-core/src/integrations/pino.ts @@ -139,7 +139,7 @@ const _pinoIntegration = defineIntegration((userOptions: DeepPartial = { ...resultObj, - 'sentry.origin': 'auto.logging.pino', + 'sentry.origin': 'auto.log.pino', 'pino.logger.level': levelNumber, }; diff --git a/packages/node-core/src/integrations/winston.ts b/packages/node-core/src/integrations/winston.ts index 63e208920914..bea0fa584bf7 100644 --- a/packages/node-core/src/integrations/winston.ts +++ b/packages/node-core/src/integrations/winston.ts @@ -89,7 +89,7 @@ export function createSentryWinstonTransport