Skip to content

Commit 55cab63

Browse files
committed
add tracePropagationTargets to integration tests
1 parent ada2c93 commit 55cab63

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/node-integration-tests/suites/express/sentry-trace/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Sentry.init({
1212
dsn: 'https://[email protected]/1337',
1313
release: '1.0',
1414
environment: 'prod',
15+
tracePropagationTargets: [/^(?!.*express).*$/],
1516
// eslint-disable-next-line deprecation/deprecation
1617
integrations: [new Sentry.Integrations.Http({ tracing: true }), new Tracing.Integrations.Express({ app })],
1718
tracesSampleRate: 1.0,

packages/node-integration-tests/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ export class TestEnv {
202202
*/
203203
public async getAPIResponse(
204204
url?: string,
205-
headers?: Record<string, string>,
205+
headers: Record<string, string> = {},
206206
endServer: boolean = true,
207207
): Promise<unknown> {
208208
try {
209-
const { data } = await axios.get(url || this.url, { headers: headers || {} });
209+
const { data } = await axios.get(url || this.url, { headers });
210210
return data;
211211
} finally {
212212
await Sentry.flush();

0 commit comments

Comments
 (0)