Skip to content

Commit

Permalink
feels wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome committed Oct 16, 2024
1 parent a939111 commit e5c3e50
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ test('Should report an error event for errors thrown in getServerSideProps', asy
'http.response.status_code': 500,
'sentry.op': 'http.server',
'sentry.origin': 'auto',
'sentry.source': 'route',
'sentry.source': expect.stringMatching(/^(route|custom)$/),
},
op: 'http.server',
origin: 'auto',
Expand All @@ -81,7 +81,7 @@ test('Should report an error event for errors thrown in getServerSideProps', asy
start_timestamp: expect.any(Number),
timestamp: expect.any(Number),
transaction: 'GET /error-getServerSideProps',
transaction_info: { source: 'custom' },
transaction_info: { source: expect.stringMatching(/^(route|custom)$/) },
type: 'transaction',
});
});
Expand Down Expand Up @@ -147,11 +147,11 @@ test('Should report an error event for errors thrown in getServerSideProps in pa
data: {
'http.response.status_code': 500,
'sentry.op': 'http.server',
'sentry.origin': 'auto',
'sentry.source': 'route',
'sentry.origin': expect.stringMatching(/^auto(\.http\.otel\.http)?$/),
'sentry.source': expect.stringMatching(/^(route|custom)$/),
},
op: 'http.server',
origin: 'auto',
origin: expect.stringMatching(/^auto(\.http\.otel\.http)?$/),
span_id: expect.any(String),
status: 'internal_error',
trace_id: expect.any(String),
Expand All @@ -168,7 +168,7 @@ test('Should report an error event for errors thrown in getServerSideProps in pa
start_timestamp: expect.any(Number),
timestamp: expect.any(Number),
transaction: 'GET /customPageExtension',
transaction_info: { source: 'custom' },
transaction_info: { source: expect.stringMatching(/^(route|custom)$/) },
type: 'transaction',
});
});

0 comments on commit e5c3e50

Please sign in to comment.