feat(server-utils)!: Clean up gen ai ops - #23076
Conversation
size-limit report 📦
|
|
bugbot lauf |
9256efb to
531ee7b
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 531ee7b. Configure here.
| */ | ||
| export function getGenAiSpanOp(operationName: string): string { | ||
| return NON_INFERENCE_OPERATIONS.has(operationName) ? GENERAL_FUNCTION_SPAN_OP : `gen_ai.${operationName}`; | ||
| } |
There was a problem hiding this comment.
Missing migration notes for span ops
Medium Severity
This ! breaking change renames many user-visible span ops (handler → request_handler.* / handler.nestjs, function → framework-specific ops, gen_ai.models / ai.run → function, Bedrock rpc → gen_ai.*, Hono internal http.server → hono.request, Hapi plugin handler → plugin.hapi) but does not update MIGRATION.md. That violates the Breaking Changes review rule: similar op renames are already documented there for dashboards, alerts, and ignoreSpans filters.
Additional Locations (2)
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit 531ee7b. Configure here.
- Use `gen_ai.chat` / `gen_ai.generate_content` ops for AWS Bedrock Converse and InvokeModel spans instead of the generic `rpc` op, and set `gen_ai.operation.name` plus a gen_ai-style span name on both. - Use `function` as a fallback op instead of `gen_ai.unknown` and `ai.run`. - Use `function` instead of `gen_ai.models` for model metadata calls. part of #22446 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>


gen_ai.chatandgen_ai.invoke_modelinstead ofrpcfor AWS Bedrock spansfunctionas a fallback op instead ofgen_ai.unknownandai.runfunctioninstead ofgen_ai.modelsfor model metadata callspart of #22446