-
Notifications
You must be signed in to change notification settings - Fork 16
Change ID-format, resultCode, Success for tracing #23
Conversation
| span.context.span_id | ||
| ), | ||
| resultCode="0", # TODO | ||
| resultCode="0", |
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.
can we put canonical code 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.
Do you mean to use the "StatusCanonicalCode"?
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.
yes
| span.context.span_id | ||
| ), | ||
| duration=utils.ns_to_duration(span.end_time - span.start_time), | ||
| responseCode="0", |
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.
can we put canonical code here?
| ), | ||
| duration=utils.ns_to_duration(span.end_time - span.start_time), | ||
| responseCode="0", | ||
| responseCode=str(StatusCanonicalCode.OK.value), |
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 mean we have a real status of the span, can we use that one?
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 was trying to keep the old behaviour, but since there were a bunch of TODOs it's safe to assume that we want to change this. I will change it to use the status of the span.
Addresses #21, and #22
@lmolkova