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

Set Spankind for Zipkin exporter #708

Merged
merged 10 commits into from
Apr 28, 2021
Merged

Conversation

lalitb
Copy link
Member

@lalitb lalitb commented Apr 28, 2021

Changes

Small fix to populate spankind attribute for Zipkin exporter.
specs : https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk_exporters/zipkin.md#spankind

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@lalitb lalitb requested a review from a team April 28, 2021 07:00
@codecov
Copy link

codecov bot commented Apr 28, 2021

Codecov Report

Merging #708 (6e9ca0d) into main (7f5252f) will not change coverage.
The diff coverage is n/a.

❗ Current head 6e9ca0d differs from pull request most recent head eeca25d. Consider uploading reports for the commit eeca25d to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main     #708   +/-   ##
=======================================
  Coverage   94.81%   94.81%           
=======================================
  Files         214      214           
  Lines        9750     9750           
=======================================
  Hits         9244     9244           
  Misses        506      506           

{
if (kSpanKindMap.find(span_kind) != kSpanKindMap.end())
{
span_["kind"] = kSpanKindMap.at(span_kind);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: save the find() result to a variable to avoid search the map twice?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. fixed that.

@lalitb lalitb merged commit a3755f4 into open-telemetry:main Apr 28, 2021
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.

3 participants