You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev-packages/node-integration-tests/suites/tracing/postgresjs/test.ts
+30-30Lines changed: 30 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -21,15 +21,15 @@ describe('postgresjs auto instrumentation', () => {
21
21
'db.query.text':
22
22
'CREATE TABLE "User" ("id" SERIAL NOT NULL,"createdAt" TIMESTAMP(?) NOT NULL DEFAULT CURRENT_TIMESTAMP,"email" TEXT NOT NULL,"name" TEXT,CONSTRAINT "User_pkey" PRIMARY KEY ("id"))',
23
23
'sentry.op': 'db',
24
-
'sentry.origin': 'auto.db.otel.postgres',
24
+
'sentry.origin': 'auto.db.otel.postgresjs',
25
25
'server.address': 'localhost',
26
26
'server.port': 5444,
27
27
}),
28
28
description:
29
29
'CREATE TABLE "User" ("id" SERIAL NOT NULL,"createdAt" TIMESTAMP(?) NOT NULL DEFAULT CURRENT_TIMESTAMP,"email" TEXT NOT NULL,"name" TEXT,CONSTRAINT "User_pkey" PRIMARY KEY ("id"))',
30
30
op: 'db',
31
31
status: 'ok',
32
-
origin: 'auto.db.otel.postgres',
32
+
origin: 'auto.db.otel.postgresjs',
33
33
parent_span_id: expect.any(String),
34
34
span_id: expect.any(String),
35
35
start_timestamp: expect.any(Number),
@@ -42,15 +42,15 @@ describe('postgresjs auto instrumentation', () => {
42
42
'db.system.name': 'postgres',
43
43
'db.operation.name': 'INSERT',
44
44
'db.query.text': `INSERT INTO "User" ("email", "name") VALUES ('Foo', '${EXISTING_TEST_EMAIL}')`,
45
-
'sentry.origin': 'auto.db.otel.postgres',
45
+
'sentry.origin': 'auto.db.otel.postgresjs',
46
46
'sentry.op': 'db',
47
47
'server.address': 'localhost',
48
48
'server.port': 5444,
49
49
}),
50
50
description: `INSERT INTO "User" ("email", "name") VALUES ('Foo', '${EXISTING_TEST_EMAIL}')`,
51
51
op: 'db',
52
52
status: 'ok',
53
-
origin: 'auto.db.otel.postgres',
53
+
origin: 'auto.db.otel.postgresjs',
54
54
parent_span_id: expect.any(String),
55
55
span_id: expect.any(String),
56
56
start_timestamp: expect.any(Number),
@@ -64,14 +64,14 @@ describe('postgresjs auto instrumentation', () => {
64
64
'db.operation.name': 'UPDATE',
65
65
'db.query.text': `UPDATE "User" SET "name" = 'Foo' WHERE "email" = '${EXISTING_TEST_EMAIL}'`,
66
66
'sentry.op': 'db',
67
-
'sentry.origin': 'auto.db.otel.postgres',
67
+
'sentry.origin': 'auto.db.otel.postgresjs',
68
68
'server.address': 'localhost',
69
69
'server.port': 5444,
70
70
}),
71
71
description: `UPDATE "User" SET "name" = 'Foo' WHERE "email" = '${EXISTING_TEST_EMAIL}'`,
72
72
op: 'db',
73
73
status: 'ok',
74
-
origin: 'auto.db.otel.postgres',
74
+
origin: 'auto.db.otel.postgresjs',
75
75
parent_span_id: expect.any(String),
76
76
span_id: expect.any(String),
77
77
start_timestamp: expect.any(Number),
@@ -85,14 +85,14 @@ describe('postgresjs auto instrumentation', () => {
85
85
'db.operation.name': 'SELECT',
86
86
'db.query.text': `SELECT * FROM "User" WHERE "email" = '${EXISTING_TEST_EMAIL}'`,
87
87
'sentry.op': 'db',
88
-
'sentry.origin': 'auto.db.otel.postgres',
88
+
'sentry.origin': 'auto.db.otel.postgresjs',
89
89
'server.address': 'localhost',
90
90
'server.port': 5444,
91
91
}),
92
92
description: `SELECT * FROM "User" WHERE "email" = '${EXISTING_TEST_EMAIL}'`,
93
93
op: 'db',
94
94
status: 'ok',
95
-
origin: 'auto.db.otel.postgres',
95
+
origin: 'auto.db.otel.postgresjs',
96
96
parent_span_id: expect.any(String),
97
97
span_id: expect.any(String),
98
98
start_timestamp: expect.any(Number),
@@ -106,14 +106,14 @@ describe('postgresjs auto instrumentation', () => {
106
106
'db.operation.name': 'SELECT',
107
107
'db.query.text': 'SELECT * from generate_series(?,?) as x',
108
108
'sentry.op': 'db',
109
-
'sentry.origin': 'auto.db.otel.postgres',
109
+
'sentry.origin': 'auto.db.otel.postgresjs',
110
110
'server.address': 'localhost',
111
111
'server.port': 5444,
112
112
}),
113
113
description: 'SELECT * from generate_series(?,?) as x',
114
114
op: 'db',
115
115
status: 'ok',
116
-
origin: 'auto.db.otel.postgres',
116
+
origin: 'auto.db.otel.postgresjs',
117
117
parent_span_id: expect.any(String),
118
118
span_id: expect.any(String),
119
119
start_timestamp: expect.any(Number),
@@ -127,14 +127,14 @@ describe('postgresjs auto instrumentation', () => {
127
127
'db.operation.name': 'DROP TABLE',
128
128
'db.query.text': 'DROP TABLE "User"',
129
129
'sentry.op': 'db',
130
-
'sentry.origin': 'auto.db.otel.postgres',
130
+
'sentry.origin': 'auto.db.otel.postgresjs',
131
131
'server.address': 'localhost',
132
132
'server.port': 5444,
133
133
}),
134
134
description: 'DROP TABLE "User"',
135
135
op: 'db',
136
136
status: 'ok',
137
-
origin: 'auto.db.otel.postgres',
137
+
origin: 'auto.db.otel.postgresjs',
138
138
parent_span_id: expect.any(String),
139
139
span_id: expect.any(String),
140
140
start_timestamp: expect.any(Number),
@@ -145,19 +145,19 @@ describe('postgresjs auto instrumentation', () => {
145
145
data: expect.objectContaining({
146
146
'db.namespace': 'test_db',
147
147
'db.system.name': 'postgres',
148
-
// No db.operation.name here, as this is an errored span
148
+
'db.operation.name': 'SELECT',
149
149
'db.response.status_code': '42P01',
150
150
'error.type': 'PostgresError',
151
151
'db.query.text': `SELECT * FROM "User" WHERE "email" = '${NON_EXISTING_TEST_EMAIL}'`,
152
152
'sentry.op': 'db',
153
-
'sentry.origin': 'auto.db.otel.postgres',
153
+
'sentry.origin': 'auto.db.otel.postgresjs',
154
154
'server.address': 'localhost',
155
155
'server.port': 5444,
156
156
}),
157
157
description: `SELECT * FROM "User" WHERE "email" = '${NON_EXISTING_TEST_EMAIL}'`,
158
158
op: 'db',
159
159
status: 'unknown_error',
160
-
origin: 'auto.db.otel.postgres',
160
+
origin: 'auto.db.otel.postgresjs',
161
161
parent_span_id: expect.any(String),
162
162
span_id: expect.any(String),
163
163
start_timestamp: expect.any(Number),
@@ -216,15 +216,15 @@ describe('postgresjs auto instrumentation', () => {
216
216
'db.query.text':
217
217
'CREATE TABLE "User" ("id" SERIAL NOT NULL,"createdAt" TIMESTAMP(?) NOT NULL DEFAULT CURRENT_TIMESTAMP,"email" TEXT NOT NULL,"name" TEXT,CONSTRAINT "User_pkey" PRIMARY KEY ("id"))',
218
218
'sentry.op': 'db',
219
-
'sentry.origin': 'auto.db.otel.postgres',
219
+
'sentry.origin': 'auto.db.otel.postgresjs',
220
220
'server.address': 'localhost',
221
221
'server.port': 5444,
222
222
}),
223
223
description:
224
224
'CREATE TABLE "User" ("id" SERIAL NOT NULL,"createdAt" TIMESTAMP(?) NOT NULL DEFAULT CURRENT_TIMESTAMP,"email" TEXT NOT NULL,"name" TEXT,CONSTRAINT "User_pkey" PRIMARY KEY ("id"))',
225
225
op: 'db',
226
226
status: 'ok',
227
-
origin: 'auto.db.otel.postgres',
227
+
origin: 'auto.db.otel.postgresjs',
228
228
parent_span_id: expect.any(String),
229
229
span_id: expect.any(String),
230
230
start_timestamp: expect.any(Number),
@@ -237,15 +237,15 @@ describe('postgresjs auto instrumentation', () => {
237
237
'db.system.name': 'postgres',
238
238
'db.operation.name': 'INSERT',
239
239
'db.query.text': `INSERT INTO "User" ("email", "name") VALUES ('Foo', '${EXISTING_TEST_EMAIL}')`,
240
-
'sentry.origin': 'auto.db.otel.postgres',
240
+
'sentry.origin': 'auto.db.otel.postgresjs',
241
241
'sentry.op': 'db',
242
242
'server.address': 'localhost',
243
243
'server.port': 5444,
244
244
}),
245
245
description: `INSERT INTO "User" ("email", "name") VALUES ('Foo', '${EXISTING_TEST_EMAIL}')`,
246
246
op: 'db',
247
247
status: 'ok',
248
-
origin: 'auto.db.otel.postgres',
248
+
origin: 'auto.db.otel.postgresjs',
249
249
parent_span_id: expect.any(String),
250
250
span_id: expect.any(String),
251
251
start_timestamp: expect.any(Number),
@@ -259,14 +259,14 @@ describe('postgresjs auto instrumentation', () => {
259
259
'db.operation.name': 'UPDATE',
260
260
'db.query.text': `UPDATE "User" SET "name" = 'Foo' WHERE "email" = '${EXISTING_TEST_EMAIL}'`,
261
261
'sentry.op': 'db',
262
-
'sentry.origin': 'auto.db.otel.postgres',
262
+
'sentry.origin': 'auto.db.otel.postgresjs',
263
263
'server.address': 'localhost',
264
264
'server.port': 5444,
265
265
}),
266
266
description: `UPDATE "User" SET "name" = 'Foo' WHERE "email" = '${EXISTING_TEST_EMAIL}'`,
267
267
op: 'db',
268
268
status: 'ok',
269
-
origin: 'auto.db.otel.postgres',
269
+
origin: 'auto.db.otel.postgresjs',
270
270
parent_span_id: expect.any(String),
271
271
span_id: expect.any(String),
272
272
start_timestamp: expect.any(Number),
@@ -280,14 +280,14 @@ describe('postgresjs auto instrumentation', () => {
280
280
'db.operation.name': 'SELECT',
281
281
'db.query.text': `SELECT * FROM "User" WHERE "email" = '${EXISTING_TEST_EMAIL}'`,
282
282
'sentry.op': 'db',
283
-
'sentry.origin': 'auto.db.otel.postgres',
283
+
'sentry.origin': 'auto.db.otel.postgresjs',
284
284
'server.address': 'localhost',
285
285
'server.port': 5444,
286
286
}),
287
287
description: `SELECT * FROM "User" WHERE "email" = '${EXISTING_TEST_EMAIL}'`,
288
288
op: 'db',
289
289
status: 'ok',
290
-
origin: 'auto.db.otel.postgres',
290
+
origin: 'auto.db.otel.postgresjs',
291
291
parent_span_id: expect.any(String),
292
292
span_id: expect.any(String),
293
293
start_timestamp: expect.any(Number),
@@ -301,14 +301,14 @@ describe('postgresjs auto instrumentation', () => {
301
301
'db.operation.name': 'SELECT',
302
302
'db.query.text': 'SELECT * from generate_series(?,?) as x',
303
303
'sentry.op': 'db',
304
-
'sentry.origin': 'auto.db.otel.postgres',
304
+
'sentry.origin': 'auto.db.otel.postgresjs',
305
305
'server.address': 'localhost',
306
306
'server.port': 5444,
307
307
}),
308
308
description: 'SELECT * from generate_series(?,?) as x',
309
309
op: 'db',
310
310
status: 'ok',
311
-
origin: 'auto.db.otel.postgres',
311
+
origin: 'auto.db.otel.postgresjs',
312
312
parent_span_id: expect.any(String),
313
313
span_id: expect.any(String),
314
314
start_timestamp: expect.any(Number),
@@ -322,14 +322,14 @@ describe('postgresjs auto instrumentation', () => {
322
322
'db.operation.name': 'DROP TABLE',
323
323
'db.query.text': 'DROP TABLE "User"',
324
324
'sentry.op': 'db',
325
-
'sentry.origin': 'auto.db.otel.postgres',
325
+
'sentry.origin': 'auto.db.otel.postgresjs',
326
326
'server.address': 'localhost',
327
327
'server.port': 5444,
328
328
}),
329
329
description: 'DROP TABLE "User"',
330
330
op: 'db',
331
331
status: 'ok',
332
-
origin: 'auto.db.otel.postgres',
332
+
origin: 'auto.db.otel.postgresjs',
333
333
parent_span_id: expect.any(String),
334
334
span_id: expect.any(String),
335
335
start_timestamp: expect.any(Number),
@@ -340,19 +340,19 @@ describe('postgresjs auto instrumentation', () => {
340
340
data: expect.objectContaining({
341
341
'db.namespace': 'test_db',
342
342
'db.system.name': 'postgres',
343
-
// No db.operation.name here, as this is an errored span
343
+
'db.operation.name': 'SELECT',
344
344
'db.response.status_code': '42P01',
345
345
'error.type': 'PostgresError',
346
346
'db.query.text': `SELECT * FROM "User" WHERE "email" = '${NON_EXISTING_TEST_EMAIL}'`,
347
347
'sentry.op': 'db',
348
-
'sentry.origin': 'auto.db.otel.postgres',
348
+
'sentry.origin': 'auto.db.otel.postgresjs',
349
349
'server.address': 'localhost',
350
350
'server.port': 5444,
351
351
}),
352
352
description: `SELECT * FROM "User" WHERE "email" = '${NON_EXISTING_TEST_EMAIL}'`,
0 commit comments