Skip to content

Commit f55dba7

Browse files
authored
feat: update observe sample (#20)
1 parent fd28869 commit f55dba7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/observe/samples/sample_chainlit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ def on_llm_end(
151151
semconv.SemanticConvention.MESSAGE_ID: self.message_id,
152152
semconv.SemanticConvention.LATENCY: round(latency, 1),
153153
semconv.SemanticConvention.LATENCT_FIRST_RESP: self.latency_first_resp,
154+
semconv.SemanticConvention.MODEL_ID: model_id,
155+
semconv.SemanticConvention.MODEL_NAME: model_name,
154156
semconv.SemanticConvention.SPAN_TYPE: semconv.SpanType.LLM.value,
155157
semconv.SemanticConvention.INPUT: json.dumps(
156158
{

0 commit comments

Comments
 (0)