Repository navigation
feat: give invoke_runner and other framework entrypoint operations the CHAIN kind (RIUS-1877) - #249
PabloPardoGarcia wants to merge 1 commit into
Conversation
…e CHAIN kind (RIUS-1877)
The GenAI conventions added framework-entrypoint operations (invoke_runner,
and invoke_{framework_entrypoint} in general) and define an entrypoint as not
being an agent. kindForOperation knew none of them, so a native runner span
got no openinference.span.kind.
The vendored kind-by-operation table gains invoke_runner from rius-semconv,
and kindForOperation maps any other invoke_ operation the table does not list
to CHAIN. invoke_agent stays AGENT and invoke_workflow stays CHAIN.
Automated reviewNo blocking issues. Correctness. Callers. Every kind derived from the operation goes through Vendored file. Tests. Nits
|
|
Landed through #254, together with the rius-semconv v1.13.0 sync. |
What
kindForOperationmaps agen_ai.operation.namethat starts withinvoke_and is not in the kind-by-operation table toCHAIN.invoke_agentis in the table and staysAGENT;invoke_workflowstaysCHAIN. A bareinvoke_(no entrypoint name) still has no kind. Same rule, order and guards as the Python SDK (rius-sdk-python#284).src/semconv.generated.tsgainsinvoke_runner: CHAINinKIND_BY_OPERATION, from rius-semconv #112.kindForOperationforinvoke_runner, an arbitraryinvoke_crew,invoke_workflow,invoke_agentand look-alikes (invoke_,invoke,reinvoke_runner), and the normalizer puttingCHAINon a native span with an entrypoint operation.Why
The OpenTelemetry GenAI conventions added framework-entrypoint operations in semantic-conventions-genai#571:
invoke_runner, andinvoke_{framework_entrypoint}in general. A native runner span therefore got noopeninference.span.kindfrom the normalizer. The conventions define an entrypoint as not being an agent, so it is a CHAIN span, not AGENT. The family is open-ended, so a table cannot list it and the prefix rule lives in the helper.Vendored file: re-sync before merge
The change to
src/semconv.generated.tsis only the delta from rius-semconv #112, applied on top of the vendored v1.10.0 copy, so thesemconv-vendoredcheck fails on this branch until it is re-pinned. After #112 squash-merges and a rius-semconv release carries it, re-vendor withTAG=<that tag> scripts/sync-semconv.sh(that re-pin also brings in whatever v1.11 and v1.12 added).Testing
npm run lint,npm run typecheck,npm run build,npm test(95 files, 2846 tests): all exit 0.invoke_would become CHAIN); dropping the prefix match fails 2 tests. Restored after each.scripts/sync-semconv.sh --check: fails as expected (see above).Related: RIUS-1877