Skip to content

test(ai): check the gateway relabel on the ai@7 tool metrics - #212

Open
lofoneh wants to merge 1 commit into
telemetry-dev:mainfrom
lofoneh:test/ai-gateway-tool-metrics
Open

lofoneh wants to merge 1 commit into
telemetry-dev:mainfrom
lofoneh:test/ai-gateway-tool-metrics

Conversation

@lofoneh

@lofoneh lofoneh commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Part of #83.

The generateText row of the ai@7 gateway table now runs a tool call. The completed run checks that the row records one tool duration, and the loop that was already there checks that its gen_ai.provider.name is Vercel AI Gateway. The tool span is INTERNAL like the root, so expectGatewayRootAndStep skips it when it counts roots.

I broke the provider in metricBase two ways: dropped it, and recorded it as gateway. Both passed on main and fail now.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant