Skip to content

Commit

Permalink
Fixed span clone concurrency issues (#518)
Browse files Browse the repository at this point in the history
Co-authored-by: 钟海 <[email protected]>
  • Loading branch information
ZijieSong and 钟海 authored May 30, 2024
1 parent b63e069 commit 478608a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
* SofaTracerSpan
Expand All @@ -55,11 +55,11 @@ public class SofaTracerSpan implements Span {

private final List<SofaTracerSpanReferenceRelationship> spanReferences;
/** tags for String */
private final Map<String, String> tagsWithStr = new LinkedHashMap<>();
private final Map<String, String> tagsWithStr = new ConcurrentHashMap<>();
/** tags for Boolean */
private final Map<String, Boolean> tagsWithBool = new LinkedHashMap<>();
private final Map<String, Boolean> tagsWithBool = new ConcurrentHashMap<>();
/** tags for Number */
private final Map<String, Number> tagsWithNumber = new LinkedHashMap<>();
private final Map<String, Number> tagsWithNumber = new ConcurrentHashMap<>();

private final List<LogData> logs = new LinkedList<>();

Expand Down
2 changes: 1 addition & 1 deletion tracer-sofa-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>tracer-all-parent</artifactId>
<groupId>com.alipay.sofa</groupId>
<version>3.1.3</version>
<version>3.1.4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down

0 comments on commit 478608a

Please sign in to comment.