Skip to content

Commit 6d4ee3e

Browse files
committed
removed deprecated gen_ai.system attribute
1 parent 8723786 commit 6d4ee3e

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

instrumentation-genai/opentelemetry-instrumentation-langchain/src/opentelemetry/instrumentation/langchain/callback_handler.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ def on_chat_model_start(
6161
parent_run_id=parent_run_id,
6262
request_model=request_model,
6363
)
64-
name = serialized.get("name") or kwargs.get("name") or "ChatLLM"
65-
span.set_attribute(GenAI.GEN_AI_SYSTEM, name)
6664

6765
if invocation_params is not None:
6866
top_p = invocation_params.get("top_p")

instrumentation-genai/opentelemetry-instrumentation-langchain/tests/test_llm_call.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def assert_openai_completion_attributes(
4646
):
4747
assert span.name == "chat gpt-3.5-turbo"
4848
assert span.attributes[gen_ai_attributes.GEN_AI_OPERATION_NAME] == "chat"
49-
assert span.attributes[gen_ai_attributes.GEN_AI_SYSTEM] == "ChatOpenAI"
5049
assert (
5150
span.attributes[gen_ai_attributes.GEN_AI_REQUEST_MODEL]
5251
== "gpt-3.5-turbo"

0 commit comments

Comments
 (0)