-
Notifications
You must be signed in to change notification settings - Fork 201
Exporter/Zipkin: Add a note about status tags. #1931
Exporter/Zipkin: Add a note about status tags. #1931
Conversation
b0a785d
to
00da6e0
Compare
opentracing !=zipkin so OT is not a valid rationale for zipkin data policy
especially when prior art exists.
since this is about zipkin I think we should use conventions present with a
comment saying where it was inherited from.
here is the default way we tag status for grpc. this has been the case
before opentracing did anything with grpc.
maybe correct and make a line note about why.
https://github.com/apache/incubator-zipkin-brave/blob/master/instrumentation/grpc/src/main/java/brave/grpc/GrpcParser.java#L67
thx
…On Wed, Jun 12, 2019, 1:01 AM Yang Song ***@***.***> wrote:
Suggested by #1928 (comment)
<#1928 (comment)>.
Seems this is the convention from OpenTracing.
/cc @adriancole <https://github.com/adriancole>
------------------------------
You can view, comment on, or merge this pull request online at:
#1931
Commit Summary
- Exporter/Zipkin: Update names of status tags.
File Changes
- *M*
exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/ZipkinExporterHandler.java
<https://github.com/census-instrumentation/opencensus-java/pull/1931/files#diff-0>
(5)
- *M*
exporters/trace/zipkin/src/test/java/io/opencensus/exporter/trace/zipkin/ZipkinExporterHandlerTest.java
<https://github.com/census-instrumentation/opencensus-java/pull/1931/files#diff-1>
(8)
Patch Links:
-
https://github.com/census-instrumentation/opencensus-java/pull/1931.patch
-
https://github.com/census-instrumentation/opencensus-java/pull/1931.diff
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1931?email_source=notifications&email_token=AAAPVV6J3LZ6BBD25T5FUETPZ7K53A5CNFSM4HXA2AK2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GY3X7ZQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAPVV6DCQGFRVFJPYUS67DPZ7K53ANCNFSM4HXA2AKQ>
.
|
00da6e0
to
b33460d
Compare
@adriancole Thanks for the pointers. I reverted the changes to these tags and added a reference link. /cc @pjanotti |
|
||
// The naming follows Zipkin convention. As an example see: | ||
// https://github.com/apache/incubator-zipkin-brave/blob/643b7245c462dc14d47afcdb076b2603fd421497/instrumentation/grpc/src/main/java/brave/grpc/GrpcParser.java#L67-L73 | ||
@VisibleForTesting static final String STATUS_CODE = "census.status_code"; |
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.
one important thing is that we do use non-ok as "error" message. this controls analysis etc, so I would recommend including this logic 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.
Got it, added in c1f588a.
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.
LGTM thanks!
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 @songy23 for the code and @adriancole for providing the context.
Suggested by #1928 (comment). Seems this is the convention from OpenTracing.
/cc @adriancole