Skip to content

Commit e1d9012

Browse files
committed
Fix
1 parent c886ffe commit e1d9012

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/tag/Tags.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ public static final class HTTP {
156156
public static final StringTag THREAD_ID = new StringTag(23, "thread.id");
157157

158158
/**
159-
* CARRIER_THREAD represents the actual operating system thread that carries out the execution of the virtual thread.
159+
* THREAD_CARRIER represents the actual operating system thread that carries out the execution of the virtual thread.
160160
*/
161-
public static final StringTag CARRIER_THREAD = new StringTag(24, "carrier.thread");
161+
public static final StringTag THREAD_CARRIER = new StringTag(24, "thread.carrier");
162162

163163
/**
164164
* Creates a {@code StringTag} with the given key and cache it, if it's created before, simply return it without

apm-sniffer/bootstrap-plugins/jdk-virtual-thread-executor-plugin/src/main/java/org/apache/skywalking/apm/plugin/ThreadPerTaskExecutorRunInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private void setCarrierThread(AbstractSpan span) {
7474
if (threadInfo.startsWith("VirtualThread")) {
7575
String[] parts = threadInfo.split("@");
7676
if (parts.length >= 1) {
77-
Tags.CARRIER_THREAD.set(span, parts[1]);
77+
Tags.THREAD_CARRIER.set(span, parts[1]);
7878
}
7979
}
8080
}

test/plugin/scenarios/jdk-virtual-thread-executor-scenario/config/expectedData.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ segmentItems:
6161
spanType: Local
6262
skipAnalysis: false
6363
tags:
64-
- { key: carrier.thread, value: not null }
64+
- { key: thread.carrier, value: not null }
6565
refs:
6666
- { parentEndpoint: 'GET:/case', networkAddress: '', refType: CrossThread,
6767
parentSpanId: 0, parentTraceSegmentId: not null, parentServiceInstance: not
@@ -94,7 +94,7 @@ segmentItems:
9494
spanType: Local
9595
skipAnalysis: false
9696
tags:
97-
- { key: carrier.thread, value: not null }
97+
- { key: thread.carrier, value: not null }
9898
refs:
9999
- { parentEndpoint: 'GET:/case', networkAddress: '', refType: CrossThread,
100100
parentSpanId: 0, parentTraceSegmentId: not null, parentServiceInstance: not

0 commit comments

Comments
 (0)