-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ref(utils): Stop setting transaction
in requestDataIntegration
#14306
Conversation
size-limit report 📦
|
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.
LGTM, happy we can get rid of this!
@@ -35,6 +34,7 @@ export type AddRequestDataToEventOptions = { | |||
include?: { | |||
ip?: boolean; | |||
request?: boolean | Array<(typeof DEFAULT_REQUEST_INCLUDES)[number]>; | |||
/** @deprecated This option will be removed in v9. It does not do anything anymore, the `transcation` is set in other places. */ |
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.
/** @deprecated This option will be removed in v9. It does not do anything anymore, the `transcation` is set in other places. */ | |
/** | |
* @deprecated This option will be removed with the next major version of the SDK. If you want to disable capturing of the URL, please use the `request` option instead. | |
*/ |
maybe a bit more transparent
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.
but the request is quite different from this, isn't it? Opting out of the request there will not affect the transaction being set on the transaction event - though to be honest, it probably did not actually affect it even before, because that was set anyhow by other code already 😅
Actually, I think this means we can also deprecate |
This is not really necessary anymore - it only sets this on transaction events, and those get the `transaction` in different places already anyhow. With this, we can also actually remove some other stuff. One method is exported from utils but not otherwise used, we can also drop this in v9. Finally, this was also the only place that used `route` on the request, so we can also get rid of this in `remix`, which is weird anyhow because we set it for errors there but don't even use it for them.
edcca51
to
1025797
Compare
Good point, also deprecated this! |
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
This is not really necessary anymore - it only sets this on transaction events, and those get the
transaction
in different places already anyhow.With this, we can also actually remove some other stuff. One method is exported from utils but not otherwise used, we can also drop this in v9.
Finally, this was also the only place that used
route
on the request, so we can also get rid of this inremix
, which is weird anyhow because we set it for errors there but don't even use it for them.