-
-
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
feat(core)!: Add normalizedRequest
to samplingContext
#14902
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.
Nice!
!!samplingContext.normalizedRequest.headers | ||
); | ||
}, | ||
debug: true, |
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.
l: we probably don't need this
debug: true, |
docs/migration/v8-to-v9.md
Outdated
@@ -217,6 +217,7 @@ Since v9, the types have been merged into `@sentry/core`, which removed some of | |||
- The `TransactionNamingScheme` type has been removed. There is no replacement. | |||
- The `Request` type has been removed. Use `RequestEventData` type instead. | |||
- The `IntegrationClass` type is no longer exported - it was not used anymore. Instead, use `Integration` or `IntegrationFn`. | |||
- - The `samplingContext.request` attribute in the `tracesSampler` has been removed. Use `samplingContext.normalizedRequest` instead. |
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.
l: Maybe we call out the type change a bit more?
- - The `samplingContext.request` attribute in the `tracesSampler` has been removed. Use `samplingContext.normalizedRequest` instead. | |
- The `samplingContext.request` attribute in the `tracesSampler` has been removed. Use `samplingContext.normalizedRequest` instead. Note that the type of `normalizedRequest` differs from `request`. |
normalizedRequest
to samplingContext
normalizedRequest
to samplingContext
The sampling context didn't include the
request
object anymore. By adding thenormalizedRequest
, this data is added again.