Skip to content

Commit c74a642

Browse files
author
Nayeem Kamal
committed
ran spotless
1 parent 384141d commit c74a642

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

dd-java-agent/agent-llmobs/src/main/java/datadog/trace/llmobs/domain/DDLLMObsSpan.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,22 @@ public DDLLMObsSpan(
6767
if (sessionId != null && !sessionId.isEmpty()) {
6868
this.span.setTag(LLMOBS_TAG_PREFIX + LLMObsTags.SESSION_ID, sessionId);
6969
}
70-
70+
7171
AgentSpanContext parent = LLMObsState.getLLMObsParentContext();
7272
String parentSpanID = LLMObsState.ROOT_SPAN_ID;
7373
if (null != parent) {
7474
if (parent.getTraceId() != this.span.getTraceId()) {
75-
LOGGER.error("trace ID mismatch, retrieved parent from context trace_id={}, span_id={}, started span trace_id={}, span_id={}", parent.getTraceId(), parent.getSpanId(), this.span.getTraceId(), this.span.getSpanId());
75+
LOGGER.error(
76+
"trace ID mismatch, retrieved parent from context trace_id={}, span_id={}, started span trace_id={}, span_id={}",
77+
parent.getTraceId(),
78+
parent.getSpanId(),
79+
this.span.getTraceId(),
80+
this.span.getSpanId());
7681
} else {
7782
parentSpanID = String.valueOf(parent.getSpanId());
7883
}
7984
}
80-
this.span.setTag(
81-
LLMOBS_TAG_PREFIX + PARENT_ID_TAG_INTERNAL, parentSpanID);
85+
this.span.setTag(LLMOBS_TAG_PREFIX + PARENT_ID_TAG_INTERNAL, parentSpanID);
8286
this.scope = LLMObsState.attach();
8387
LLMObsState.setLLMObsParentContext(this.span.context());
8488
}

dd-java-agent/agent-llmobs/src/main/java/datadog/trace/llmobs/domain/LLMObsState.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ public static void setLLMObsParentContext(AgentSpanContext llmObsParentContext)
3434
state.parentSpanID = llmObsParentContext;
3535
}
3636
}
37-
3837
}

0 commit comments

Comments
 (0)