Skip to content

Commit 7807450

Browse files
committed
apply ruff format
1 parent 6fb9f9f commit 7807450

File tree

1 file changed

+3
-1
lines changed
  • instrumentation-genai/opentelemetry-instrumentation-langchain/src/opentelemetry/instrumentation/langchain

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ def on_chain_start(
263263
# If this is an agent chain, set agent-specific attributes
264264
if metadata and "agent_name" in metadata:
265265
span.set_attribute(GenAI.GEN_AI_AGENT_NAME, metadata["agent_name"])
266-
span.set_attribute(GenAI.GEN_AI_OPERATION_NAME, _OPERATION_INVOKE_AGENT)
266+
span.set_attribute(
267+
GenAI.GEN_AI_OPERATION_NAME, _OPERATION_INVOKE_AGENT
268+
)
267269

268270
def on_chain_end(
269271
self,

0 commit comments

Comments
 (0)