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

fix: tracing for pushsync and retrieval #4281

Merged
merged 11 commits into from
Jan 16, 2024
Merged

fix: tracing for pushsync and retrieval #4281

merged 11 commits into from
Jan 16, 2024

Conversation

notanatol
Copy link
Contributor

Checklist

Description

Closes: #3795

@notanatol notanatol marked this pull request as draft September 1, 2023 08:48
@notanatol notanatol added the in progress ongoing development , hold out with review label Sep 1, 2023
@nikipapadatou
Copy link
Collaborator

@acha-bill please, have a followup regarding this please to see where we are

@notanatol notanatol changed the title wip: add error fields to opentracing spans fix: add error fields to opentracing spans Nov 2, 2023
@notanatol notanatol force-pushed the fix-tracing branch 2 times, most recently from 3424427 to 18018d5 Compare November 6, 2023 09:30
@notanatol notanatol marked this pull request as ready for review November 6, 2023 10:11
@notanatol notanatol changed the title fix: add error fields to opentracing spans fix: tracing for pushsync and retrieval Nov 6, 2023
@notanatol notanatol added ready for review The PR is ready to be reviewed and removed in progress ongoing development , hold out with review labels Nov 6, 2023
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())
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Member

@janos janos left a comment

Choose a reason for hiding this comment

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

LGTM

@notanatol notanatol requested a review from mrekucci November 8, 2023 09:22
@notanatol notanatol merged commit 2cdfadf into master Jan 16, 2024
13 checks passed
@notanatol notanatol deleted the fix-tracing branch January 16, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull-request ready for review The PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix tracing
5 participants