Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Sep 10, 2024
1 parent a955edf commit aafa4f7
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 40 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Link from 'next/link';

export default function Page() {
return <Link href="/prefetchable-page">prefetchable page</Link>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const dynamic = 'force-dynamic';

export default function Page() {
return <p>loading</p>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const dynamic = 'force-dynamic';

export default function Page() {
return <p>hello</p>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { expect, test } from '@playwright/test';
import { waitForTransaction } from '@sentry-internal/test-utils';

test('Should capture transactions with `http.server.prefetch` op for prefetch traces', async ({ page }) => {
const serverPrefetchTransactionPromise = waitForTransaction('nextjs-13', async transactionEvent => {
console.log('t', transactionEvent.transaction);
const serverPrefetchTransactionPromise = waitForTransaction('nextjs-15', async transactionEvent => {
return transactionEvent?.transaction === 'GET /prefetchable-page';
});

Expand Down
1 change: 1 addition & 0 deletions packages/opentelemetry/src/spanExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ function removeSentryAttributes(data: Record<string, unknown>): Record<string, u
/* eslint-disable @typescript-eslint/no-dynamic-delete */
delete cleanedData[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];
delete cleanedData[SEMANTIC_ATTRIBUTE_SENTRY_PARENT_IS_REMOTE];
delete cleanedData['sentry.skip_span_data_inference'];
/* eslint-enable @typescript-eslint/no-dynamic-delete */

return cleanedData;
Expand Down

0 comments on commit aafa4f7

Please sign in to comment.