Skip to content

Commit

Permalink
Setting thread.id as an intrinsic (#1521)
Browse files Browse the repository at this point in the history
  • Loading branch information
meiao authored Sep 28, 2023
1 parent 6d1cf50 commit dbbbeb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public SpanEventFactory setClmAttributes(Map<String, Object> agentAttributes) {
}
final Object threadId = agentAttributes.get(AttributeNames.THREAD_ID);
if (threadId != null) {
builder.putAgentAttribute(AttributeNames.THREAD_ID, threadId);
builder.putIntrinsic(AttributeNames.THREAD_ID, threadId);
}
if (agentAttributes.containsKey(AttributeNames.CLM_NAMESPACE) && agentAttributes.containsKey(AttributeNames.CLM_FUNCTION)) {
builder.putAgentAttribute(AttributeNames.CLM_NAMESPACE, agentAttributes.get(AttributeNames.CLM_NAMESPACE));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void shouldSetCLMParameters() {

assertEquals("nr", target.getAgentAttributes().get(AttributeNames.CLM_NAMESPACE));
assertEquals("process", target.getAgentAttributes().get(AttributeNames.CLM_FUNCTION));
assertEquals(666, target.getAgentAttributes().get(AttributeNames.THREAD_ID));
assertEquals(666, target.getIntrinsics().get(AttributeNames.THREAD_ID));
}

@Test
Expand Down

0 comments on commit dbbbeb2

Please sign in to comment.