-
Notifications
You must be signed in to change notification settings - Fork 51
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
observability naming adjustments #537
Conversation
|
||
var aerr smithy.APIError | ||
if $errors.As:T(err, &aerr) { | ||
span.SetProperty("error.api.code", aerr.ErrorCode()) | ||
span.SetProperty("error.api.message", aerr.ErrorMessage()) | ||
span.SetProperty("error.api.fault", aerr.ErrorFault().String()) |
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.
What's fault in the context of Smithy?
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.
"client", "server" or "unknown"
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.
oh, like "who's fault is this".
I may be biased towards the errors I happen to be looking at right now, but this does seem useful for communicating with customers and saying "this is a client error, not an issue with the server", although I'd defer to your experience if you think this is not important
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.
Honestly, I'm fine leaving it
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.
re-added
smithyoteltracing
andsmithyotelmetrics
. Conventionally, when a module is also meant to be used as a package, it should have a valid package name.api.error_fault
attribute since I don't think it really added any value