fix(ingest): read Spring AI's Anthropic and Bedrock Converse usage as cache-exclusive - #1176
Merged
Merged
Maple Review Bot / Maple / review
succeeded
Sep 30, 2026 in 5m 59s
Confidence 4/5 · No issues found
🟢 Confidence 4/5 · likely safe to merge
One match arm on gen_ai.system, guarded, with the three prod sessions and the inclusive OpenAI case tested; the Spring AI enum strings themselves are the author's reading of its source.
quality 100/100 · no findings · tests covered · risk medium
Adds a spring_ai arm to the ingest cache-exclusivity rule, read per span from gen_ai.system, so Spring AI's Anthropic and Bedrock Converse usage stops losing the cache from the prompt. Contained and correct; safe to merge.
input_excludes_cachetakes theSpanand branches ongen_ai.systemforspring_ai- Spring AI
anthropic/bedrock_conversespans read cache-exclusive;openaistays inclusive - New test
spring_ai_anthropic_and_converse_are_cache_exclusivecovers the three prod sessions
What was checked
value_strreturns "" for a non-string value, so the newmatches!cannot panic (ai_session.rs:492)- The
cache > promptguard is kept (usage.rs:291), so aspring_aispan withoutgen_ai.systemis read as before gen_ai.systemstays on the span until stamping: the read is per span, so onespring_aitrace can mix clients
163c28a · Updated on every push. Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.
Loading