Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import { expect, test } from '@playwright/test';
import { waitForTransaction } from '@sentry-internal/test-utils';

// TODO(v11): `@sentry/effect` server used to run on `@sentry/node-core/light`, which set an
// AsyncLocalStorage-based async context strategy that matched Effect's fiber model, so the Effect
// tracer's spans became the `http.server GET` transaction. On full `@sentry/node` the SDK installs
// the OpenTelemetry context strategy instead, and the Effect tracer's span context no longer
// propagates as expected, so no transaction is emitted. Marked fixme until the Effect SDK's server
// tracing is adapted to the full-node async context model.

test.fixme('Sends an HTTP transaction', async ({ baseURL }) => {
test('Sends an HTTP transaction', async ({ baseURL }) => {
const transactionEventPromise = waitForTransaction('effect-3-node', transactionEvent => {
return transactionEvent?.transaction === 'http.server GET';
});
Expand All @@ -20,7 +13,7 @@ test.fixme('Sends an HTTP transaction', async ({ baseURL }) => {
expect(transactionEvent.transaction).toBe('http.server GET');
});

test.fixme('Sends transaction with manual Effect span', async ({ baseURL }) => {
test('Sends transaction with manual Effect span', async ({ baseURL }) => {
const transactionEventPromise = waitForTransaction('effect-3-node', transactionEvent => {
return (
transactionEvent?.transaction === 'http.server GET' &&
Expand All @@ -42,7 +35,7 @@ test.fixme('Sends transaction with manual Effect span', async ({ baseURL }) => {
]);
});

test.fixme('Sends Effect spans with correct parent-child structure', async ({ baseURL }) => {
test('Sends Effect spans with correct parent-child structure', async ({ baseURL }) => {
const transactionEventPromise = waitForTransaction('effect-3-node', transactionEvent => {
return (
transactionEvent?.transaction === 'http.server GET' &&
Expand Down Expand Up @@ -93,7 +86,7 @@ test.fixme('Sends Effect spans with correct parent-child structure', async ({ ba
expect(nestedSpan).toBe(parentSpan);
});

test.fixme('Sends transaction for error route', async ({ baseURL }) => {
test('Sends transaction for error route', async ({ baseURL }) => {
const transactionEventPromise = waitForTransaction('effect-3-node', transactionEvent => {
return transactionEvent?.transaction === 'http.server GET';
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import { expect, test } from '@playwright/test';
import { waitForTransaction } from '@sentry-internal/test-utils';

// TODO(v11): `@sentry/effect` server used to run on `@sentry/node-core/light`, which set an
// AsyncLocalStorage-based async context strategy that matched Effect's fiber model, so the Effect
// tracer's spans became the `http.server GET` transaction. On full `@sentry/node` the SDK installs
// the OpenTelemetry context strategy instead, and the Effect tracer's span context no longer
// propagates as expected, so no transaction is emitted. Marked fixme until the Effect SDK's server
// tracing is adapted to the full-node async context model.

test.fixme('Sends an HTTP transaction', async ({ baseURL }) => {
test('Sends an HTTP transaction', async ({ baseURL }) => {
const transactionEventPromise = waitForTransaction('effect-4-node', transactionEvent => {
return transactionEvent?.transaction === 'http.server GET';
});
Expand All @@ -20,7 +13,7 @@ test.fixme('Sends an HTTP transaction', async ({ baseURL }) => {
expect(transactionEvent.transaction).toBe('http.server GET');
});

test.fixme('Sends transaction with manual Effect span', async ({ baseURL }) => {
test('Sends transaction with manual Effect span', async ({ baseURL }) => {
const transactionEventPromise = waitForTransaction('effect-4-node', transactionEvent => {
return (
transactionEvent?.transaction === 'http.server GET' &&
Expand All @@ -42,7 +35,7 @@ test.fixme('Sends transaction with manual Effect span', async ({ baseURL }) => {
]);
});

test.fixme('Sends Effect spans with correct parent-child structure', async ({ baseURL }) => {
test('Sends Effect spans with correct parent-child structure', async ({ baseURL }) => {
const transactionEventPromise = waitForTransaction('effect-4-node', transactionEvent => {
return (
transactionEvent?.transaction === 'http.server GET' &&
Expand Down Expand Up @@ -93,7 +86,7 @@ test.fixme('Sends Effect spans with correct parent-child structure', async ({ ba
expect(nestedSpan).toBe(parentSpan);
});

test.fixme('Sends transaction for error route', async ({ baseURL }) => {
test('Sends transaction for error route', async ({ baseURL }) => {
const transactionEventPromise = waitForTransaction('effect-4-node', transactionEvent => {
return transactionEvent?.transaction === 'http.server GET';
});
Expand Down
Loading