-
Notifications
You must be signed in to change notification settings - Fork 410
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #708 +/- ##
=======================================
Coverage 94.81% 94.81%
=======================================
Files 214 214
Lines 9750 9750
=======================================
Hits 9244 9244
Misses 506 506 |
exporters/zipkin/src/recordable.cc
Outdated
{ | ||
if (kSpanKindMap.find(span_kind) != kSpanKindMap.end()) | ||
{ | ||
span_["kind"] = kSpanKindMap.at(span_kind); |
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.
nit: save the find()
result to a variable to avoid search the map twice?
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.
Good point. fixed that.
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