Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dcd9c05

Browse files
committed
rebase and fix some tests
1 parent d6d262e commit dcd9c05

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎dev-packages/browser-integration-tests/suites/integrations/supabase/auth/test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ sentryTest('should capture Supabase authentication errors', async ({ getLocalTes
143143
start_timestamp: expect.any(Number),
144144
timestamp: expect.any(Number),
145145
trace_id: transactionEvent.contexts?.trace?.trace_id,
146-
status: 'unknown_error',
146+
status: 'internal_error',
147147
data: expect.objectContaining({
148148
'sentry.op': 'db',
149149
'sentry.origin': 'auto.db.supabase',

‎packages/opentelemetry/src/utils/mapStatus.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function mapStatus(span: AbstractSpan): SpanStatus {
5656
if (status.message && isStatusErrorMessageValid(status.message)) {
5757
return { code: SPAN_STATUS_ERROR, message: status.message };
5858
} else {
59-
return { code: SPAN_STATUS_ERROR, message: 'unknown_error' };
59+
return { code: SPAN_STATUS_ERROR, message: 'internal_error' };
6060
}
6161
}
6262
}

‎packages/opentelemetry/test/utils/mapStatus.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('mapStatus', () => {
4040
[501, undefined, { code: SPAN_STATUS_ERROR, message: 'unimplemented' }],
4141
[503, undefined, { code: SPAN_STATUS_ERROR, message: 'unavailable' }],
4242
[504, undefined, { code: SPAN_STATUS_ERROR, message: 'deadline_exceeded' }],
43-
[999, undefined, { code: SPAN_STATUS_ERROR, message: 'unknown_error' }],
43+
[999, undefined, { code: SPAN_STATUS_ERROR, message: 'internal_error' }],
4444

4545
// grpc codes
4646
[undefined, '1', { code: SPAN_STATUS_ERROR, message: 'cancelled' }],
@@ -112,7 +112,7 @@ describe('mapStatus', () => {
112112
it('returns error status when span already has error status without message', () => {
113113
const span = createSpan('test-span');
114114
span.setStatus({ code: 2 }); // ERROR
115-
expect(mapStatus(span)).toEqual({ code: SPAN_STATUS_ERROR, message: 'unknown_error' });
115+
expect(mapStatus(span)).toEqual({ code: SPAN_STATUS_ERROR, message: 'internal_error' });
116116
});
117117

118118
it('infers error status form attributes when span already has error status without message', () => {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /