Skip to content

Commit 14d1634

Browse files
committed
move process logic to onstart
1 parent a5a564f commit 14d1634

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • libraries/microsoft-agents-a365-observability-extensions-agentframework/microsoft_agents_a365/observability/extensions/agentframework

libraries/microsoft-agents-a365-observability-extensions-agentframework/microsoft_agents_a365/observability/extensions/agentframework/span_processor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ def __init__(self, service_name: str | None = None):
2424
super().__init__()
2525

2626
def on_start(self, span, parent_context):
27-
pass
28-
29-
def on_end(self, span):
3027
if hasattr(span, "attributes"):
3128
operation_name = span.attributes.get(GEN_AI_OPERATION_NAME_KEY)
3229
if isinstance(operation_name, str) and operation_name == EXECUTE_TOOL_OPERATION_NAME:
3330
tool_call_result = span.attributes.get(self.TOOL_CALL_RESULT_TAG)
3431
if tool_call_result is not None:
3532
span.set_attribute(GEN_AI_EVENT_CONTENT, tool_call_result)
33+
34+
def on_end(self, span):
35+
pass

0 commit comments

Comments
 (0)