Skip to content
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

Minimal Binary Annotations Support #191

Merged
merged 3 commits into from
Feb 15, 2016

Conversation

taion809
Copy link
Contributor

Hello,
This pull requests adds minimal support for Binary Annotations.

The following api is now exposed:

  • AnnotateBinary(key string, value []byte) corresponding to AnnotationType_BYTES
  • AnnotateString(key, value string) corresponding to AnnotationType_STRING

@taion809 taion809 changed the title Feature binary annotations Minimal Binary Annotations Support Feb 14, 2016
encodedSpan := span.Encode()
annotations := encodedSpan.GetBinaryAnnotations()

if annotations[0].Key != key {
Copy link
Member

Choose a reason for hiding this comment

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

Can we have a len check too, perhaps?

@peterbourgon
Copy link
Member

Thank you! With this minor changes, LGTM. The Travis failure is unrelated, I will investigate that separately.

peterbourgon added a commit that referenced this pull request Feb 15, 2016
@peterbourgon peterbourgon merged commit 724fee9 into go-kit:master Feb 15, 2016
@peterbourgon
Copy link
Member

Thank you for the contribution!

@taion809 taion809 deleted the feature-binary-annotations branch February 15, 2016 02:31
guycook pushed a commit to codelingo/kit that referenced this pull request Oct 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants