-
Notifications
You must be signed in to change notification settings - Fork 284
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
Error codes on trace spans #6727
Conversation
This comment has been minimized.
This comment has been minimized.
CI performance tests
|
✅ Docs preview has no changesThe preview was not built because there were no changes. Build ID: fa02359c8dd02d62c47b546f |
@@ -182,6 +183,16 @@ impl RawResponse { | |||
} | |||
}; | |||
|
|||
if let MappedResponse::Error { |
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.
I don't think it affects what you're doing here, but just be aware that what is considered an error here may change going forward. Currently any HTTP response status other than 2XX is an error, but in the future, there are plans to make this more customizable by the customer. For example, a 404 may just result in a null
field, not an error.
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.
the extensions.code
property will also be user-customizable, if that matters
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.
Only reviewed the changeset; feel free to dismiss once this is fixed, but don't want this to get missed and only show up at release time. 😄
Adds new span events to trace spans that include errors generated by connectors and the demand control plugin. These error events are added to the trace but not logged in the console. The plan is to add more events for more error types once we have confirmed that this is the right way to implement this functionality.
Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Note any exceptions here
Notes
Footnotes
It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. ↩
Configuration is an important part of many changes. Where applicable please try to document configuration examples. ↩
Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions. ↩