-
Notifications
You must be signed in to change notification settings - Fork 94
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
fix: Normalize route path in trace context data #3104
Conversation
/cc @cleptric |
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.
Thanks for the fix!
I wonder if we should document this in the trace context to avoid similar issues in the future.
} | ||
Annotated(None, meta) => Annotated(None, meta), | ||
Annotated(Some(value), mut meta) => { | ||
meta.add_error(Error::expected("route")); |
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.
nit (not sure if the message is the most helpful one):
meta.add_error(Error::expected("route")); | |
meta.add_error(Error::expected("route expected to be an object")); |
added docs getsentry/develop#1157 |
Relay expects for
contexts.trace.data.route
to be a route, but some SDKs sent the string (for route names) inroute
and we want to handle this and normalize the data into the know types structure.This PR introduces the customer
FromValue
trait implementation forRoute
to handle:contexts.trace.data.route
fieldfix: #3000