summaryrefslogtreecommitdiff
path: root/vendor/go.opencensus.io/trace/trace.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.opencensus.io/trace/trace.go')
-rw-r--r--vendor/go.opencensus.io/trace/trace.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/go.opencensus.io/trace/trace.go b/vendor/go.opencensus.io/trace/trace.go
index 38ead7bf0..3f8977b41 100644
--- a/vendor/go.opencensus.io/trace/trace.go
+++ b/vendor/go.opencensus.io/trace/trace.go
@@ -296,7 +296,7 @@ func (s *Span) makeSpanData() *SpanData {
var sd SpanData
s.mu.Lock()
sd = *s.data
- if s.lruAttributes.simpleLruMap.Len() > 0 {
+ if s.lruAttributes.len() > 0 {
sd.Attributes = s.lruAttributesToAttributeMap()
sd.DroppedAttributeCount = s.lruAttributes.droppedCount
}
@@ -370,8 +370,8 @@ func (s *Span) interfaceArrayToAnnotationArray() []Annotation {
func (s *Span) lruAttributesToAttributeMap() map[string]interface{} {
attributes := make(map[string]interface{})
- for _, key := range s.lruAttributes.simpleLruMap.Keys() {
- value, ok := s.lruAttributes.simpleLruMap.Get(key)
+ for _, key := range s.lruAttributes.keys() {
+ value, ok := s.lruAttributes.get(key)
if ok {
keyStr := key.(string)
attributes[keyStr] = value