Skip to content

Commit 39f85b3

Browse files
authored
feat: Align sentry origin with documentation (#17998)
There were 2 major changes: - `auto.console.logging` -> `auto.log.console` - `auto.logging.*` -> `auto.log.*` This can go in already, I am just not sure if this should be a breaking change or a minor bump, since theoretically dashboards or bookmarked searches/groupings would be failing. (closes #17900)
1 parent e05acdd commit 39f85b3

File tree

10 files changed

+76
-76
lines changed

10 files changed

+76
-76
lines changed

dev-packages/browser-integration-tests/suites/public-api/logger/integration/test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
3030
trace_id: expect.any(String),
3131
body: 'console.trace 123 false',
3232
attributes: {
33-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
33+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
3434
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
3535
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
3636
'sentry.message.template': { value: 'console.trace {} {}', type: 'string' },
@@ -45,7 +45,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
4545
trace_id: expect.any(String),
4646
body: 'console.debug 123 false',
4747
attributes: {
48-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
48+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
4949
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
5050
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
5151
'sentry.message.template': { value: 'console.debug {} {}', type: 'string' },
@@ -60,7 +60,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
6060
trace_id: expect.any(String),
6161
body: 'console.log 123 false',
6262
attributes: {
63-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
63+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
6464
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
6565
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
6666
'sentry.message.template': { value: 'console.log {} {}', type: 'string' },
@@ -75,7 +75,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
7575
trace_id: expect.any(String),
7676
body: 'console.info 123 false',
7777
attributes: {
78-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
78+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
7979
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
8080
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
8181
'sentry.message.template': { value: 'console.info {} {}', type: 'string' },
@@ -90,7 +90,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
9090
trace_id: expect.any(String),
9191
body: 'console.warn 123 false',
9292
attributes: {
93-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
93+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
9494
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
9595
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
9696
'sentry.message.template': { value: 'console.warn {} {}', type: 'string' },
@@ -105,7 +105,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
105105
trace_id: expect.any(String),
106106
body: 'console.error 123 false',
107107
attributes: {
108-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
108+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
109109
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
110110
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
111111
'sentry.message.template': { value: 'console.error {} {}', type: 'string' },
@@ -120,7 +120,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
120120
trace_id: expect.any(String),
121121
body: 'Assertion failed: console.assert 123 false',
122122
attributes: {
123-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
123+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
124124
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
125125
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
126126
},
@@ -132,7 +132,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
132132
trace_id: expect.any(String),
133133
body: 'Object: {"key":"value","nested":{"prop":123}}',
134134
attributes: {
135-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
135+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
136136
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
137137
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
138138
'sentry.message.template': { value: 'Object: {}', type: 'string' },
@@ -146,7 +146,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
146146
trace_id: expect.any(String),
147147
body: 'Array: [1,2,3,"string"]',
148148
attributes: {
149-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
149+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
150150
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
151151
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
152152
'sentry.message.template': { value: 'Array: {}', type: 'string' },
@@ -160,7 +160,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
160160
trace_id: expect.any(String),
161161
body: 'Mixed: prefix {"obj":true} [4,5,6] suffix',
162162
attributes: {
163-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
163+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
164164
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
165165
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
166166
'sentry.message.template': { value: 'Mixed: {} {} {} {}', type: 'string' },
@@ -177,7 +177,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
177177
trace_id: expect.any(String),
178178
body: '',
179179
attributes: {
180-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
180+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
181181
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
182182
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
183183
},
@@ -189,7 +189,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
189189
trace_id: expect.any(String),
190190
body: 'String substitution %s %d test 42',
191191
attributes: {
192-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
192+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
193193
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
194194
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
195195
},
@@ -201,7 +201,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
201201
trace_id: expect.any(String),
202202
body: 'Object substitution %o {"key":"value"}',
203203
attributes: {
204-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
204+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
205205
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
206206
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
207207
},
@@ -213,7 +213,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
213213
trace_id: expect.any(String),
214214
body: 'first 0 1 2',
215215
attributes: {
216-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
216+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
217217
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
218218
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
219219
'sentry.message.template': { value: 'first {} {} {}', type: 'string' },
@@ -229,7 +229,7 @@ sentryTest('should capture console object calls', async ({ getLocalTestUrl, page
229229
trace_id: expect.any(String),
230230
body: 'hello true null undefined',
231231
attributes: {
232-
'sentry.origin': { value: 'auto.console.logging', type: 'string' },
232+
'sentry.origin': { value: 'auto.log.console', type: 'string' },
233233
'sentry.sdk.name': { value: 'sentry.javascript.browser', type: 'string' },
234234
'sentry.sdk.version': { value: expect.any(String), type: 'string' },
235235
'sentry.message.template': { value: 'hello {} {} {}', type: 'string' },

dev-packages/node-core-integration-tests/suites/winston/test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('winston integration', () => {
1818
severity_number: expect.any(Number),
1919
trace_id: expect.any(String),
2020
attributes: {
21-
'sentry.origin': { value: 'auto.logging.winston', type: 'string' },
21+
'sentry.origin': { value: 'auto.log.winston', type: 'string' },
2222
'sentry.release': { value: '1.0.0', type: 'string' },
2323
'sentry.environment': { value: 'test', type: 'string' },
2424
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },
@@ -33,7 +33,7 @@ describe('winston integration', () => {
3333
severity_number: expect.any(Number),
3434
trace_id: expect.any(String),
3535
attributes: {
36-
'sentry.origin': { value: 'auto.logging.winston', type: 'string' },
36+
'sentry.origin': { value: 'auto.log.winston', type: 'string' },
3737
'sentry.release': { value: '1.0.0', type: 'string' },
3838
'sentry.environment': { value: 'test', type: 'string' },
3939
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },
@@ -62,7 +62,7 @@ describe('winston integration', () => {
6262
severity_number: expect.any(Number),
6363
trace_id: expect.any(String),
6464
attributes: {
65-
'sentry.origin': { value: 'auto.logging.winston', type: 'string' },
65+
'sentry.origin': { value: 'auto.log.winston', type: 'string' },
6666
'sentry.release': { value: '1.0.0', type: 'string' },
6767
'sentry.environment': { value: 'test', type: 'string' },
6868
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },
@@ -77,7 +77,7 @@ describe('winston integration', () => {
7777
severity_number: expect.any(Number),
7878
trace_id: expect.any(String),
7979
attributes: {
80-
'sentry.origin': { value: 'auto.logging.winston', type: 'string' },
80+
'sentry.origin': { value: 'auto.log.winston', type: 'string' },
8181
'sentry.release': { value: '1.0.0', type: 'string' },
8282
'sentry.environment': { value: 'test', type: 'string' },
8383
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },
@@ -92,7 +92,7 @@ describe('winston integration', () => {
9292
severity_number: expect.any(Number),
9393
trace_id: expect.any(String),
9494
attributes: {
95-
'sentry.origin': { value: 'auto.logging.winston', type: 'string' },
95+
'sentry.origin': { value: 'auto.log.winston', type: 'string' },
9696
'sentry.release': { value: '1.0.0', type: 'string' },
9797
'sentry.environment': { value: 'test', type: 'string' },
9898
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },
@@ -107,7 +107,7 @@ describe('winston integration', () => {
107107
severity_number: expect.any(Number),
108108
trace_id: expect.any(String),
109109
attributes: {
110-
'sentry.origin': { value: 'auto.logging.winston', type: 'string' },
110+
'sentry.origin': { value: 'auto.log.winston', type: 'string' },
111111
'sentry.release': { value: '1.0.0', type: 'string' },
112112
'sentry.environment': { value: 'test', type: 'string' },
113113
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },
@@ -136,7 +136,7 @@ describe('winston integration', () => {
136136
severity_number: expect.any(Number),
137137
trace_id: expect.any(String),
138138
attributes: {
139-
'sentry.origin': { value: 'auto.logging.winston', type: 'string' },
139+
'sentry.origin': { value: 'auto.log.winston', type: 'string' },
140140
'sentry.release': { value: '1.0.0', type: 'string' },
141141
'sentry.environment': { value: 'test', type: 'string' },
142142
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },
@@ -151,7 +151,7 @@ describe('winston integration', () => {
151151
severity_number: expect.any(Number),
152152
trace_id: expect.any(String),
153153
attributes: {
154-
'sentry.origin': { value: 'auto.logging.winston', type: 'string' },
154+
'sentry.origin': { value: 'auto.log.winston', type: 'string' },
155155
'sentry.release': { value: '1.0.0', type: 'string' },
156156
'sentry.environment': { value: 'test', type: 'string' },
157157
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },
@@ -166,7 +166,7 @@ describe('winston integration', () => {
166166
severity_number: expect.any(Number),
167167
trace_id: expect.any(String),
168168
attributes: {
169-
'sentry.origin': { value: 'auto.logging.winston', type: 'string' },
169+
'sentry.origin': { value: 'auto.log.winston', type: 'string' },
170170
'sentry.release': { value: '1.0.0', type: 'string' },
171171
'sentry.environment': { value: 'test', type: 'string' },
172172
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },

0 commit comments

Comments
 (0)