-
Notifications
You must be signed in to change notification settings - Fork 897
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
Map Error Status to error tag in Zipkin & Jaeger #1257
Changes from 12 commits
d283999
2133e6b
4d618e2
cd5c3c7
1ea97b2
1fba8f2
f3d4176
f16cc91
b62b651
8534795
0bf7fa8
91f9c1f
70fd808
de9a65f
a6ebf3d
2891d74
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,9 +127,7 @@ convention](../semantic_conventions/README.md) | |
document maps to the strongly-typed fields of Zipkin spans. | ||
|
||
Primitive types MUST be converted to string using en-US culture settings. | ||
Boolean values must use lower case strings `"true"` and `"false"`, except an | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this special case is still true. For example, you have an opentracing bridge which has in the past littered folks stuff with "error"->"false" data. can you please verify that false should never be sent as a value of "error" regardless of if being mapped from the grpc status or not? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK I added it back with different words as part of the Status section. |
||
attribute named `error`. In case if value of the attribute is `false`, Zipkin | ||
tag needs to be omitted. | ||
Boolean values MUST use lower case strings `"true"` and `"false"`. | ||
|
||
Array values MUST be serialized to string like a JSON list as mentioned in | ||
[semantic conventions](../../overview.md#semantic-conventions). | ||
|
@@ -146,7 +144,11 @@ The following table defines the OpenTelemetry `Status` to Zipkin `tags` mapping. | |
| Status|Tag Key| Tag Value | | ||
|--|--|--| | ||
|Code | `otel.status_code` | Name of the code, either `OK` or `ERROR`. MUST NOT be set if the code is `UNSET`. | | ||
|Message *(optional)* | `otel.status_description` | `{message}` | | ||
|Description| `error` | Description of the `Status`. MUST be set if the code is `ERROR`, use an empty string if Description has no value. MUST NOT be set for `OK` and `UNSET` codes. | | ||
|
||
Note: The `error` tag should only be set if `Status` is `Error`. If a boolean | ||
version (`{"error":false}` or `{"error":"false"}`) is present, it SHOULD be | ||
removed. Zipkin will treat any span with `error` sent as failed. | ||
|
||
### Events | ||
|
||
|
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.
This sounds like a general guideline that would apply to any API function, we don't need to be cluttering individual function descriptions with 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.
That was there before my addition you want me to update here?
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.
could be done in another PR