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

retrieval, pushsync: add tracing #714

Merged
merged 1 commit into from
Sep 21, 2020
Merged

retrieval, pushsync: add tracing #714

merged 1 commit into from
Sep 21, 2020

Conversation

acud
Copy link
Member

@acud acud commented Sep 18, 2020

Add tracing to pushsync and retrieval

@acud acud self-assigned this Sep 18, 2020
@acud acud added the ready for review The PR is ready to be reviewed label Sep 18, 2020
go.mod Outdated
@@ -3,6 +3,7 @@ module github.com/ethersphere/bee
go 1.14

require (
github.com/Azure/go-autorest/tracing v0.5.0
Copy link
Member

Choose a reason for hiding this comment

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

Not sure that this is needed, not imported.

@@ -88,6 +90,8 @@ func (ps *PushSync) handler(ctx context.Context, p p2p.Peer, stream p2p.Stream)
_ = stream.FullClose()
}
}()
span, _, ctx := ps.tracer.StartSpanFromContext(ctx, "pushsync-handler", ps.logger)
Copy link
Member

Choose a reason for hiding this comment

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

We can set a tag with address a few lines below, when the delivery is received?

@acud acud requested a review from janos September 18, 2020 14:16
@acud acud merged commit db5a1bb into master Sep 21, 2020
@acud acud deleted the pushsync-tracing branch September 21, 2020 13:33
acud added a commit that referenced this pull request Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review The PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants