feat(node): Wire up SentryTracerProvider #49538
Annotations
2 errors and 1 notice
|
Run E2E test
Process completed with exit code 1.
|
|
Run E2E test:
../../_temp/test-application/tests/transactions.test.ts#L68
1) [chromium] › tests/transactions.test.ts:4:5 › Sends an API route transaction ──────────────────
Error: expect(received).toContainEqual(expected) // deep equality
Expected value: {"data": {"fastify.type": "request_handler", "http.route": "/test-transaction", "plugin.name": "sentry-fastify-error-handler", "sentry.op": "request_handler.fastify", "sentry.origin": "auto.http.otel.fastify"}, "description": "sentry-fastify-error-handler", "op": "request_handler.fastify", "origin": "auto.http.otel.fastify", "parent_span_id": StringMatching /[a-f0-9]{16}/, "span_id": StringMatching /[a-f0-9]{16}/, "start_timestamp": Any<Number>, "status": "ok", "timestamp": Any<Number>, "trace_id": StringMatching /[a-f0-9]{32}/}
Received array: [{"data": {"fastify.type": "request_handler", "http.route": "/test-transaction", "plugin.name": "sentry-fastify-error-handler", "sentry.op": "request_handler.fastify", "sentry.origin": "auto.http.otel.fastify", "sentry.source": "custom"}, "description": "sentry-fastify-error-handler", "op": "request_handler.fastify", "origin": "auto.http.otel.fastify", "parent_span_id": "93c8aff08ce4e55e", "span_id": "905cc2543f20ac88", "start_timestamp": 1782431689.2637908, "status": "ok", "timestamp": 1782431689.265011, "trace_id": "84d467d8f2024f439d9eeda079290c62"}, {"data": {"sentry.origin": "manual"}, "description": "test-span", "origin": "manual", "parent_span_id": "905cc2543f20ac88", "span_id": "b2742b46fb79a8e2", "start_timestamp": 1782431689.264266, "status": "ok", "timestamp": 1782431689.2648687, "trace_id": "84d467d8f2024f439d9eeda079290c62"}, {"data": {"sentry.origin": "manual"}, "description": "child-span", "origin": "manual", "parent_span_id": "b2742b46fb79a8e2", "span_id": "9944a8e5a043de5e", "start_timestamp": 1782431689.264712, "status": "ok", "timestamp": 1782431689.264839, "trace_id": "84d467d8f2024f439d9eeda079290c62"}]
66 | const spans = transactionEvent.spans || [];
67 |
> 68 | expect(spans).toContainEqual({
| ^
69 | data: {
70 | 'plugin.name': 'sentry-fastify-error-handler',
71 | 'fastify.type': 'request_handler',
at /home/runner/work/_temp/test-application/tests/transactions.test.ts:68:17
|
|
Run E2E test
1 failed
[chromium] › tests/transactions.test.ts:4:5 › Sends an API route transaction ───────────────────
9 passed (6.4s)
|
background
wait
wait-all
cancel
parallel
Loading