sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

`google-genai`: Set `gen_ai.operation.name` on Execute Tool spans

Open alexander-alderman-webb opened this issue 1 month ago • 2 comments

alexander-alderman-webb avatar Oct 13 '26 08:10 alexander-alderman-webb

PY-2969

linear-code[bot] avatar Oct 13 '26 08:10 linear-code[bot]

Hi! I'd like to pick this up. Plan: in _create_tool_span() in google_genai/utils.py, set gen_ai.operation.name to "execute_tool" on both the span-streaming and static paths (same as the langchain, openai-agents and pydantic-ai integrations), and extend test_tool_execution to assert it in both modes. Does that sound right?

shashank11yadav avatar Oct 28 '26 17:10 shashank11yadav