Skip to content

Commit c059725

Browse files
committed
avoid core
1 parent be3967b commit c059725

File tree

53 files changed

+31
-150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+31
-150
lines changed

dev-packages/e2e-tests/test-applications/angular-17/tests/performance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
3-
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
3+
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/angular';
44

55
test('sends a pageload transaction with a parameterized URL', async ({ page }) => {
66
const transactionPromise = waitForTransaction('angular-17', async transactionEvent => {

dev-packages/e2e-tests/test-applications/angular-18/tests/performance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
3-
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
3+
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/angular';
44

55
test('sends a pageload transaction with a parameterized URL', async ({ page }) => {
66
const transactionPromise = waitForTransaction('angular-18', async transactionEvent => {

dev-packages/e2e-tests/test-applications/angular-19/tests/performance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
3-
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
3+
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/angular';
44

55
test('sends a pageload transaction with a parameterized URL', async ({ page }) => {
66
const transactionPromise = waitForTransaction('angular-18', async transactionEvent => {

dev-packages/e2e-tests/test-applications/angular-20/tests/performance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect, test } from '@playwright/test';
22
import { waitForTransaction } from '@sentry-internal/test-utils';
3-
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core';
3+
import { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/angular';
44

55
test('sends a pageload transaction with a parameterized URL', async ({ page }) => {
66
const transactionPromise = waitForTransaction('angular-20', async transactionEvent => {

dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"@playwright/test": "~1.50.0",
2929
"@sentry-internal/test-utils": "link:../../../test-utils",
3030
"@remix-run/dev": "^2.7.2",
31-
"@sentry/core": "latest || *",
3231
"@types/compression": "^1.7.5",
3332
"@types/express": "^4.17.20",
3433
"@types/morgan": "^1.9.9",

dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/tests/server-transactions.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { expect, test } from '@playwright/test';
2-
import { uuid4 } from '@sentry/core';
32

43
import { waitForTransaction } from '@sentry-internal/test-utils';
54

@@ -20,7 +19,7 @@ test('Sends parameterized transaction name to Sentry', async ({ page }) => {
2019

2120
test('Sends two linked transactions (server & client) to Sentry', async ({ page }) => {
2221
// We use this to identify the transactions
23-
const testTag = uuid4();
22+
const testTag = crypto.randomUUID();
2423

2524
const httpServerTransactionPromise = waitForTransaction('create-remix-app-express-vite-dev', transactionEvent => {
2625
return transactionEvent.contexts?.trace?.op === 'http.server' && transactionEvent.tags?.['sentry_test'] === testTag;

dev-packages/e2e-tests/test-applications/create-remix-app-express/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"@playwright/test": "~1.50.0",
3232
"@sentry-internal/test-utils": "link:../../../test-utils",
3333
"@remix-run/dev": "^2.7.2",
34-
"@sentry/core": "latest || *",
3534
"@types/compression": "^1.7.2",
3635
"@types/express": "^4.17.17",
3736
"@types/morgan": "^1.9.4",

dev-packages/e2e-tests/test-applications/create-remix-app-express/tests/server-transactions.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { expect, test } from '@playwright/test';
2-
import { uuid4 } from '@sentry/core';
3-
42
import { waitForTransaction } from '@sentry-internal/test-utils';
53

64
test.describe.configure({ mode: 'serial' });
@@ -63,7 +61,7 @@ test('Sends a loader span to Sentry', async ({ page }) => {
6361

6462
test('Propagates trace when ErrorBoundary is triggered', async ({ page }) => {
6563
// We use this to identify the transactions
66-
const testTag = uuid4();
64+
const testTag = crypto.randomUUID();
6765

6866
const httpServerTransactionPromise = waitForTransaction('create-remix-app-express', transactionEvent => {
6967
return transactionEvent.contexts?.trace?.op === 'http.server' && transactionEvent.tags?.['sentry_test'] === testTag;

dev-packages/e2e-tests/test-applications/create-remix-app-v2/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"@sentry-internal/test-utils": "link:../../../test-utils",
2626
"@remix-run/dev": "2.16.7",
2727
"@remix-run/eslint-config": "2.16.7",
28-
"@sentry/core": "latest || *",
2928
"@types/react": "^18.2.64",
3029
"@types/react-dom": "^18.2.34",
3130
"@types/prop-types": "15.7.7",

dev-packages/e2e-tests/test-applications/create-remix-app-v2/tests/server-transactions.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { expect, test } from '@playwright/test';
2-
import { uuid4 } from '@sentry/core';
3-
42
import { waitForTransaction } from '@sentry-internal/test-utils';
53

64
test.describe.configure({ mode: 'serial' });
@@ -20,7 +18,7 @@ test('Sends parameterized transaction name to Sentry', async ({ page }) => {
2018

2119
test('Sends two linked transactions (server & client) to Sentry', async ({ page }) => {
2220
// We use this to identify the transactions
23-
const testTag = uuid4();
21+
const testTag = crypto.randomUUID();
2422

2523
const httpServerTransactionPromise = waitForTransaction('create-remix-app-v2', transactionEvent => {
2624
return transactionEvent.contexts?.trace?.op === 'http.server' && transactionEvent.tags?.['sentry_test'] === testTag;
@@ -40,9 +38,8 @@ test('Sends two linked transactions (server & client) to Sentry', async ({ page
4038

4139
const httpServerTraceId = httpServerTransaction.contexts?.trace?.trace_id;
4240
const httpServerSpanId = httpServerTransaction.contexts?.trace?.span_id;
43-
const loaderSpanId = httpServerTransaction?.spans?.find(
44-
span => span.data && span.data['code.function'] === 'loader',
45-
)?.span_id;
41+
const loaderSpanId = httpServerTransaction?.spans?.find(span => span.data && span.data['code.function'] === 'loader')
42+
?.span_id;
4643

4744
const pageLoadTraceId = pageloadTransaction.contexts?.trace?.trace_id;
4845
const pageLoadSpanId = pageloadTransaction.contexts?.trace?.span_id;

0 commit comments

Comments
 (0)