Skip to content

Commit 762c5c5

Browse files
committed
fix some test fails
1 parent e804b41 commit 762c5c5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/sveltekit/src/index.types.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ export declare const getClient: typeof clientSdk.getClient;
4747
export declare const getCurrentHub: typeof clientSdk.getCurrentHub;
4848
// eslint-disable-next-line deprecation/deprecation
4949
export declare const makeMain: typeof clientSdk.makeMain;
50-
5150
export declare function close(timeout?: number | undefined): PromiseLike<boolean>;
5251
export declare function flush(timeout?: number | undefined): PromiseLike<boolean>;
5352

53+
export declare const continueTrace: typeof clientSdk.continueTrace;
54+
5455
export declare const metrics: typeof clientSdk.metrics & typeof serverSdk.metrics;

packages/sveltekit/test/server/load.test.ts

+6
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,15 @@ describe('wrapServerLoadWithSentry calls trace', () => {
283283
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'route',
284284
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'function.sveltekit.server.load',
285285
'http.method': 'GET',
286+
'otel.kind': 'INTERNAL',
287+
'sentry.sample_rate': 1,
286288
},
287289
op: 'function.sveltekit.server.load',
288290
parent_span_id: '1234567890abcdef',
289291
span_id: expect.any(String),
290292
trace_id: '1234567890abcdef1234567890abcdef',
291293
origin: 'auto.function.sveltekit',
294+
status: 'ok',
292295
});
293296
expect(transaction.transaction).toEqual('/users/[id]');
294297
expect(transaction.sdkProcessingMetadata?.dynamicSamplingContext).toEqual({
@@ -330,11 +333,14 @@ describe('wrapServerLoadWithSentry calls trace', () => {
330333
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'function.sveltekit.server.load',
331334
[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]: 1,
332335
'http.method': 'GET',
336+
'otel.kind': 'INTERNAL',
333337
},
334338
op: 'function.sveltekit.server.load',
335339
span_id: expect.any(String),
336340
trace_id: expect.not.stringContaining('1234567890abcdef1234567890abcdef'),
341+
parent_span_id: expect.not.stringContaining('1234567890abcdef'),
337342
origin: 'auto.function.sveltekit',
343+
status: 'ok',
338344
});
339345
expect(transaction.transaction).toEqual('/users/[id]');
340346
expect(transaction.sdkProcessingMetadata?.dynamicSamplingContext).toEqual({

0 commit comments

Comments
 (0)