Skip to content
Closed
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 @@ -32,7 +32,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand Down Expand Up @@ -63,9 +63,5 @@ async function run() {
}
});

await Sentry.flush(2000);

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand Down Expand Up @@ -60,9 +60,5 @@ async function run() {
}
});

await Sentry.flush(2000);

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand All @@ -39,5 +39,3 @@ async function run() {

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand All @@ -50,9 +50,5 @@ async function run() {
});
});

await Sentry.flush(2000);

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand Down Expand Up @@ -187,9 +187,6 @@ async function run() {
});

// Wait for the stream event handler to finish
await Sentry.flush(2000);

server.close();
}

run();
442 changes: 223 additions & 219 deletions dev-packages/node-integration-tests/suites/tracing/anthropic/test.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand Down Expand Up @@ -57,9 +57,5 @@ async function run() {
}
});

await Sentry.flush(2000);

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();

await Sentry.startSpan({ op: 'function', name: 'main' }, async () => {
Expand All @@ -34,9 +34,5 @@ async function run() {
.finalMessage();
});

await Sentry.flush(2000);

server.close();
}

run();
Loading
Loading