-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pkg/trace/agent: ensure normalizer reports bad service name #2942
Conversation
This change ensure that the normalizer reports a bad service name. Previously it would always report the empty string on 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.
Yup this is better, as a side note I think resource has a similar behavior:
@ufoot you're right. I've made that change. Please re-approve. |
Codecov Report
@@ Coverage Diff @@
## master #2942 +/- ##
==========================================
- Coverage 56.38% 56.02% -0.37%
==========================================
Files 482 441 -41
Lines 34169 27280 -6889
==========================================
- Hits 19267 15283 -3984
+ Misses 13744 10965 -2779
+ Partials 1158 1032 -126
|
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.
Thanks for making this more reliable.
@@ -94,7 +96,11 @@ func Normalize(s *pb.Span) error { | |||
// ParentID set on the client side, no way of checking | |||
|
|||
// Type | |||
s.Type = toUTF8(s.Type) | |||
typ := toUTF8(s.Type) |
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 catch !
This change ensure that the normalizer reports a bad service name.
Previously it would always report the empty string on error.