Skip to content

feat(deps): Bump @growthbook/growthbook from 1.6.1 to 1.6.5 #50060

feat(deps): Bump @growthbook/growthbook from 1.6.1 to 1.6.5

feat(deps): Bump @growthbook/growthbook from 1.6.1 to 1.6.5 #50060

Status Failure
Total duration 18m 1s
Artifacts 4

build.yml

on: pull_request
Get CI Metadata  /  Get Metadata
7s
Get CI Metadata / Get Metadata
Build Lambda layer
1m 43s
Build Lambda layer
Matrix: job_node_core_integration_tests
Matrix: job_node_integration_tests
Matrix: job_node_unit_tests
Lint
1m 8s
Lint
Circular Dependency Check
1m 38s
Circular Dependency Check
Browser Unit Tests
3m 20s
Browser Unit Tests
Bun Unit Tests
52s
Bun Unit Tests
Deno Unit Tests
57s
Deno Unit Tests
Node v18.0.0 Compatibility Check
31s
Node v18.0.0 Compatibility Check
Cloudflare Integration Tests
6m 20s
Cloudflare Integration Tests
Bundler Plugin Integration Tests
3m 11s
Bundler Plugin Integration Tests
Bun Integration Tests
37s
Bun Integration Tests
Check for faulty .d.ts files
31s
Check for faulty .d.ts files
Matrix: job_browser_loader_tests
Matrix: job_browser_playwright_tests
Matrix: job_optional_e2e_tests
Upload Artifacts
Upload Artifacts
Matrix: job_e2e_tests
All required jobs passed or were skipped
6s
All required jobs passed or were skipped
Fit to window
Zoom out
Zoom in

Annotations

41 errors
suites/tracing/postgres/test.ts > postgres auto instrumentation > pg-native > should auto-instrument `pg-native` package [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,44 +1,94 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "bc97fc83b1ad64b2", + "span_id": "b9e86d99def7a37e", + "start_timestamp": 1783324440.940226, "status": "ok", + "timestamp": 1783324440.9461958, + "trace_id": "27a17b90e8914daa80340df4a21a5e71", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "bc97fc83b1ad64b2", + "span_id": "8523b825bbab7cdf", + "start_timestamp": 1783324440.9468288, + "status": "ok", + "timestamp": 1783324440.957251, + "trace_id": "27a17b90e8914daa80340df4a21a5e71", + }, + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "bc97fc83b1ad64b2", + "span_id": "94f1894044aaa02d", + "start_timestamp": 1783324440.9574318, "status": "ok", + "timestamp": 1783324440.9584196, + "trace_id": "27a17b90e8914daa80340df4a21a5e71", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"NativeUser\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"NativeUser\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "bc97fc83b1ad64b2", + "span_id": "a923d74018106b8c", + "start_timestamp": 1783324440.9586184, "status": "ok", + "timestamp": 178
suites/tracing/postgres/test.ts > postgres auto instrumentation > pg-native > should auto-instrument `pg-native` package [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,44 +1,94 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "a77e5d046c00f885", + "span_id": "9fe22a6677d5ae27", + "start_timestamp": 1783324434.2274013, "status": "ok", + "timestamp": 1783324434.2344115, + "trace_id": "2c643888af4641899619f8c9de6d8975", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a77e5d046c00f885", + "span_id": "805cc3433e0b9b64", + "start_timestamp": 1783324434.235142, + "status": "ok", + "timestamp": 1783324434.2417371, + "trace_id": "2c643888af4641899619f8c9de6d8975", + }, + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a77e5d046c00f885", + "span_id": "b15e0313ad186bca", + "start_timestamp": 1783324434.241911, "status": "ok", + "timestamp": 1783324434.2429037, + "trace_id": "2c643888af4641899619f8c9de6d8975", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"NativeUser\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"NativeUser\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a77e5d046c00f885", + "span_id": "bced44f6a39895f6", + "start_timestamp": 1783324434.243079, "status": "ok", + "timestamp": 1783
suites/tracing/postgres/test.ts > postgres auto instrumentation > requireParentSpan > does not instrument queries or connects without an active parent span [cjs]: dev-packages/node-integration-tests/suites/tracing/postgres/test.ts#L273
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { …(2) } (108 matching properties omitted from actual) - Expected + Received { - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 2 AS parented", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 2 AS parented", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "9982aeb9262afb61", + "span_id": "972b16ef347e49c8", + "start_timestamp": 1783324417.1030295, "status": "ok", + "timestamp": 1783324417.1040356, + "trace_id": "39a65d3792c64c6b90f9d502062b1a87", }, ], "transaction": "Test Transaction", } ❯ transaction suites/tracing/postgres/test.ts:273:27 ❯ expectTransactionEvent utils/runner/createRunner.ts:732:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > requireParentSpan > does not instrument queries or connects without an active parent span [esm]: dev-packages/node-integration-tests/suites/tracing/postgres/test.ts#L273
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { …(2) } (108 matching properties omitted from actual) - Expected + Received { - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 2 AS parented", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 2 AS parented", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "b48e78ace482406d", + "span_id": "84a61eb75a60194a", + "start_timestamp": 1783324410.368543, "status": "ok", + "timestamp": 1783324410.3696127, + "trace_id": "97e62330122548cfb0eade448590ef0c", }, ], "transaction": "Test Transaction", } ❯ transaction suites/tracing/postgres/test.ts:273:27 ❯ expectTransactionEvent utils/runner/createRunner.ts:732:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > connect promise continuation > parents a query chained off connect() to the active transaction [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,20 +1,50 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "ac812c067e9b4251", + "span_id": "821b1f45f32fb4c1", + "start_timestamp": 1783324403.1727684, + "status": "ok", + "timestamp": 1783324403.1860793, + "trace_id": "c2ac5c88f7414e1ba774b97751718348", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS connect_then", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS connect_then", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "ac812c067e9b4251", + "span_id": "a06557ba180a0496", + "start_timestamp": 1783324403.1868448, "status": "ok", + "timestamp": 1783324403.1886442, + "trace_id": "c2ac5c88f7414e1ba774b97751718348", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > connect promise continuation > parents a query chained off connect() to the active transaction [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,20 +1,50 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "891d0ce033a35afa", + "span_id": "99cb6afbd25eea99", + "start_timestamp": 1783324396.517675, + "status": "ok", + "timestamp": 1783324396.5305839, + "trace_id": "47d706e61c94482b9f22fb4fcc35ed81", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS connect_then", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS connect_then", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "891d0ce033a35afa", + "span_id": "880b9aa776545f28", + "start_timestamp": 1783324396.5311842, "status": "ok", + "timestamp": 1783324396.533162, + "trace_id": "47d706e61c94482b9f22fb4fcc35ed81", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > pool > auto-instruments `pg.Pool`, masks connection-string credentials, and handles callback-style queries [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,32 +1,73 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", + "db.postgresql.idle.timeout.millis": 10000, + "db.postgresql.max.client": 10, "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", + "sentry.origin": "manual", }, "description": "pg-pool.connect", "op": "db", "origin": "manual", + "parent_span_id": "8d8ef547ee868457", + "span_id": "a9d4eaa626b6f9ef", + "start_timestamp": 1783324388.2370462, "status": "ok", + "timestamp": 1783324388.2548137, + "trace_id": "d79c037890f2423d808550c1cff7c980", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "a9d4eaa626b6f9ef", + "span_id": "bfb40400103d89b0", + "start_timestamp": 1783324388.2394953, + "status": "ok", + "timestamp": 1783324388.2551608, + "trace_id": "d79c037890f2423d808550c1cff7c980", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS foo", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS foo", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "8d8ef547ee868457", + "span_id": "930d45b375301d22", + "start_timestamp": 1783324388.2540636, "status": "ok", + "timestamp": 1783324388.2567585, + "trace_id": "d79c037890f2423d808550c1cff7c980", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > pool > auto-instruments `pg.Pool`, masks connection-string credentials, and handles callback-style queries [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,32 +1,73 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", + "db.postgresql.idle.timeout.millis": 10000, + "db.postgresql.max.client": 10, "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", + "sentry.origin": "manual", }, "description": "pg-pool.connect", "op": "db", "origin": "manual", + "parent_span_id": "910c1482c8b57498", + "span_id": "ae9c917668333cf9", + "start_timestamp": 1783324381.4050584, "status": "ok", + "timestamp": 1783324381.419845, + "trace_id": "6273ba106fbb4f18add96efbf00be26d", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "ae9c917668333cf9", + "span_id": "8fc69d34910a8cbc", + "start_timestamp": 1783324381.4067097, + "status": "ok", + "timestamp": 1783324381.4201295, + "trace_id": "6273ba106fbb4f18add96efbf00be26d", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS foo", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS foo", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "910c1482c8b57498", + "span_id": "97ddec45b3ed5aa2", + "start_timestamp": 1783324381.4192326, "status": "ok", + "timestamp": 1783324381.4216595, + "trace_id": "6273ba106fbb4f18add96efbf00be26d", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > default > should auto-instrument `pg` package [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,71 +1,140 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "91e88c4ef9eee496", + "span_id": "8d2b7140c8658b6f", + "start_timestamp": 1783324360.1939762, "status": "ok", + "timestamp": 1783324360.207051, + "trace_id": "56087dc73c124167b283c811537c11b8", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "91e88c4ef9eee496", + "span_id": "bb0bfb23cba03de8", + "start_timestamp": 1783324360.207965, + "status": "ok", + "timestamp": 1783324360.2161934, + "trace_id": "56087dc73c124167b283c811537c11b8", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "91e88c4ef9eee496", + "span_id": "b5af9594cb0bc9d8", + "start_timestamp": 1783324360.2164223, "status": "ok", + "timestamp": 1783324360.21812, + "trace_id": "56087dc73c124167b283c811537c11b8", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"User\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"User\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "91e88c4ef9eee496", + "span_id": "adc45ae00fd45529", + "start_timestamp": 1783324360.2183151, "status": "ok", + "timestamp": 1783324360.2196455, + "trace_id":
suites/tracing/postgres/test.ts > postgres auto instrumentation > default > should auto-instrument `pg` package [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,71 +1,140 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "8c2030f1479c3e13", + "span_id": "92163fbdc12299c3", + "start_timestamp": 1783324353.2752483, "status": "ok", + "timestamp": 1783324353.29318, + "trace_id": "616c5e46946d4310947ee551cbcee13d", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "8c2030f1479c3e13", + "span_id": "add2d319e5c3881e", + "start_timestamp": 1783324353.293849, + "status": "ok", + "timestamp": 1783324353.3095388, + "trace_id": "616c5e46946d4310947ee551cbcee13d", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "8c2030f1479c3e13", + "span_id": "bd8d5f4cdd398584", + "start_timestamp": 1783324353.3098676, "status": "ok", + "timestamp": 1783324353.3123522, + "trace_id": "616c5e46946d4310947ee551cbcee13d", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"User\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"User\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "8c2030f1479c3e13", + "span_id": "ae1759de77fd48a4", + "start_timestamp": 1783324353.3126273, "status": "ok", + "timestamp": 1783324353.314547, + "trace_id":
suites/tracing/postgres-streamed/test.ts > postgres auto instrumentation (streamed) > default > should auto-instrument `pg` package with span streaming enabled [cjs]: dev-packages/node-integration-tests/suites/tracing/postgres-streamed/test.ts#L165
AssertionError: expected [ { name: 'pg.connect', …(8) }, …(3) ] to deeply equal [ …(4) ] - Expected + Received @@ -23,14 +23,10 @@ }, "net.peer.port": { "type": "integer", "value": Any<Number>, }, - "otel.kind": { - "type": "string", - "value": "CLIENT", - }, "sentry.environment": { "type": "string", "value": "production", }, "sentry.op": { @@ -105,15 +101,11 @@ "type": "string", "value": "localhost", }, "net.peer.port": { "type": "integer", - "value": Any<Number>, - }, - "otel.kind": { - "type": "string", - "value": "CLIENT", + "value": 5495, }, "sentry.environment": { "type": "string", "value": "production", }, @@ -121,11 +113,11 @@ "type": "string", "value": "db", }, "sentry.origin": { "type": "string", - "value": "auto.db.otel.postgres", + "value": "auto.db.orchestrion.postgres", }, "sentry.release": { "type": "string", "value": "1.0", }, @@ -133,15 +125,15 @@ "type": "string", "value": "sentry.javascript.node", }, "sentry.sdk.version": { "type": "string", - "value": Any<String>, + "value": "10.63.0", }, "sentry.segment.id": { "type": "string", - "value": StringMatching /^[\da-f]{16}$/, + "value": "8c1849c35295cda6", }, "sentry.segment.name": { "type": "string", "value": "Test Span", }, @@ -189,15 +181,11 @@ "type": "string", "value": "localhost", }, "net.peer.port": { "type": "integer", - "value": Any<Number>, - }, - "otel.kind": { - "type": "string", - "value": "CLIENT", + "value": 5495, }, "sentry.environment": { "type": "string", "value": "production", }, @@ -205,11 +193,11 @@ "type": "string", "value": "db", }, "sentry.origin": { "type": "string", - "value": "auto.db.otel.postgres", + "value": "auto.db.orchestrion.postgres", }, "sentry.release": { "type": "string", "value": "1.0", }, @@ -217,15 +205,15 @@ "type": "string", "value": "sentry.javascript.node", }, "sentry.sdk.version": { "type": "string", - "value": Any<String>, + "value": "10.63.0", }, "sentry.segment.id": { "type": "string", - "value": StringMatching /^[\da-f]{16}$/, + "value": "8c1849c35295cda6", }, "sentry.segment.name": { "type": "string", "value": "Test Span", }, @@ -273,15 +261,11 @@ "type": "string", "value": "localhost", }, "net.peer.port": { "type": "integer", - "value": Any<Number>, - }, - "otel.kind": { - "type": "string", - "value": "CLIENT", + "value": 5495, }, "sentry.environment": { "type": "string", "value": "production", }, @@ -289,11 +273,11 @@ "type": "string", "value": "db", }, "sentry.origin": { "type": "string", - "value": "auto.db.otel.postgres", + "value": "auto.db.orchestrion.postgres", }, "sentry.release": { "type": "string", "value": "1.0", }, @@ -301,15 +285,15 @@ "type": "string", "value": "sentry.javascript.node", }, "sentry.sdk.version": { "type": "string", - "value": Any<String>, + "value": "10.63.0", }, "sentry.segment.id": { "type": "string", - "value": StringMatching /^[\da-f]{16}$/, + "value":
suites/tracing/postgres-streamed/test.ts > postgres auto instrumentation (streamed) > default > should auto-instrument `pg` package with span streaming enabled [esm]: dev-packages/node-integration-tests/suites/tracing/postgres-streamed/test.ts#L165
AssertionError: expected [ { name: 'pg.connect', …(8) }, …(3) ] to deeply equal [ …(4) ] - Expected + Received @@ -23,14 +23,10 @@ }, "net.peer.port": { "type": "integer", "value": Any<Number>, }, - "otel.kind": { - "type": "string", - "value": "CLIENT", - }, "sentry.environment": { "type": "string", "value": "production", }, "sentry.op": { @@ -105,15 +101,11 @@ "type": "string", "value": "localhost", }, "net.peer.port": { "type": "integer", - "value": Any<Number>, - }, - "otel.kind": { - "type": "string", - "value": "CLIENT", + "value": 5495, }, "sentry.environment": { "type": "string", "value": "production", }, @@ -121,11 +113,11 @@ "type": "string", "value": "db", }, "sentry.origin": { "type": "string", - "value": "auto.db.otel.postgres", + "value": "auto.db.orchestrion.postgres", }, "sentry.release": { "type": "string", "value": "1.0", }, @@ -133,15 +125,15 @@ "type": "string", "value": "sentry.javascript.node", }, "sentry.sdk.version": { "type": "string", - "value": Any<String>, + "value": "10.63.0", }, "sentry.segment.id": { "type": "string", - "value": StringMatching /^[\da-f]{16}$/, + "value": "84dd009c7e882366", }, "sentry.segment.name": { "type": "string", "value": "Test Span", }, @@ -189,15 +181,11 @@ "type": "string", "value": "localhost", }, "net.peer.port": { "type": "integer", - "value": Any<Number>, - }, - "otel.kind": { - "type": "string", - "value": "CLIENT", + "value": 5495, }, "sentry.environment": { "type": "string", "value": "production", }, @@ -205,11 +193,11 @@ "type": "string", "value": "db", }, "sentry.origin": { "type": "string", - "value": "auto.db.otel.postgres", + "value": "auto.db.orchestrion.postgres", }, "sentry.release": { "type": "string", "value": "1.0", }, @@ -217,15 +205,15 @@ "type": "string", "value": "sentry.javascript.node", }, "sentry.sdk.version": { "type": "string", - "value": Any<String>, + "value": "10.63.0", }, "sentry.segment.id": { "type": "string", - "value": StringMatching /^[\da-f]{16}$/, + "value": "84dd009c7e882366", }, "sentry.segment.name": { "type": "string", "value": "Test Span", }, @@ -273,15 +261,11 @@ "type": "string", "value": "localhost", }, "net.peer.port": { "type": "integer", - "value": Any<Number>, - }, - "otel.kind": { - "type": "string", - "value": "CLIENT", + "value": 5495, }, "sentry.environment": { "type": "string", "value": "production", }, @@ -289,11 +273,11 @@ "type": "string", "value": "db", }, "sentry.origin": { "type": "string", - "value": "auto.db.otel.postgres", + "value": "auto.db.orchestrion.postgres", }, "sentry.release": { "type": "string", "value": "1.0", }, @@ -301,15 +285,15 @@ "type": "string", "value": "sentry.javascript.node", }, "sentry.sdk.version": { "type": "string", - "value": Any<String>, + "value": "10.63.0", }, "sentry.segment.id": { "type": "string", - "value": StringMatching /^[\da-f]{16}$/, + "value":
suites/tracing/postgres/test.ts > postgres auto instrumentation > requireParentSpan > does not instrument queries or connects without an active parent span [cjs]: dev-packages/node-integration-tests/suites/tracing/postgres/test.ts#L273
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { …(2) } (108 matching properties omitted from actual) - Expected + Received { - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 2 AS parented", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 2 AS parented", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "8b517f0f033f5681", + "span_id": "9e42ffc463dfc5c3", + "start_timestamp": 1783324441.747027, "status": "ok", + "timestamp": 1783324441.748124, + "trace_id": "087a0d83231a48108652a8e48789f56a", }, ], "transaction": "Test Transaction", } ❯ transaction suites/tracing/postgres/test.ts:273:27 ❯ expectTransactionEvent utils/runner/createRunner.ts:732:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > requireParentSpan > does not instrument queries or connects without an active parent span [esm]: dev-packages/node-integration-tests/suites/tracing/postgres/test.ts#L273
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { …(2) } (108 matching properties omitted from actual) - Expected + Received { - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 2 AS parented", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 2 AS parented", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "822f730af364648c", + "span_id": "80773aff99177cc9", + "start_timestamp": 1783324435.0336726, "status": "ok", + "timestamp": 1783324435.0345657, + "trace_id": "169cf114c7f5424aa368c2995409b393", }, ], "transaction": "Test Transaction", } ❯ transaction suites/tracing/postgres/test.ts:273:27 ❯ expectTransactionEvent utils/runner/createRunner.ts:732:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > connect promise continuation > parents a query chained off connect() to the active transaction [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,20 +1,50 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "bb691f1d97a54631", + "span_id": "8da92caf8fcf00cd", + "start_timestamp": 1783324427.6634095, + "status": "ok", + "timestamp": 1783324427.6773574, + "trace_id": "c4e4c9540366473b9dab5464050b71c0", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS connect_then", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS connect_then", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "bb691f1d97a54631", + "span_id": "92d31175297d2df7", + "start_timestamp": 1783324427.6781263, "status": "ok", + "timestamp": 1783324427.680046, + "trace_id": "c4e4c9540366473b9dab5464050b71c0", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > connect promise continuation > parents a query chained off connect() to the active transaction [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,20 +1,50 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "bb9761eab49133fa", + "span_id": "98f37fe7c69d0f7c", + "start_timestamp": 1783324420.8178422, + "status": "ok", + "timestamp": 1783324420.8369997, + "trace_id": "a2bcd9f307af4834bc92b1d1588d8760", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS connect_then", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS connect_then", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "bb9761eab49133fa", + "span_id": "92b4254e2582d7cf", + "start_timestamp": 1783324420.8381405, "status": "ok", + "timestamp": 1783324420.8405523, + "trace_id": "a2bcd9f307af4834bc92b1d1588d8760", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > pool > auto-instruments `pg.Pool`, masks connection-string credentials, and handles callback-style queries [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,32 +1,73 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", + "db.postgresql.idle.timeout.millis": 10000, + "db.postgresql.max.client": 10, "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", + "sentry.origin": "manual", }, "description": "pg-pool.connect", "op": "db", "origin": "manual", + "parent_span_id": "a55622d09b6bc899", + "span_id": "97304e598ce7fc8b", + "start_timestamp": 1783324412.32213, "status": "ok", + "timestamp": 1783324412.3417156, + "trace_id": "0e6020b2d2714233bf9835d44c29707b", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "97304e598ce7fc8b", + "span_id": "84683a89160fb547", + "start_timestamp": 1783324412.3247256, + "status": "ok", + "timestamp": 1783324412.3421724, + "trace_id": "0e6020b2d2714233bf9835d44c29707b", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS foo", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS foo", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a55622d09b6bc899", + "span_id": "bacdb42a51a2233a", + "start_timestamp": 1783324412.3408859, "status": "ok", + "timestamp": 1783324412.3442328, + "trace_id": "0e6020b2d2714233bf9835d44c29707b", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > pool > auto-instruments `pg.Pool`, masks connection-string credentials, and handles callback-style queries [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,32 +1,73 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", + "db.postgresql.idle.timeout.millis": 10000, + "db.postgresql.max.client": 10, "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", + "sentry.origin": "manual", }, "description": "pg-pool.connect", "op": "db", "origin": "manual", + "parent_span_id": "b262988356d9d79f", + "span_id": "8e75daf79230ed01", + "start_timestamp": 1783324405.411111, "status": "ok", + "timestamp": 1783324405.4323921, + "trace_id": "b333c065bea34bd08c2d1860e1918845", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "8e75daf79230ed01", + "span_id": "bd078a0ad11afc0f", + "start_timestamp": 1783324405.4134152, + "status": "ok", + "timestamp": 1783324405.4329631, + "trace_id": "b333c065bea34bd08c2d1860e1918845", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS foo", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS foo", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "b262988356d9d79f", + "span_id": "ab67173025eedec0", + "start_timestamp": 1783324405.4314327, "status": "ok", + "timestamp": 1783324405.4354265, + "trace_id": "b333c065bea34bd08c2d1860e1918845", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > default > should auto-instrument `pg` package [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,71 +1,140 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "99a5d6e683e7bbfb", + "span_id": "9c57db9ae3d00297", + "start_timestamp": 1783324383.9664037, "status": "ok", + "timestamp": 1783324383.9801512, + "trace_id": "c3bd29c214254782b417ad4b6057a3d0", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "99a5d6e683e7bbfb", + "span_id": "85229e9decce0501", + "start_timestamp": 1783324383.9809508, + "status": "ok", + "timestamp": 1783324383.9879417, + "trace_id": "c3bd29c214254782b417ad4b6057a3d0", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "99a5d6e683e7bbfb", + "span_id": "b76b74ac7f7a5b31", + "start_timestamp": 1783324383.9883552, "status": "ok", + "timestamp": 1783324383.9908412, + "trace_id": "c3bd29c214254782b417ad4b6057a3d0", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"User\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"User\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "99a5d6e683e7bbfb", + "span_id": "ac8765b46d2d6a83", + "start_timestamp": 1783324383.9911373, "status": "ok", + "timestamp": 1783324383.9930885, + "trace_i
suites/tracing/postgres/test.ts > postgres auto instrumentation > default > should auto-instrument `pg` package [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,71 +1,140 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "87be82c8d0df1e4d", + "span_id": "bac410f56c30f506", + "start_timestamp": 1783324376.8088322, "status": "ok", + "timestamp": 1783324376.8287416, + "trace_id": "9cacba5022ad4189a8ec99398f1438c7", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "87be82c8d0df1e4d", + "span_id": "808e1a1e33ea97a7", + "start_timestamp": 1783324376.8298874, + "status": "ok", + "timestamp": 1783324376.8481467, + "trace_id": "9cacba5022ad4189a8ec99398f1438c7", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "87be82c8d0df1e4d", + "span_id": "9ce678352d623878", + "start_timestamp": 1783324376.848638, "status": "ok", + "timestamp": 1783324376.8517208, + "trace_id": "9cacba5022ad4189a8ec99398f1438c7", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"User\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"User\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "87be82c8d0df1e4d", + "span_id": "93b63dd62c9a5c43", + "start_timestamp": 1783324376.8519886, "status": "ok", + "timestamp": 1783324376.8542314, + "trace_id
suites/tracing/postgres/test.ts > postgres auto instrumentation > pg-native > should auto-instrument `pg-native` package [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,44 +1,94 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "832bf7aee8aa65ee", + "span_id": "9dab8506b6e765a5", + "start_timestamp": 1783324480.6883187, "status": "ok", + "timestamp": 1783324480.6935804, + "trace_id": "d6c6d537f34b4cad9e64c5776837c813", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "832bf7aee8aa65ee", + "span_id": "b5ea74bc43ed2453", + "start_timestamp": 1783324480.6942377, + "status": "ok", + "timestamp": 1783324480.7005224, + "trace_id": "d6c6d537f34b4cad9e64c5776837c813", + }, + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "832bf7aee8aa65ee", + "span_id": "86df171f4da123f1", + "start_timestamp": 1783324480.7006764, "status": "ok", + "timestamp": 1783324480.701499, + "trace_id": "d6c6d537f34b4cad9e64c5776837c813", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"NativeUser\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"NativeUser\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "832bf7aee8aa65ee", + "span_id": "8bbc712f1b124e30", + "start_timestamp": 1783324480.7016554, "status": "ok", + "timestamp": 17
suites/tracing/postgres/test.ts > postgres auto instrumentation > pg-native > should auto-instrument `pg-native` package [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,44 +1,94 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "adfc332d3fcdfc66", + "span_id": "a2f01b8106cb1a74", + "start_timestamp": 1783324473.7492247, "status": "ok", + "timestamp": 1783324473.7545202, + "trace_id": "625acff090cb4675914a455a165d2bc6", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "adfc332d3fcdfc66", + "span_id": "bb5d967421dd5796", + "start_timestamp": 1783324473.7551699, + "status": "ok", + "timestamp": 1783324473.7615874, + "trace_id": "625acff090cb4675914a455a165d2bc6", + }, + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "adfc332d3fcdfc66", + "span_id": "8d233912f751355f", + "start_timestamp": 1783324473.7617426, "status": "ok", + "timestamp": 1783324473.7625067, + "trace_id": "625acff090cb4675914a455a165d2bc6", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"NativeUser\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"NativeUser\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "adfc332d3fcdfc66", + "span_id": "b462016437a0c73d", + "start_timestamp": 1783324473.762697, "status": "ok", + "timestamp": 17
suites/tracing/postgres/test.ts > postgres auto instrumentation > requireParentSpan > does not instrument queries or connects without an active parent span [cjs]: dev-packages/node-integration-tests/suites/tracing/postgres/test.ts#L273
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { …(2) } (108 matching properties omitted from actual) - Expected + Received { - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 2 AS parented", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 2 AS parented", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a8b84177877fbb53", + "span_id": "a6c4d67c09b29134", + "start_timestamp": 1783324455.5866761, "status": "ok", + "timestamp": 1783324455.588086, + "trace_id": "4af2e36f02064c98b4b11cd852e6faa5", }, ], "transaction": "Test Transaction", } ❯ transaction suites/tracing/postgres/test.ts:273:27 ❯ expectTransactionEvent utils/runner/createRunner.ts:732:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > requireParentSpan > does not instrument queries or connects without an active parent span [esm]: dev-packages/node-integration-tests/suites/tracing/postgres/test.ts#L273
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { …(2) } (108 matching properties omitted from actual) - Expected + Received { - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 2 AS parented", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 2 AS parented", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "836f33799728f943", + "span_id": "b0e03167ac922e08", + "start_timestamp": 1783324448.0896292, "status": "ok", + "timestamp": 1783324448.0908914, + "trace_id": "4923e6e141964be6a7368194e32f1a9d", }, ], "transaction": "Test Transaction", } ❯ transaction suites/tracing/postgres/test.ts:273:27 ❯ expectTransactionEvent utils/runner/createRunner.ts:732:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > connect promise continuation > parents a query chained off connect() to the active transaction [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,20 +1,50 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "81edf99ffeaa83d5", + "span_id": "ac1ea3935634ae53", + "start_timestamp": 1783324440.7327952, + "status": "ok", + "timestamp": 1783324440.7543776, + "trace_id": "2471bfed3810471b939827559e383892", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS connect_then", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS connect_then", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "81edf99ffeaa83d5", + "span_id": "b2a219057d2b8c1f", + "start_timestamp": 1783324440.7553117, "status": "ok", + "timestamp": 1783324440.760436, + "trace_id": "2471bfed3810471b939827559e383892", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > connect promise continuation > parents a query chained off connect() to the active transaction [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,20 +1,50 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "982cb58b539b507e", + "span_id": "b0993cb3b882c705", + "start_timestamp": 1783324433.0345984, + "status": "ok", + "timestamp": 1783324433.0538175, + "trace_id": "c7fd06316bdb409ea29fc4d84da032f9", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS connect_then", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS connect_then", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "982cb58b539b507e", + "span_id": "ad2ee35483ef560b", + "start_timestamp": 1783324433.0549476, "status": "ok", + "timestamp": 1783324433.058662, + "trace_id": "c7fd06316bdb409ea29fc4d84da032f9", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > pool > auto-instruments `pg.Pool`, masks connection-string credentials, and handles callback-style queries [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,32 +1,73 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", + "db.postgresql.idle.timeout.millis": 10000, + "db.postgresql.max.client": 10, "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", + "sentry.origin": "manual", }, "description": "pg-pool.connect", "op": "db", "origin": "manual", + "parent_span_id": "b1ea4a75bfc59163", + "span_id": "89bded1c2130f472", + "start_timestamp": 1783324423.1758685, "status": "ok", + "timestamp": 1783324423.1923254, + "trace_id": "5767dd4a6406470994f77b1ee2170691", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "89bded1c2130f472", + "span_id": "ab762fe3787c99a9", + "start_timestamp": 1783324423.1775537, + "status": "ok", + "timestamp": 1783324423.192702, + "trace_id": "5767dd4a6406470994f77b1ee2170691", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS foo", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS foo", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "b1ea4a75bfc59163", + "span_id": "a105ca6dc74a9995", + "start_timestamp": 1783324423.191729, "status": "ok", + "timestamp": 1783324423.1943347, + "trace_id": "5767dd4a6406470994f77b1ee2170691", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > pool > auto-instruments `pg.Pool`, masks connection-string credentials, and handles callback-style queries [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,32 +1,73 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", + "db.postgresql.idle.timeout.millis": 10000, + "db.postgresql.max.client": 10, "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", + "sentry.origin": "manual", }, "description": "pg-pool.connect", "op": "db", "origin": "manual", + "parent_span_id": "acdae0beddd70cdd", + "span_id": "af15cac30f2d6ed5", + "start_timestamp": 1783324415.7059894, "status": "ok", + "timestamp": 1783324415.7302353, + "trace_id": "248abf8038b3429a8da224949d652eca", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "af15cac30f2d6ed5", + "span_id": "a2a607f98bbba015", + "start_timestamp": 1783324415.7088947, + "status": "ok", + "timestamp": 1783324415.7308073, + "trace_id": "248abf8038b3429a8da224949d652eca", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS foo", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS foo", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "acdae0beddd70cdd", + "span_id": "a5d4b9d900af1772", + "start_timestamp": 1783324415.7292507, "status": "ok", + "timestamp": 1783324415.733154, + "trace_id": "248abf8038b3429a8da224949d652eca", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > default > should auto-instrument `pg` package [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,71 +1,140 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "b28cfd7d0785dd22", + "span_id": "8282a5314f4a57c2", + "start_timestamp": 1783324394.2882473, "status": "ok", + "timestamp": 1783324394.3021977, + "trace_id": "2a3d7ab616ec4fbaa538c794d2e7b001", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "b28cfd7d0785dd22", + "span_id": "bcbaed8c73b0f246", + "start_timestamp": 1783324394.3028963, + "status": "ok", + "timestamp": 1783324394.3116362, + "trace_id": "2a3d7ab616ec4fbaa538c794d2e7b001", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "b28cfd7d0785dd22", + "span_id": "9a4bc7d92ef44951", + "start_timestamp": 1783324394.3118224, "status": "ok", + "timestamp": 1783324394.3136346, + "trace_id": "2a3d7ab616ec4fbaa538c794d2e7b001", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"User\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"User\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "b28cfd7d0785dd22", + "span_id": "8ffdd7e3d3e3c3b4", + "start_timestamp": 1783324394.313868, "status": "ok", + "timestamp": 1783324394.3151596, + "trace_id
suites/tracing/postgres/test.ts > postgres auto instrumentation > default > should auto-instrument `pg` package [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,71 +1,140 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "a5d77fb05d6ba0a3", + "span_id": "87282ba21487b18f", + "start_timestamp": 1783324386.7968264, "status": "ok", + "timestamp": 1783324386.814631, + "trace_id": "8bb89ff5003a4d80a6c51a31bbf4d1ea", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a5d77fb05d6ba0a3", + "span_id": "aeda8bed87fd5eff", + "start_timestamp": 1783324386.8156486, + "status": "ok", + "timestamp": 1783324386.823547, + "trace_id": "8bb89ff5003a4d80a6c51a31bbf4d1ea", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a5d77fb05d6ba0a3", + "span_id": "8a3e96848c501fe9", + "start_timestamp": 1783324386.8237395, "status": "ok", + "timestamp": 1783324386.8256626, + "trace_id": "8bb89ff5003a4d80a6c51a31bbf4d1ea", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"User\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"User\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a5d77fb05d6ba0a3", + "span_id": "a348811bbd0c9ba6", + "start_timestamp": 1783324386.8259592, "status": "ok", + "timestamp": 1783324386.8277483, + "trace_id"
suites/tracing/postgres/test.ts > postgres auto instrumentation > pg-native > should auto-instrument `pg-native` package [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,44 +1,94 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "a6ad8fa0f5f0887f", + "span_id": "9b1e665d5ad2b2a3", + "start_timestamp": 1783324519.7955985, "status": "ok", + "timestamp": 1783324519.8054426, + "trace_id": "9f425f7ac63b4be080f30178bbfd5c17", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a6ad8fa0f5f0887f", + "span_id": "a665c53d65ba2df7", + "start_timestamp": 1783324519.8067987, + "status": "ok", + "timestamp": 1783324519.8171434, + "trace_id": "9f425f7ac63b4be080f30178bbfd5c17", + }, + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a6ad8fa0f5f0887f", + "span_id": "bc70ca7203833c08", + "start_timestamp": 1783324519.8178482, "status": "ok", + "timestamp": 1783324519.8191223, + "trace_id": "9f425f7ac63b4be080f30178bbfd5c17", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"NativeUser\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"NativeUser\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a6ad8fa0f5f0887f", + "span_id": "be6bbb01032aab72", + "start_timestamp": 1783324519.8194575, "status": "ok", + "timestamp": 1
suites/tracing/postgres/test.ts > postgres auto instrumentation > pg-native > should auto-instrument `pg-native` package [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,44 +1,94 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "87dbfe9eb78e96e3", + "span_id": "aabe07a3af41d82c", + "start_timestamp": 1783324512.2855082, "status": "ok", + "timestamp": 1783324512.2980373, + "trace_id": "bca30637512f4c4098f90da3884c9d14", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"NativeUser\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "87dbfe9eb78e96e3", + "span_id": "99b8dd46b2fb6532", + "start_timestamp": 1783324512.2991226, + "status": "ok", + "timestamp": 1783324512.3133433, + "trace_id": "bca30637512f4c4098f90da3884c9d14", + }, + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"NativeUser\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "87dbfe9eb78e96e3", + "span_id": "b46e4f7314d594de", + "start_timestamp": 1783324512.3139772, "status": "ok", + "timestamp": 1783324512.3163342, + "trace_id": "bca30637512f4c4098f90da3884c9d14", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://127.0.0.1:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"NativeUser\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "127.0.0.1", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"NativeUser\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "87dbfe9eb78e96e3", + "span_id": "9ddb79870d311e63", + "start_timestamp": 1783324512.3167398, "status": "ok", + "timestamp": 1
suites/tracing/postgres/test.ts > postgres auto instrumentation > requireParentSpan > does not instrument queries or connects without an active parent span [cjs]: dev-packages/node-integration-tests/suites/tracing/postgres/test.ts#L273
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { …(2) } (108 matching properties omitted from actual) - Expected + Received { - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 2 AS parented", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 2 AS parented", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "9f8daeeae418d6f1", + "span_id": "a9eefc735a3f4812", + "start_timestamp": 1783324493.3471901, "status": "ok", + "timestamp": 1783324493.3484554, + "trace_id": "2785f2e369e14db1971f55e6ae9b528b", }, ], "transaction": "Test Transaction", } ❯ transaction suites/tracing/postgres/test.ts:273:27 ❯ expectTransactionEvent utils/runner/createRunner.ts:732:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > requireParentSpan > does not instrument queries or connects without an active parent span [esm]: dev-packages/node-integration-tests/suites/tracing/postgres/test.ts#L273
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { …(2) } (108 matching properties omitted from actual) - Expected + Received { - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 2 AS parented", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 2 AS parented", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "a102c91b3c69725b", + "span_id": "bfefe3ef57996b28", + "start_timestamp": 1783324485.8644779, "status": "ok", + "timestamp": 1783324485.8672872, + "trace_id": "a6775417bc6a49979786f59cc584cedb", }, ], "transaction": "Test Transaction", } ❯ transaction suites/tracing/postgres/test.ts:273:27 ❯ expectTransactionEvent utils/runner/createRunner.ts:732:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > connect promise continuation > parents a query chained off connect() to the active transaction [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,20 +1,50 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "b5b7290817e7fdca", + "span_id": "86cfe1a4b68dc823", + "start_timestamp": 1783324478.5333705, + "status": "ok", + "timestamp": 1783324478.549219, + "trace_id": "f76410f7d130470091226e1116012f63", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS connect_then", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS connect_then", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "b5b7290817e7fdca", + "span_id": "ae5c07274422312e", + "start_timestamp": 1783324478.5501378, "status": "ok", + "timestamp": 1783324478.5522978, + "trace_id": "f76410f7d130470091226e1116012f63", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > connect promise continuation > parents a query chained off connect() to the active transaction [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,20 +1,50 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "90e4e75948deb000", + "span_id": "83d2a94ec00b27f1", + "start_timestamp": 1783324471.2011397, + "status": "ok", + "timestamp": 1783324471.2162786, + "trace_id": "59e5d1647d1f489195d936d3f7e2f9da", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS connect_then", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS connect_then", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "90e4e75948deb000", + "span_id": "bf8b4e3d3c3dd909", + "start_timestamp": 1783324471.2171226, "status": "ok", + "timestamp": 1783324471.2206616, + "trace_id": "59e5d1647d1f489195d936d3f7e2f9da", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > pool > auto-instruments `pg.Pool`, masks connection-string credentials, and handles callback-style queries [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,32 +1,73 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", + "db.postgresql.idle.timeout.millis": 10000, + "db.postgresql.max.client": 10, "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", + "sentry.origin": "manual", }, "description": "pg-pool.connect", "op": "db", "origin": "manual", + "parent_span_id": "8be0140065e02734", + "span_id": "a2246c3449bc8119", + "start_timestamp": 1783324461.83751, "status": "ok", + "timestamp": 1783324461.860138, + "trace_id": "a4445b62f8434ad6a517f8f41dcab904", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "a2246c3449bc8119", + "span_id": "8417f2d964d4e2b5", + "start_timestamp": 1783324461.8393538, + "status": "ok", + "timestamp": 1783324461.8607435, + "trace_id": "a4445b62f8434ad6a517f8f41dcab904", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS foo", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS foo", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "8be0140065e02734", + "span_id": "8655e81652e118b7", + "start_timestamp": 1783324461.8591714, "status": "ok", + "timestamp": 1783324461.8634167, + "trace_id": "a4445b62f8434ad6a517f8f41dcab904", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > pool > auto-instruments `pg.Pool`, masks connection-string credentials, and handles callback-style queries [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,32 +1,73 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", + "db.postgresql.idle.timeout.millis": 10000, + "db.postgresql.max.client": 10, "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", + "sentry.origin": "manual", }, "description": "pg-pool.connect", "op": "db", "origin": "manual", + "parent_span_id": "ae19ba9c455f90f2", + "span_id": "801b0d678eb4513c", + "start_timestamp": 1783324454.2187476, "status": "ok", + "timestamp": 1783324454.2421339, + "trace_id": "6292f43136a148d1b4cb73fb13c75e1e", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "manual", + }, + "description": "pg.connect", + "op": "db", + "origin": "manual", + "parent_span_id": "801b0d678eb4513c", + "span_id": "84245901fdf83011", + "start_timestamp": 1783324454.2208474, + "status": "ok", + "timestamp": 1783324454.2426887, + "trace_id": "6292f43136a148d1b4cb73fb13c75e1e", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT 1 AS foo", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT 1 AS foo", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "ae19ba9c455f90f2", + "span_id": "99e670db7265883c", + "start_timestamp": 1783324454.2412302, "status": "ok", + "timestamp": 1783324454.2450805, + "trace_id": "6292f43136a148d1b4cb73fb13c75e1e", }, ], "start_timestamp": Anything, "timestamp": Anything, "transaction": "Test Transaction", ❯ assertSentryTransaction utils/assertions.ts:42:18 ❯ expectTransactionEvent utils/runner/createRunner.ts:734:5 ❯ assertExpectedEnvelope utils/runner/createRunner.ts:708:5 ❯ newEnvelope utils/runner/createRunner.ts:373:15 ❯ tryParseEnvelopeFromStdoutLine utils/runner/createRunner.ts:491:15 ❯ Socket.<anonymous> utils/runner/createRunner.ts:509:15
suites/tracing/postgres/test.ts > postgres auto instrumentation > default > should auto-instrument `pg` package [cjs]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,71 +1,140 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "be8ad265ad497858", + "span_id": "9d47d2c574a26408", + "start_timestamp": 1783324431.7023106, "status": "ok", + "timestamp": 1783324431.727719, + "trace_id": "0ebe3988ab564e7aaa33a9caeb4ca107", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "be8ad265ad497858", + "span_id": "92c5959846f29426", + "start_timestamp": 1783324431.7290316, + "status": "ok", + "timestamp": 1783324431.7411394, + "trace_id": "0ebe3988ab564e7aaa33a9caeb4ca107", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "be8ad265ad497858", + "span_id": "abb1a7919e8490e1", + "start_timestamp": 1783324431.741704, "status": "ok", + "timestamp": 1783324431.7443347, + "trace_id": "0ebe3988ab564e7aaa33a9caeb4ca107", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"User\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"User\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "be8ad265ad497858", + "span_id": "ba0ba6d22df439e5", + "start_timestamp": 1783324431.7447474, "status": "ok", + "timestamp": 1783324431.7465527, + "trace_id"
suites/tracing/postgres/test.ts > postgres auto instrumentation > default > should auto-instrument `pg` package [esm]: dev-packages/node-integration-tests/utils/assertions.ts#L42
AssertionError: expected { contexts: { …(8) }, …(13) } to match object { event_id: Any<String>, …(5) } (104 matching properties omitted from actual) - Expected + Received @@ -1,71 +1,140 @@ { "event_id": Any<String>, - "spans": ArrayContaining [ - ObjectContaining { - "data": ObjectContaining { + "spans": [ + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", "sentry.origin": "manual", }, "description": "pg.connect", "op": "db", + "origin": "manual", + "parent_span_id": "b81a1bb8ca581503", + "span_id": "8a17e9bf7efe8596", + "start_timestamp": 1783324424.1645694, "status": "ok", + "timestamp": 1783324424.1816435, + "trace_id": "d34c2fcb15fe4d2eac4186734098f38f", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", + "db.name": "tests", + "db.statement": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, + "sentry.op": "db", + "sentry.origin": "auto.db.orchestrion.postgres", + }, + "description": "CREATE TABLE \"User\" (\"id\" SERIAL NOT NULL,\"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\"email\" TEXT NOT NULL,\"name\" TEXT,CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\"));", + "op": "db", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "b81a1bb8ca581503", + "span_id": "b2c4992eeb2fc116", + "start_timestamp": 1783324424.1827543, + "status": "ok", + "timestamp": 1783324424.192518, + "trace_id": "d34c2fcb15fe4d2eac4186734098f38f", + }, + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "INSERT INTO \"User\" (\"email\", \"name\") VALUES ($1, $2)", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "b81a1bb8ca581503", + "span_id": "bfe9167bf2c532e8", + "start_timestamp": 1783324424.1928644, "status": "ok", + "timestamp": 1783324424.197104, + "trace_id": "d34c2fcb15fe4d2eac4186734098f38f", }, - ObjectContaining { - "data": ObjectContaining { + { + "data": { + "db.connection_string": "postgresql://localhost:5494/tests", "db.name": "tests", "db.statement": "SELECT * FROM \"User\"", "db.system": "postgresql", + "db.user": "test", + "net.peer.name": "localhost", + "net.peer.port": 5494, "sentry.op": "db", - "sentry.origin": "auto.db.otel.postgres", + "sentry.origin": "auto.db.orchestrion.postgres", }, "description": "SELECT * FROM \"User\"", "op": "db", - "origin": "auto.db.otel.postgres", + "origin": "auto.db.orchestrion.postgres", + "parent_span_id": "b81a1bb8ca581503", + "span_id": "b5450877f6b1a17d", + "start_timestamp": 1783324424.1972976, "status": "ok", + "timestamp": 1783324424.1987448, + "trace_id"
All required jobs passed or were skipped
Process completed with exit code 1.