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
Expand Up @@ -7,6 +7,7 @@ app.use(
sentry(app, {
dsn: process.env.SENTRY_DSN,
tracesSampleRate: 1.0,
traceLifecycle: 'static',
}),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let nested = false;
const client = new DenoClient({
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
traceLifecycle: 'static',
integrations: getDefaultIntegrations({}),
stackParser: createStackParser(nodeStackLineParser()),
beforeSendTransaction(event) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('amqplib instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Amqplib'), `Amqplib should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('amqplib instrumentation: orchestrion:amqplib:publish channel produces
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('anthropic instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Anthropic_AI'), `Anthropic_AI should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('anthropic instrumentation: orchestrion @anthropic-ai/sdk:chat channel
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('aws-sdk instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Aws'), `Aws should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -26,6 +26,7 @@ Deno.test('aws-sdk instrumentation: orchestrion @smithy/smithy-client:send chann
resetGlobals();
const sink = transactionSink();
const client = init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('express instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Express'), `Express should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -20,6 +20,7 @@ Deno.test('express instrumentation: orchestrion:express:handle channel produces
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('firebase instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Firebase'), `Firebase should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('firebase instrumentation: orchestrion @firebase/firestore:add-doc cha
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('generic-pool instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('GenericPool'), `GenericPool should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('generic-pool instrumentation: orchestrion:generic-pool:acquire channe
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('google-genai instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Google_GenAI'), `Google_GenAI should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('google-genai instrumentation: orchestrion @google/genai:generate-cont
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async function assertParseSpan(channelName: string): Promise<void> {
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down Expand Up @@ -47,7 +48,7 @@ async function assertParseSpan(channelName: string): Promise<void> {

Deno.test('graphql instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Graphql'), `Graphql should be in defaults, got ${names.join(', ')}`);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('hapi instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Hapi'), `Hapi should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('hapi instrumentation: orchestrion:@hapi/hapi:route channel wraps the
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('kafkajs instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Kafka'), `Kafka should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('kafkajs instrumentation: orchestrion:kafkajs:send_batch channel produ
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('koa instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Koa'), `Koa should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('koa instrumentation: orchestrion:koa:use channel wraps middleware int
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('langchain instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('LangChain'), `LangChain should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('langchain instrumentation: orchestrion @langchain/openai:embedQuery c
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('langgraph instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('LangGraph'), `LangGraph should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('langgraph instrumentation: orchestrion stateGraphCompile channel prod
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('lru-memoizer instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('LruMemoizer'), `LruMemoizer should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -26,6 +26,7 @@ Deno.test('lru-memoizer instrumentation: restores the caller scope onto the memo
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('mongodb instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Mongo'), `Mongo should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('mongodb instrumentation: orchestrion:mongodb:command channel produces
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('mongoose instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Mongoose'), `Mongoose should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('mongoose instrumentation: orchestrion:mongoose:model_save channel pro
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('mysql2 instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Mysql2'), `Mysql2 should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('mysql2 instrumentation: orchestrion:mysql2:query channel produces a n
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('openai instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('OpenAI'), `OpenAI should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('openai instrumentation: orchestrion:openai:chat channel produces a ne
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('postgres.js instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('PostgresJs'), `PostgresJs should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -19,6 +19,7 @@ Deno.test('postgres.js instrumentation: orchestrion:postgres:handle channel prod
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { resetGlobals, transactionSink, withTimeout } from '../../src/index.ts';

Deno.test('tedious instrumentation: included in default integrations (Deno 2.8.0+)', () => {
resetGlobals();
const client = init({ dsn: 'https://username@domain/123' }) as DenoClient;
const client = init({ traceLifecycle: 'static', dsn: 'https://username@domain/123' }) as DenoClient;
const names = client.getOptions().integrations.map(i => i.name);
assert(names.includes('Tedious'), `Tedious should be in defaults, got ${names.join(', ')}`);
});
Expand All @@ -20,6 +20,7 @@ Deno.test('tedious instrumentation: orchestrion:tedious:execSql channel produces
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Deno.test('vercel-ai instrumentation: orchestrion:ai:generateText channel produc
resetGlobals();
const sink = transactionSink();
init({
traceLifecycle: 'static',
dsn: 'https://username@domain/123',
tracesSampleRate: 1,
beforeSendTransaction: sink.beforeSendTransaction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ Sentry.init({
release: '1.0',
tracesSampleRate: 1.0,
transport: loggingTransport,
traceLifecycle: process.env.STREAMED === 'true' ? 'stream' : undefined,
traceLifecycle: process.env.STREAMED === 'true' ? 'stream' : 'static',
});
2 changes: 2 additions & 0 deletions packages/browser/test/profiling/UIProfiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function getBaseOptionsForTraceLifecycle(sendMock: Mock<any>, enableTracing = tr
return {
dsn: 'https://public@o.ingest.sentry.io/1',
...(enableTracing ? { tracesSampleRate: 1 } : {}),
traceLifecycle: 'static',
profileSessionSampleRate: 1,
profileLifecycle: 'trace',
integrations: [Sentry.browserProfilingIntegration()],
Expand Down Expand Up @@ -711,6 +712,7 @@ function getBaseOptionsForManualLifecycle(sendMock: Mock<any>, enableTracing = t
return {
dsn: 'https://public@o.ingest.sentry.io/1',
...(enableTracing ? { tracesSampleRate: 1 } : {}),
traceLifecycle: 'static',
profileSessionSampleRate: 1,
profileLifecycle: 'manual',
integrations: [Sentry.browserProfilingIntegration()],
Expand Down
Loading
Loading