Skip to content

Commit 0a790c3

Browse files
committed
rename ID to Id according to java naming conventions
1 parent f1d9d17 commit 0a790c3

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

dd-java-agent/agent-llmobs/src/main/java/datadog/trace/llmobs/LLMObsSystem.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ public LLMObsSpan startLLMSpan(
4848
String modelName,
4949
String modelProvider,
5050
@Nullable String mlApp,
51-
@Nullable String sessionID) {
51+
@Nullable String sessionId) {
5252

5353
DDLLMObsSpan span =
5454
new DDLLMObsSpan(
55-
Tags.LLMOBS_LLM_SPAN_KIND, spanName, getMLApp(mlApp), sessionID, serviceName);
55+
Tags.LLMOBS_LLM_SPAN_KIND, spanName, getMLApp(mlApp), sessionId, serviceName);
5656

5757
if (modelName == null || modelName.isEmpty()) {
5858
modelName = CUSTOM_MODEL_VAL;
@@ -68,30 +68,30 @@ public LLMObsSpan startLLMSpan(
6868

6969
@Override
7070
public LLMObsSpan startAgentSpan(
71-
String spanName, @Nullable String mlApp, @Nullable String sessionID) {
71+
String spanName, @Nullable String mlApp, @Nullable String sessionId) {
7272
return new DDLLMObsSpan(
73-
Tags.LLMOBS_AGENT_SPAN_KIND, spanName, getMLApp(mlApp), sessionID, serviceName);
73+
Tags.LLMOBS_AGENT_SPAN_KIND, spanName, getMLApp(mlApp), sessionId, serviceName);
7474
}
7575

7676
@Override
7777
public LLMObsSpan startToolSpan(
78-
String spanName, @Nullable String mlApp, @Nullable String sessionID) {
78+
String spanName, @Nullable String mlApp, @Nullable String sessionId) {
7979
return new DDLLMObsSpan(
80-
Tags.LLMOBS_TOOL_SPAN_KIND, spanName, getMLApp(mlApp), sessionID, serviceName);
80+
Tags.LLMOBS_TOOL_SPAN_KIND, spanName, getMLApp(mlApp), sessionId, serviceName);
8181
}
8282

8383
@Override
8484
public LLMObsSpan startTaskSpan(
85-
String spanName, @Nullable String mlApp, @Nullable String sessionID) {
85+
String spanName, @Nullable String mlApp, @Nullable String sessionId) {
8686
return new DDLLMObsSpan(
87-
Tags.LLMOBS_TASK_SPAN_KIND, spanName, getMLApp(mlApp), sessionID, serviceName);
87+
Tags.LLMOBS_TASK_SPAN_KIND, spanName, getMLApp(mlApp), sessionId, serviceName);
8888
}
8989

9090
@Override
9191
public LLMObsSpan startWorkflowSpan(
92-
String spanName, @Nullable String mlApp, @Nullable String sessionID) {
92+
String spanName, @Nullable String mlApp, @Nullable String sessionId) {
9393
return new DDLLMObsSpan(
94-
Tags.LLMOBS_WORKFLOW_SPAN_KIND, spanName, getMLApp(mlApp), sessionID, serviceName);
94+
Tags.LLMOBS_WORKFLOW_SPAN_KIND, spanName, getMLApp(mlApp), sessionId, serviceName);
9595
}
9696

9797
private String getMLApp(String mlApp) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public DDLLMObsSpan(
4343
@Nonnull String kind,
4444
String spanName,
4545
@Nonnull String mlApp,
46-
String sessionID,
46+
String sessionId,
4747
@Nonnull String serviceName) {
4848

4949
if (null == spanName || spanName.isEmpty()) {
@@ -60,8 +60,8 @@ public DDLLMObsSpan(
6060
this.span.setTag(SPAN_KIND, kind);
6161
this.spanKind = kind;
6262
this.span.setTag(LLMOBS_TAG_PREFIX + LLMObsTags.ML_APP, mlApp);
63-
if (sessionID != null && !sessionID.isEmpty()) {
64-
this.span.setTag(LLMOBS_TAG_PREFIX + LLMObsTags.SESSION_ID, sessionID);
63+
if (sessionId != null && !sessionId.isEmpty()) {
64+
this.span.setTag(LLMOBS_TAG_PREFIX + LLMObsTags.SESSION_ID, sessionId);
6565
}
6666
}
6767

0 commit comments

Comments
 (0)