aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/storage')
-rw-r--r--swarm/storage/netstore.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/swarm/storage/netstore.go b/swarm/storage/netstore.go
index cb6c1c9cf..e3845489e 100644
--- a/swarm/storage/netstore.go
+++ b/swarm/storage/netstore.go
@@ -103,6 +103,14 @@ func (n *NetStore) Get(rctx context.Context, ref Address) (Chunk, error) {
return nil, err
}
if chunk != nil {
+ // this is not measuring how long it takes to get the chunk for the localstore, but
+ // rather just adding a span for clarity when inspecting traces in Jaeger, in order
+ // to make it easier to reason which is the node that actually delivered a chunk.
+ _, sp := spancontext.StartSpan(
+ rctx,
+ "localstore.get")
+ defer sp.Finish()
+
return chunk, nil
}
return fetch(rctx)