-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(core)!: Add normalizedRequest to samplingContext
#14902
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 📦
|
Lms24
left a comment
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
| - 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 samplingContextnormalizedRequest to samplingContext
The sampling context didn't include the
requestobject anymore. By adding thenormalizedRequest, this data is added again.