Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Exporter/Zipkin: Add a note about status tags. #1931

Merged
merged 2 commits into from
Jun 12, 2019

Conversation

songy23
Copy link
Contributor

@songy23 songy23 commented Jun 11, 2019

Suggested by #1928 (comment). Seems this is the convention from OpenTracing.

/cc @adriancole

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Jun 11, 2019 via email

@songy23 songy23 force-pushed the zipkin-status-tag branch from 00da6e0 to b33460d Compare June 12, 2019 00:14
@songy23 songy23 changed the title Exporter/Zipkin: Update names of status tags. Exporter/Zipkin: Add a note about status tags. Jun 12, 2019
@songy23
Copy link
Contributor Author

songy23 commented Jun 12, 2019

@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";
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

Copy link

@pjanotti pjanotti left a 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.

@songy23 songy23 merged commit d3c6cf5 into census-instrumentation:master Jun 12, 2019
@songy23 songy23 deleted the zipkin-status-tag branch June 12, 2019 01:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants