Skip to content

fix(phoenix): leave GenAI spans to Phoenix's own LLM/TOOL inference - #14

Merged
mergify[bot] merged 1 commit into
mainfrom
fix/phoenix-kind-keep-genai
Sep 25, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
fix/phoenix-kind-keep-genai

Conversation

@mairp

@mairp mairp commented Sep 25, 2026

Copy link
Copy Markdown
Owner

The generic CHAIN fallback added in #9 also applied to spans that carry GenAI semantic conventions (gen_ai.operation.name), such as OpenClaw model calls. Phoenix infers LLM/TOOL from those spans itself. With CHAIN forced on them, they lost Phoenix's chat-message view (system prompt, turns, tool definitions).

This PR excludes them from the generic GUARDRAIL/CHAIN rules.

Verified live: an OpenClaw agent turn shows the model call as LLM again, with the Messages and Tools views, the run spans as AGENT, and context assembly as CHAIN. Router spans are unchanged (GUARDRAIL/CHAIN).

https://claude.ai/code/session_016d5AJ1LjeunQ5sz5XEvxQQ

The generic CHAIN fallback in transform/phoenix_kind also hit spans that
carry GenAI semconv (gen_ai.operation.name), e.g. OpenClaw model calls.
Phoenix infers LLM/TOOL from those itself, and with CHAIN forced they lost
the chat-message view (system prompt, turns, tools). Exclude them from
the generic GUARDRAIL/CHAIN rules.

Claude-Session: https://claude.ai/code/session_016d5AJ1LjeunQ5sz5XEvxQQ
Signed-off-by: mairp <[email protected]>
@mergify

mergify Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-09-25 11:37 UTC · Rule: default · triggered by merge protections
  • ✅ Checks passed · on draft merge queue: checking #14 on main (bb9d71b) #15
  • ✅ Merged — 2026-09-25 11:38 UTC · at fe3619ca0fdc0d4fc403651e810a98fde497468e · merge

This pull request spent 46 seconds in the queue, including 31 seconds running CI.

Required conditions to merge
  • check-success = secret-scan
  • check-success = validate

@mergify mergify Bot mentioned this pull request Sep 25, 2026
7 tasks done
@mergify mergify Bot added the queued label Sep 25, 2026
@mergify
mergify Bot merged commit fe3619c into main Sep 25, 2026
4 checks passed
@mergify mergify Bot removed the queued label Sep 25, 2026
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