diff --git a/agentops/instrumentation/agentic/agno/instrumentor.py b/agentops/instrumentation/agentic/agno/instrumentor.py index 4e2cd44a4..0707f5e54 100644 --- a/agentops/instrumentation/agentic/agno/instrumentor.py +++ b/agentops/instrumentation/agentic/agno/instrumentor.py @@ -601,17 +601,7 @@ def wrapper(wrapped, instance, args, kwargs): for key, value in attributes.items(): span.set_attribute(key, value) - # Execute the original function - result = wrapped(*args, **kwargs) - - # Set result attributes - result_attributes = get_metrics_attributes(args=(instance,) + args, kwargs=kwargs, return_value=result) - for key, value in result_attributes.items(): - if key not in attributes: # Avoid duplicates - span.set_attribute(key, value) - span.set_status(Status(StatusCode.OK)) - return result except Exception as e: span.set_status(Status(StatusCode.ERROR, str(e)))