Skip to content
Draft
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
9 changes: 9 additions & 0 deletions dev-packages/e2e-tests/test-applications/astro-4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,14 @@
},
"volta": {
"extends": "../../package.json"
},
"sentryTest": {
"variants": [
{
"build-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"assert-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert",
"label": "astro-4 (sentry-trace-provider)"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Sentry.init({
dsn: import.meta.env.PUBLIC_E2E_TEST_DSN,
environment: 'qa',
tracesSampleRate: 1.0,
...(process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? {
_experiments: {
useSentryTraceProvider: true,
},
}
: {}),
spotlight: true,
tunnel: 'http://localhost:3031/', // proxy server
});
9 changes: 9 additions & 0 deletions dev-packages/e2e-tests/test-applications/astro-5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,14 @@
},
"volta": {
"extends": "../../package.json"
},
"sentryTest": {
"variants": [
{
"build-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"assert-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert",
"label": "astro-5 (sentry-trace-provider)"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ Sentry.init({
dsn: import.meta.env.PUBLIC_E2E_TEST_DSN,
environment: 'qa',
tracesSampleRate: 1.0,
...(process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? {
_experiments: {
useSentryTraceProvider: true,
},
}
: {}),
tunnel: 'http://localhost:3031/', // proxy server
});
13 changes: 12 additions & 1 deletion dev-packages/e2e-tests/test-applications/astro-6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"astro": "astro",
"start": "node ./dist/server/entry.mjs",
"test:build": "pnpm install && pnpm build",
"test:assert": "TEST_ENV=production playwright test"
"test:build:sentry-trace-provider": "E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"test:assert": "TEST_ENV=production playwright test",
"test:assert:sentry-trace-provider": "E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert"
},
"dependencies": {
"@astrojs/node": "^10.0.0",
Expand All @@ -21,5 +23,14 @@
"volta": {
"node": "22.22.0",
"extends": "../../package.json"
},
"sentryTest": {
"variants": [
{
"build-command": "pnpm test:build:sentry-trace-provider",
"assert-command": "pnpm test:assert:sentry-trace-provider",
"label": "astro-6 (sentry-trace-provider)"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Sentry.init({
dsn: import.meta.env.PUBLIC_E2E_TEST_DSN,
environment: 'qa',
tracesSampleRate: 1.0,
...(process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? {
_experiments: {
useSentryTraceProvider: true,
},
}
: {}),
tunnel: 'http://localhost:3031/', // proxy server
debug: true,
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,14 @@
},
"volta": {
"extends": "../../package.json"
},
"sentryTest": {
"variants": [
{
"build-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"assert-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert",
"label": "aws-serverless (sentry-trace-provider)"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as Sentry from '@sentry/aws-serverless';

const optionsWithTracingEnabled = process.env.SENTRY_TRACES_SAMPLE_RATE
? {
tracesSampleRate: parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE),
}
: {};

Sentry.init({
integrations: Sentry.getDefaultIntegrations(optionsWithTracingEnabled),
_experiments: {
useSentryTraceProvider: true,
},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import * as Sentry from '@sentry/aws-serverless';

const optionsWithTracingEnabled = process.env.SENTRY_TRACES_SAMPLE_RATE
? {
tracesSampleRate: parseFloat(process.env.SENTRY_TRACES_SAMPLE_RATE),
}
: {};

Sentry.init({
integrations: Sentry.getDefaultIntegrations(optionsWithTracingEnabled),
_experiments: {
useSentryTraceProvider: true,
},
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import { execFileSync } from 'node:child_process';

const LAMBDA_FUNCTIONS_DIR = './src/lambda-functions-npm';
const LAMBDA_FUNCTION_TIMEOUT = 10;
const LAMBDA_AUTO_INIT_IMPORT =
process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? './sentry-trace-provider-auto.mjs'
: '@sentry/aws-serverless/awslambda-auto';
export const SAM_PORT = 3001;

/** Match SAM / Docker to this machine so Apple Silicon does not mix arm64 images with an x86_64 template default. */
Expand Down Expand Up @@ -104,7 +108,7 @@ export class LocalLambdaStack extends Stack {
SENTRY_DSN: dsn,
SENTRY_TRACES_SAMPLE_RATE: 1.0,
SENTRY_DEBUG: true,
NODE_OPTIONS: `--import=@sentry/aws-serverless/awslambda-auto`,
NODE_OPTIONS: `--import=${LAMBDA_AUTO_INIT_IMPORT}`,
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ import * as process from 'process';

Sentry.init({
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
...(process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? {
_experiments: {
useSentryTraceProvider: true,
},
}
: {}),
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: process.env.E2E_TEST_DSN,
tunnel: 'http://localhost:3031/', // proxy server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,14 @@
},
"volta": {
"extends": "../../package.json"
},
"sentryTest": {
"variants": [
{
"build-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"assert-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert",
"label": "create-remix-app-express-vite-dev (sentry-trace-provider)"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ import process from 'process';

Sentry.init({
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
...(process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? {
_experiments: {
useSentryTraceProvider: true,
},
}
: {}),
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: process.env.E2E_TEST_DSN,
tunnel: 'http://localhost:3031/', // proxy server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,14 @@
},
"volta": {
"extends": "../../package.json"
},
"sentryTest": {
"variants": [
{
"build-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"assert-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert",
"label": "create-remix-app-express (sentry-trace-provider)"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ Sentry.init({
dsn: process.env.E2E_TEST_DSN,
tunnel: 'http://localhost:3031/', // proxy server
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
...(process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? {
_experiments: {
useSentryTraceProvider: true,
},
}
: {}),
});

const handleErrorImpl = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ const Sentry = require('@sentry/remix');

Sentry.init({
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
...(process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? {
_experiments: {
useSentryTraceProvider: true,
},
}
: {}),
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: process.env.E2E_TEST_DSN,
tunnel: 'http://localhost:3032/', // proxy server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,14 @@
},
"volta": {
"extends": "../../package.json"
},
"sentryTest": {
"variants": [
{
"build-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"assert-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert",
"label": "create-remix-app-v2-non-vite (sentry-trace-provider)"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ const Sentry = require('@sentry/remix');

Sentry.init({
tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
...(process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? {
_experiments: {
useSentryTraceProvider: true,
},
}
: {}),
environment: 'qa', // dynamic sampling bias to keep transactions
dsn: process.env.E2E_TEST_DSN,
tunnel: 'http://localhost:3031/', // proxy server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,14 @@
},
"volta": {
"extends": "../../package.json"
},
"sentryTest": {
"variants": [
{
"build-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"assert-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert",
"label": "create-remix-app-v2 (sentry-trace-provider)"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"test": "playwright test",
"clean": "npx rimraf node_modules pnpm-lock.yaml",
"test:build": "pnpm install",
"test:assert": "pnpm test"
"test:build:sentry-trace-provider": "E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"test:assert": "pnpm test",
"test:assert:sentry-trace-provider": "E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert"
},
"dependencies": {
"@sentry/elysia": "file:../../packed/sentry-elysia-packed.tgz",
Expand All @@ -22,5 +24,14 @@
"volta": {
"extends": "../../package.json",
"node": "24.11.0"
},
"sentryTest": {
"variants": [
{
"build-command": "pnpm test:build:sentry-trace-provider",
"assert-command": "pnpm test:assert:sentry-trace-provider",
"label": "elysia-node (sentry-trace-provider)"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ Sentry.init({
tunnel: `http://localhost:3031/`, // proxy server
tracesSampleRate: 1,
tracePropagationTargets: ['http://localhost:3030', '/external-allowed'],
...(process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? {
_experiments: {
useSentryTraceProvider: true,
},
}
: {}),
});

const app = Sentry.withElysia(new Elysia({ adapter: node() }));
Expand Down
15 changes: 12 additions & 3 deletions dev-packages/e2e-tests/test-applications/hono-4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
"dev:bun": "bun src/entry.bun.ts",
"build": "wrangler deploy --dry-run",
"test:build": "pnpm install && pnpm build",
"test:assert": "TEST_ENV=production playwright test"
"test:build:sentry-trace-provider": "E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"test:assert": "TEST_ENV=production playwright test",
"test:assert:node": "RUNTIME=node pnpm test:assert",
"test:assert:bun": "RUNTIME=bun pnpm test:assert",
"test:assert:sentry-trace-provider": "RUNTIME=node E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert"
},
"dependencies": {
"@sentry/bun": "latest || *",
Expand All @@ -34,12 +38,17 @@
"sentryTest": {
"variants": [
{
"assert-command": "RUNTIME=node pnpm test:assert",
"assert-command": "pnpm test:assert:node",
"label": "hono-4 (node)"
},
{
"assert-command": "RUNTIME=bun pnpm test:assert",
"assert-command": "pnpm test:assert:bun",
"label": "hono-4 (bun)"
},
{
"build-command": "pnpm test:build:sentry-trace-provider",
"assert-command": "pnpm test:assert:sentry-trace-provider",
"label": "hono-4 (node, sentry-trace-provider)"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ Sentry.init({
dsn: process.env.E2E_TEST_DSN,
environment: 'qa',
tracesSampleRate: 1.0,
...(process.env.E2E_USE_SENTRY_TRACE_PROVIDER === '1'
? {
_experiments: {
useSentryTraceProvider: true,
},
}
: {}),
tunnel: 'http://localhost:3031/',
});
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,14 @@
},
"volta": {
"extends": "../../package.json"
},
"sentryTest": {
"variants": [
{
"build-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:build",
"assert-command": "env E2E_USE_SENTRY_TRACE_PROVIDER=1 pnpm test:assert",
"label": "nestjs-11 (sentry-trace-provider)"
}
]
}
}
Loading
Loading