Skip to content

Commit e4b5195

Browse files
committed
update
1 parent 9af536f commit e4b5195

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,11 @@ func NewClient(opts ...Option) (Client, error) {
174174
})
175175

176176
clientCache.Store(cacheKey, c)
177+
defaultClientLock.Lock()
177178
if defaultClient == nil {
178179
SetDefaultClient(c)
179180
}
181+
defaultClientLock.Unlock()
180182
return c, nil
181183
}
182184

internal/trace/exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func transferToUploadSpanAndFile(ctx context.Context, spans []*Span) ([]*entity.
103103

104104
resFile = append(resFile, spanUploadFile...)
105105

106-
tagStrM, tagLongM, tagDoubleM, tagBoolM := parseTag(span.GetTagMap(), false)
106+
tagStrM, tagLongM, tagDoubleM, tagBoolM := parseTag(span.TagMap, false)
107107
systemTagStrM, systemTagLongM, systemTagDoubleM, _ := parseTag(span.SystemTagMap, true)
108108
resSpan = append(resSpan, &entity.UploadSpan{
109109
StartedATMicros: span.GetStartTime().UnixMicro(),

0 commit comments

Comments
 (0)