Skip to content

[fix] span set concurrent problem after finish#34

Merged
JqRrt merged 2 commits intomainfrom
fix_concurrent
Jan 8, 2026
Merged

[fix] span set concurrent problem after finish#34
JqRrt merged 2 commits intomainfrom
fix_concurrent

Conversation

@JqRrt
Copy link
Copy Markdown
Collaborator

@JqRrt JqRrt commented Jan 7, 2026

No description provided.

Comment thread client.go
})

clientCache.Store(cacheKey, c)
if defaultClient == nil {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

加个锁吧

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

okk

Comment thread internal/trace/exporter.go Outdated
resFile = append(resFile, spanUploadFile...)

tagStrM, tagLongM, tagDoubleM, tagBoolM := parseTag(span.TagMap, false)
tagStrM, tagLongM, tagDoubleM, tagBoolM := parseTag(span.GetTagMap(), false)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

如果set的时候已经判了is finish,是不是这里就没有必要做一次拷贝了?感觉好像稍微有点浪费

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

嗯嗯,也可以的

@JqRrt JqRrt merged commit 4dee5b6 into main Jan 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants