Hi everyone, I鈥檓 using Phoenix with Google ADK. Does anyone know how I can add attributes or tags to the spans. I鈥檇 like to tag my agents with the product features they鈥檙e part of for cost summaries
Adding Attributes to Spans in Phoenix with Google ADK | Arize AI Community
You can add attributes or tags to spans in Phoenix using OpenInference helpers. In Python, use the using_attributes context manager to set custom attributes, tags, or metadata (e.g., product features) on spans. For example: LBKSfrom openinference.instrumentation import using_attributesLBKSwith using_attributes(tags=["feature_x", "feature_y"], metadata={"product_feature": "feature_x"}): # Your agent code here ...LBKSThis will attach the specified tags and metadata to all spans created within the context, making them available for cost summaries and filtering in Phoenix. For more details, see the Phoenix documentation on customizing spans and OpenInference instrumentation.Would you like more detail or examples for a specific language or framework?Sources:
- OpenInference Instrumentation README
馃挕聽Hint: Mention RunLLM in the thread for followups.