From 1338abf47b10bc08af04495d52fbe8243e1cad2e Mon Sep 17 00:00:00 2001 From: David Drysdale Date: Tue, 8 May 2018 09:43:23 +0100 Subject: [PATCH] trees: drop use of trace.Attribute (#1130) --- trees/trees.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/trees/trees.go b/trees/trees.go index 2185c4e082..9f2a37b162 100644 --- a/trees/trees.go +++ b/trees/trees.go @@ -158,10 +158,8 @@ func validate(o GetOpts, tree *trillian.Tree) error { func GetTree(ctx context.Context, s storage.AdminStorage, treeID int64, opts GetOpts) (*trillian.Tree, error) { ctx, span := spanFor(ctx, "GetTree") defer span.End() - cachedTree := true tree, ok := FromContext(ctx) if !ok || tree.TreeId != treeID { - cachedTree = false var err error tree, err = storage.GetTree(ctx, s, treeID) if err != nil { @@ -169,10 +167,6 @@ func GetTree(ctx context.Context, s storage.AdminStorage, treeID int64, opts Get } } - if span.IsRecordingEvents() { - span.AddAttributes(trace.BoolAttribute("cached-tree", cachedTree)) - } - if err := validate(opts, tree); err != nil { return nil, err }