-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
test(browser): Add integration tests for startTransaction
#4343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
size-limit report
|
startTransaction
startTransaction
7a3174a
to
a912187
Compare
a912187
to
e5cb0d2
Compare
const eventData = await getSentryTransactionRequest(page, url); | ||
const transaction = eventData[2] as Event; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be returning the correct type from the helpers.
eventData[0]
and eventData[1]
are probably sessions. We prob wanna filter those out in the helper's return value
… into onur/public-api-tests-start-transaction
const request = (await Promise.all([page.goto(url || '#'), waitForSentryRequest(page, 'transaction')]))[1]; | ||
|
||
// https://develop.sentry.dev/sdk/envelopes/ | ||
const envelope = (request?.postData() as string) || ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we try catch wrap this logic and throw and error accordingly?
Part of: #4333