-
Notifications
You must be signed in to change notification settings - Fork 340
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
fix: tracing for pushsync and retrieval #4281
Conversation
a39273f
to
61717bf
Compare
@acha-bill please, have a followup regarding this please to see where we are |
2c4c55d
to
1fd4ff5
Compare
3424427
to
18018d5
Compare
6149eb4
to
9c9b5e2
Compare
pkg/api/bytes.go
Outdated
@@ -26,7 +29,8 @@ type bytesPostResponse struct { | |||
|
|||
// bytesUploadHandler handles upload of raw binary data of arbitrary length. | |||
func (s *Service) bytesUploadHandler(w http.ResponseWriter, r *http.Request) { | |||
logger := tracing.NewLoggerWithTraceID(r.Context(), s.logger.WithName("post_bytes").Build()) | |||
span, logger, ctx := s.tracer.StartSpanFromContext(r.Context(), "post-bytes", s.logger.WithName("post-bytes").Build()) |
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.
The convention we use is an underscore for the logger names, the same is below.
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.
fixed
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.
LGTM
Checklist
Description
Closes: #3795