-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[refactor] Clean up span.kind tag handling #6390
Conversation
Signed-off-by: Yuri Shkuro <[email protected]>
) | ||
|
||
func SpanKindFromString(kind string) (SpanKind, error) { |
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.
should we add unit tests for this function?
SpanKindProducer SpanKind = "producer" | ||
SpanKindConsumer SpanKind = "consumer" | ||
SpanKindInternal SpanKind = "internal" | ||
SpanKindUnspecified SpanKind = "" |
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.
should this be "unspecified"
- looks like some tests have expectations around that
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.
Unspecified is an OTEL value, it did not exist in OpenTracing, so I left it blank.
And in OTLP it's technically undefined which strings should be used because the values are numeric enums.
Signed-off-by: Yuri Shkuro <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6390 +/- ##
==========================================
+ Coverage 96.19% 96.22% +0.02%
==========================================
Files 362 362
Lines 20671 20679 +8
==========================================
+ Hits 19885 19898 +13
+ Misses 601 597 -4
+ Partials 185 184 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Description of the changes