spantruth

Does the telemetry an LLM instrumentation library reports match what the provider actually sent? Each cell replays one provider response through one library and checks every reported value against the wire.

spantruth 0.6.0 · pinned versions · 2026-11-27T12:36:18+00:00 · Python 3.12 · semantic-conventions-genai 6fd0d763 · source

Pages: pinned versions · latest releases · the ten bug classes · what new releases changed · fixed upstream, with credit. A fix that ships upstream turns its cell green on the latest-releases page first.

pass every graded value matches the wiremissing the span ended without a value the wire carriedwrong a reported value does not match the wirelost the span never ended, so no backend ever receives itbroken the application saw something different from an uninstrumented runinconclusive the cell could not be graded: the harness could not run it, or the library's setup raised
Scenarioanthropic-sdkddtracelangchain-openinferencelangchain-openllmetrylangfuselitellmlogfiremlflowopenai-agentsopeninferenceopenlitopenllmetryotel-officialotel-official-sdk-onpydantic-aisentrycontrol-faultycontrol-honest
anthropic/agent-loop
Agent loop: three calls, two with tool results
missingmissing····wrongmissing·passwrongpasspasswrong·passwrongpass
anthropic/async-basic
One call (async)
missingmissingpassmissing·wrongwrongmissing·passpasspasspasswrongpasspasspasspass
anthropic/async-concurrent-streams
Two streams at once with asyncio.gather (async)
missingmissing····wrongmissing·passwrongwrongpasswrong·passwrongpass
anthropic/async-stream
Stream read to the end (async)
missingmissingwrongwrong··wrongmissing·passpasswrongpasswrongpasspasspasspass
anthropic/async-stream-dropped
Connection drops mid-stream (async)
passpasspasspass··passwrong·passlostmissingpasspassmissingmissingwrongpass
anthropic/async-stream-early-exit
App closes the stream after two events (async)
passmissingwrongwrong·missingwrongmissing·passlostlostpasswrongpasspasslostpass
anthropic/async-stream-error-event
Overloaded error event mid-stream (async)
passpasspasspass··passwrong·passlostmissingpasspassmissingmissingwrongpass
anthropic/basic
One call
missingmissingpassmissing··wrongmissing·passpasspasspasswrongpasspasspasspass
anthropic/cache-1h
Prompt cache write with a 1-hour part
missingmissingpasswrong··wrongmissing·passwrongpasspasswrongpasspasswrongpass
anthropic/cache-hit
Prompt cache read and write
missingmissingpassmissing··wrongmissing·passwrongpasspasswrongpasspasswrongpass
anthropic/content-off
One call, content capture switched off
missingmissing····wrongmissing·passpasspasspasswrong·passwrongpass
anthropic/content-on
One call, content capture switched on
missingmissing····wrongmissing·passpasspasspasswrong·passpasspass
anthropic/rate-limited
HTTP 429
passpasspasspass··missingmissing·passmissingpasspasspassmissingmissingwrongpass
anthropic/retry-429
HTTP 429 with retry-after, then a success
missingmissingpassmissing··wrongmissing·passpasspasspasswrongpasspasswrongpass
anthropic/stream
Stream read to the end
missingmissingwrongwrong·wrongwrongmissing·passpasswrongpasswrongpasspasspasspass
anthropic/stream-cache-1h
Prompt cache write with a 1-hour part, streamed
missingmissingwrongwrong·wrongwrongmissing·passwrongwrongpasswrongpasspasswrongpass
anthropic/stream-cache-cumulative
Cache counts repeated in message_delta
missingmissingpasswrong·wrongwrongmissing·passwrongwrongpasswrongpasspasswrongpass
anthropic/stream-cache-hit
Prompt cache read and write, streamed
missingmissingwrongwrong·wrongwrongmissing·passwrongwrongpasswrongpasspasswrongpass
anthropic/stream-content-off
Stream read to the end, content capture switched off
missingmissing····wrongmissing·passpasswrongpasswrong·passwrongpass
anthropic/stream-content-on
Stream read to the end, content capture switched on
missingmissing····wrongmissing·passpasswrongpasswrong·passwrongpass
anthropic/stream-dropped
Connection drops mid-stream
passpasspasspass·wrongpasswrong·passlostlostpasspassmissingmissingwrongpass
anthropic/stream-early-exit
App closes the stream after two events
passmissingwrongwrong·missingwrongmissing·passlostlostpasswrongpasspasslostpass
anthropic/stream-early-exit-with
App leaves the stream after two events with a with block
passmissing···missingwrongmissing·passlostlostpasswrong·passlostpass
anthropic/stream-error-event
Overloaded error event mid-stream
passpasspasspass·wrongpasswrong·passlostlostpasspassmissingmissingwrongpass
anthropic/stream-thinking
Extended thinking, streamed
missingmissingwrongwrong·wrongwrongmissing·passmissingwrongpasswrongmissingmissingwrongpass
anthropic/stream-tool-call
Two parallel tool uses, streamed
missingmissingwrongwrong·wrongwrongmissing·passpasswrongpasswrongpasspasspasspass
anthropic/thinking
Extended thinking
missingmissingmissingmissing··wrongmissing·passmissingmissingpasswrongmissingmissingwrongpass
anthropic/tool-call
Two parallel tool uses
missingmissingpassmissing··wrongmissing·passpasspasspasswrongpasspasspasspass
azure/async-basic
One call to a deployment (async)
·wrong··pass·wrongwrong·passpasspasspass··missingpasspass
azure/async-stream
Stream from a deployment (async)
·wrong··pass·wrongwrong·passpasspasspass··missingpasspass
azure/basic
One call to a deployment
·wrong··pass·wrongwrong·passpasspasspass··missingpasspass
azure/stream
Stream from a deployment
·wrong··pass·wrongwrong·passpasspasspass··missingpasspass
gemini/async-basic
One call (async)
·missing····passwrong·missingwrongpasspass··passpasspass
gemini/async-stream
Stream read to the end (async)
·missing····passmissing·missinglostpasspass··missingpasspass
gemini/async-stream-dropped
Connection drops mid-stream (async)
·pass····passmissing·passlostlostpass··missingwrongpass
gemini/async-stream-early-exit
App closes the stream after two chunks (async)
·missing····passmissing·wronglostlostpass··missinglostpass
gemini/basic
One call
·missing····passwrong·missingwrongpasspass··passpasspass
gemini/cache-hit
Context cache hit
·missing····passwrong·missingwrongpasspass··passpasspass
gemini/rate-limited
HTTP 429 RESOURCE_EXHAUSTED
·pass····passmissing·passmissingmissingpass··missingwrongpass
gemini/stream
Stream read to the end
·missing····passmissing·missinglostpasspass··missingpasspass
gemini/stream-cache-hit
Context cache hit, streamed
·missing····passmissing·missinglostpasspass··missingpasspass
gemini/stream-dropped
Connection drops mid-stream
·pass····passmissing·passlostlostpass··missingwrongpass
gemini/stream-early-exit
App closes the stream after two chunks
·missing····passmissing·missinglostlostpass··missinglostpass
gemini/stream-thinking
Thinking tokens, streamed
·missing····passmissing·missinglostwrongpass··missingwrongpass
gemini/thinking
Thinking tokens
·missing····passwrong·missingwrongwrongpass··passwrongpass
openai/agent-loop
Agent loop: three calls, two with tool results
·wrong··pass·wrongwrong·passpasspasspass··missingpasspass
openai/async-basic
One call (async)
·wrongpasspasspasswrongwrongwrongmissingpasspasspasspass·passmissingpasspass
openai/async-concurrent-streams
Two streams at once with asyncio.gather (async)
·wrong··inconclusive·wronginconclusive·passpasspasspass··missingpasspass
openai/async-stream
Stream read to the end (async)
·wrongpasswrongpass·wrongwrongmissingpasspasspasspass·passmissingpasspass
openai/async-stream-dropped
Connection drops mid-stream (async)
·passpasspasswrong·passmissingpasspasslostwrongpass·missinglostwrongpass
openai/async-stream-early-exit
App closes the stream after two chunks (async)
·wrongwrongwrongpassmissingwrongwrong·passlostpasspass·passlostlostpass
openai/async-stream-helper
Stream via with_streaming_response (async)
·wrong··missing·wrongmissing·missinglostmissingpass··missingpasspass
openai/basic
One call
·wrongpasspasspass·wrongwrongmissingpasspasspasspass·passmissingpasspass
openai/cache-hit
Prompt cache hit
·wrongpasspasspass·wrongwrongmissingpasspasspasspass·passmissingpasspass
openai/cache-write
Prompt cache read and write
·wrongmissingpasspass·wrongwrongmissingpasspassmissingpass·passmissingpasspass
openai/compat-extra-cache-fields
DeepSeek, cache counts in its own fields too
·missing··pass·wrongmissing·passpasspasspass··missingpasspass
openai/compat-extra-timing-fields
Groq, timings in usage and no details
·wrong··pass·wrongwrong·passpasswrongpass··missingpasspass
openai/compat-no-details
OpenAI-compatible server, usage without details
·wrong··pass·wrongwrong·passpasswrongpass··missingpasspass
openai/compat-null-details
OpenAI-compatible server, details sent as null
·wrong··pass·wrongwrong·passpasswrongpass··missingpasspass
openai/compat-partial-details
Ollama, details with a cache count only
·missing··pass·wrongmissing·passpasspasspass··missingpasspass
openai/compat-stream-no-details
OpenAI-compatible server, streamed usage without details
·wrong··pass·wrongwrong·passpasswrongpass··missingpasspass
openai/compat-stream-usage-on-finish
Usage on the chunk with the finish reason
·wrong··pass·wrongwrong·passpasswrongpass··missingpasspass
openai/content-off
One call, content capture switched off
·wrong··pass·wrongwrong·passpasspasspass··missingwrongpass
openai/content-on
One call, content capture switched on
·wrong··pass·wrongwrong·passpasspasspass··missingpasspass
openai/rate-limited
HTTP 429
·passpasspasspass·missingmissingpasspasspasspasspass·missingmissingwrongpass
openai/reasoning
Reasoning tokens
·wrongpassmissingpass·wrongwrongmissingpassmissingpasspass·missingmissingwrongpass
openai/responses-stream-missing-finish-abort
Responses API stream cut after eight recorded events
·passpasspasswrong·passmissingpasspasslostpasspass·missinglostwrongpass
openai/retry-429
HTTP 429 with retry-after, then a success
·wrongpasspasspass·wrongwrongmissingpasspasspasspass·passmissingwrongpass
openai/stream
Stream read to the end
·wrongpasswrongpasswrongwrongwrongmissingpasspasspasspass·passmissingpasspass
openai/stream-cache-hit
Prompt cache hit, streamed
·wrongpasswrongpasswrongwrongwrongmissingpasspasspasspass·passmissingpasspass
openai/stream-cache-write
Prompt cache read and write, streamed
·wrongpasswrongpasswrongwrongwrongmissingpasspassmissingpass·passmissingpasspass
openai/stream-content-off
Stream read to the end, content capture switched off
·wrong··pass·wrongwrong·passpasspasspass··missingwrongpass
openai/stream-content-on
Stream read to the end, content capture switched on
·wrong··pass·wrongwrong·passpasspasspass··missingwrongpass
openai/stream-dropped
Connection drops mid-stream
·passpasspasswrongwrongpassmissingpasspasslostwrongpass·missinglostwrongpass
openai/stream-early-exit
App closes the stream after two chunks
·wrongwrongwrongpassmissingwrongwrong·passlostpasspass·passlostlostpass
openai/stream-early-exit-with
App leaves the stream after two chunks with a with block
·wrong··passmissingwrongwrong·passlostpasspass··lostlostpass
openai/stream-helper
Stream via with_streaming_response
·wrong··missing·wrongmissing·passlostmissingpass··missingpasspass
openai/stream-no-usage
Stream without include_usage
·wrongpasswrongpasswrongwrongwrongmissingpasswrongpasspass·passmissingwrongpass
openai/stream-reasoning
Reasoning tokens, streamed
·wrongpasswrongpasswrongwrongwrongmissingpassmissingmissingpass·missingmissingwrongpass
openai/stream-tool-call
Two parallel tool calls, streamed
·wrongpasswrongpasswrongwrongwrongmissingpasspasspasspass·passmissingpasspass
openai/tool-call
Two parallel tool calls
·wrongpasspasspass·wrongwrongmissingpasspasspasspass·passmissingpasspass

The controls run the suite's own reference instrumentation. control-honest has to pass every check, and control-faulty has to fail exactly its planted faults. If either moves, the suite is wrong, not a library. CI checks both, so their cells are not in the findings below. How we know a check is right.

Bug classes in this run

BugSeen inLargest cost error
ST01 Ghost span
The app made the call, and no finished span ever reaches a backend.
58 cells in 6 libraries-100%
ST02 Double span
One call reports its token usage on two spans.
27 cells in 2 libraries+100%
ST03 Cache-blind tokens
Cached tokens are left out of the input count, or their own counts are wrong.
39 cells in 7 libraries+106.1%
ST04 Phantom tokens
The span reports more tokens than the provider sent, or invents a count.
13 cells in 4 libraries+0.2%
ST05 Vanishing tokens
The span reports fewer tokens than the provider sent, or none.
41 cells in 8 libraries-100%
ST06 Hidden reasoning
The reasoning tokens that the provider reported do not appear on the span.
33 cells in 10 libraries—
ST07 False OK
A call failed, and its span does not say so, or does not say how.
38 cells in 6 libraries—
ST08 False alarm
A call succeeded, and its span says it failed.
9 cells in 3 libraries—
ST09 Silent stop
The finish reason is missing or wrong.
246 cells in 11 libraries—

A cost figure is for the token mix of one scenario, at list price from ai.google.dev and developers.openai.com and platform.claude.com on 2026-11-15. Input tokens include cache reads and writes, so the uncached part is input minus reads minus writes. A cache write that lasts 1 hour costs more than one that lasts 5 minutes. No span attribute separates the two, so the figure from the spans uses the split on the wire. A span that never ends reports nothing, and usage on two spans counts twice only in a backend that sums across spans. A backend with another formula shows another number.

Findings

Every finding cites the rule it applies. To dispute one, open an issue: a disputed finding is marked as such in known_issues.toml.

missing anthropic-sdk · anthropic/agent-loop · finish_reasonsSilent stop #
expected tool_use, reported nothing: call 1 of 3; failed on calls 1, 2, 3
Expected
['tool_use']
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/agent-loop
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasontool_use
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--agent-loop/v1/messages
url.path/s/anthropic--agent-loop/v1/messages
url.schemehttp

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasontool_use
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop2
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens1093
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--agent-loop/v1/messages
url.path/s/anthropic--agent-loop/v1/messages
url.schemehttp

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop3
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens1279
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--agent-loop/v1/messages
url.path/s/anthropic--agent-loop/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/async-basic · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--async-basic/v1/messages
url.path/s/anthropic--async-basic/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/async-concurrent-streams · finish_reasonsSilent stop #
expected end_turn, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
['end_turn']
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/async-concurrent-streams
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_par1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.071011191
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--async-concurrent-streams/v1/messages
url.path/s/anthropic--async-concurrent-streams/v1/messages
url.schemehttp

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-haiku-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_par2
gen_ai.response.modelclaude-haiku-5-5-20261001
gen_ai.response.time_to_first_chunk0.03044333
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--async-concurrent-streams/v1/messages
url.path/s/anthropic--async-concurrent-streams/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/async-stream · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.066768073
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--async-stream/v1/messages
url.path/s/anthropic--async-stream/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/basic · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--basic/v1/messages
url.path/s/anthropic--basic/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/cache-1h · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
anthropic.usage.cache_creation.ephemeral_1h_input_tokens1663
anthropic.usage.cache_creation.ephemeral_5m_input_tokens457
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens2861
gen_ai.usage.cache_write.input_tokens2120
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--cache-1h/v1/messages
url.path/s/anthropic--cache-1h/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/cache-hit · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens4096
gen_ai.usage.cache_write.input_tokens519
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--cache-hit/v1/messages
url.path/s/anthropic--cache-hit/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/content-off · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--content-off/v1/messages
url.path/s/anthropic--content-off/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/content-on · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--content-on/v1/messages
url.path/s/anthropic--content-on/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/retry-429 · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/retry-429
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_retry
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
http.request.methodPOST
http.request.resend_count1
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--retry-429/v1/messages
url.path/s/anthropic--retry-429/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/stream · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.044069992
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream/v1/messages
url.path/s/anthropic--stream/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/stream-cache-1h · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/stream-cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
anthropic.usage.cache_creation.ephemeral_1h_input_tokens1879
anthropic.usage.cache_creation.ephemeral_5m_input_tokens613
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.049325409
gen_ai.usage.cache_read.input_tokens3217
gen_ai.usage.cache_write.input_tokens2492
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages
url.path/s/anthropic--stream-cache-1h/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/stream-cache-cumulative · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/stream-cache-cumulative
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_cumul
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.050388834
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.cache_write.input_tokens811
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-cache-cumulative/v1/messages
url.path/s/anthropic--stream-cache-cumulative/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/stream-cache-hit · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.030361052
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.cache_write.input_tokens737
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages
url.path/s/anthropic--stream-cache-hit/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/stream-content-off · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/stream-content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.031103235
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-content-off/v1/messages
url.path/s/anthropic--stream-content-off/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/stream-content-on · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/stream-content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.051030303
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-content-on/v1/messages
url.path/s/anthropic--stream-content-on/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/stream-content-on · content.output_matches #
expected The capital of France is Paris., reported nothing: no completion text with content on: ANTHROPIC_OPEN_TELEMETRY_TRACES_CONTENT_MODE
Expected
The capital of France is Paris.
Note
no completion text with content on: ANTHROPIC_OPEN_TELEMETRY_TRACES_CONTENT_MODE
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/stream-content-on
Rule
Opt-In content SHOULD be populated if the user configures the instrumentation to do so, so with the library's content switch on, the completion text is recorded, and it equals the text the application read. Instrumentations MAY give users a way to filter or truncate output messages; no scenario sets such an option, so the text is compared whole. `gen_ai.output.messages` and the other conventions' output names are read.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.051030303
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-content-on/v1/messages
url.path/s/anthropic--stream-content-on/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/stream-thinking · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/stream-thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.049091042
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.reasoning.output_tokens1103
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-thinking/v1/messages
url.path/s/anthropic--stream-thinking/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/stream-tool-call · finish_reasonsSilent stop #
expected tool_use, reported nothing
Expected
['tool_use']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasontool_use
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.041748608
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-tool-call/v1/messages
url.path/s/anthropic--stream-tool-call/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/thinking · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.reasoning.output_tokens947
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--thinking/v1/messages
url.path/s/anthropic--thinking/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing anthropic-sdk · anthropic/tool-call · finish_reasonsSilent stop #
expected tool_use, reported nothing
Expected
['tool_use']
Reproduce
spantruth run --subject anthropic-sdk --scenario anthropic/tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasontool_use
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_tools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--tool-call/v1/messages
url.path/s/anthropic--tool-call/v1/messages
url.schemehttp

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/agent-loop · response_model #
expected claude-sonnet-5-5-20260915, reported nothing: call 1 of 3; failed on calls 1, 2, 3
Expected
claude-sonnet-5-5-20260915
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject ddtrace --scenario anthropic/agent-loop
Rule
The name of the model that generated the response.
Exported spans (4)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1171
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens97
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1268
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.total_tokens1268
llmobs_parent_id11592144238526265811
llmobs_trace_id6b097ba900000000afa0836b335ee74c
process_id9184
runtime-idf50d6cdfeec34531aa71ec91b5afb55e

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1093
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1307
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens89
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1396
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens1093
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.total_tokens1396
llmobs_parent_id16496149288460493480
llmobs_trace_id6b097ba900000000f89ee8643aeedbf6
process_id9184
runtime-idf50d6cdfeec34531aa71ec91b5afb55e

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1279
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1459
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens211
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1670
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens1279
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.total_tokens1670
llmobs_parent_id14095416534938835122
llmobs_trace_id6b097ba90000000013269123cf3599f1
process_id9184
runtime-idf50d6cdfeec34531aa71ec91b5afb55e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/agent-loop · response_id #
expected msg_wt_loop1, reported nothing: call 1 of 3; failed on calls 1, 2, 3
Expected
msg_wt_loop1
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject ddtrace --scenario anthropic/agent-loop
Rule
The unique identifier of the completion.
Exported spans (4)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1171
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens97
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1268
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.total_tokens1268
llmobs_parent_id11592144238526265811
llmobs_trace_id6b097ba900000000afa0836b335ee74c
process_id9184
runtime-idf50d6cdfeec34531aa71ec91b5afb55e

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1093
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1307
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens89
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1396
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens1093
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.total_tokens1396
llmobs_parent_id16496149288460493480
llmobs_trace_id6b097ba900000000f89ee8643aeedbf6
process_id9184
runtime-idf50d6cdfeec34531aa71ec91b5afb55e

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1279
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1459
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens211
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1670
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens1279
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.total_tokens1670
llmobs_parent_id14095416534938835122
llmobs_trace_id6b097ba90000000013269123cf3599f1
process_id9184
runtime-idf50d6cdfeec34531aa71ec91b5afb55e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/agent-loop · finish_reasonsSilent stop #
expected tool_use, reported nothing: call 1 of 3; failed on calls 1, 2, 3
Expected
['tool_use']
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject ddtrace --scenario anthropic/agent-loop
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1171
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens97
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1268
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.total_tokens1268
llmobs_parent_id11592144238526265811
llmobs_trace_id6b097ba900000000afa0836b335ee74c
process_id9184
runtime-idf50d6cdfeec34531aa71ec91b5afb55e

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1093
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1307
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens89
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1396
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens1093
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.total_tokens1396
llmobs_parent_id16496149288460493480
llmobs_trace_id6b097ba900000000f89ee8643aeedbf6
process_id9184
runtime-idf50d6cdfeec34531aa71ec91b5afb55e

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1279
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1459
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens211
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1670
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens1279
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.total_tokens1670
llmobs_parent_id14095416534938835122
llmobs_trace_id6b097ba90000000013269123cf3599f1
process_id9184
runtime-idf50d6cdfeec34531aa71ec91b5afb55e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-basic · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-basic
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id5430262084204025858
llmobs_trace_id6b097a8900000000450ddea0a45cfb69
process_id6056
runtime-id901a976137614687bb93701bd8742056

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-basic · response_id #
expected msg_wt_basic, reported nothing
Expected
msg_wt_basic
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-basic
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id5430262084204025858
llmobs_trace_id6b097a8900000000450ddea0a45cfb69
process_id6056
runtime-id901a976137614687bb93701bd8742056

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-basic · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id5430262084204025858
llmobs_trace_id6b097a8900000000450ddea0a45cfb69
process_id6056
runtime-id901a976137614687bb93701bd8742056

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-concurrent-streams · response_model #
expected claude-sonnet-5-5-20260915, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
claude-sonnet-5-5-20260915
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-concurrent-streams
Rule
The name of the model that generated the response.
Exported spans (3)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1747
_dd.llmobs.model_nameclaude-haiku-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens181
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1928
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-haiku-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-haiku-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.total_tokens1928
llmobs_parent_id15553607668595571231
llmobs_trace_id6b097bba0000000049e37f2c2ad5f51a
process_id9308
runtime-idaf22a936929d4ab4bc9ada760c5d7c18

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens769
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1033
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens149
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1182
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens769
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.total_tokens1182
llmobs_parent_id11038448683936786880
llmobs_trace_id6b097bba00000000b0338a19c16b83ce
process_id9308
runtime-idaf22a936929d4ab4bc9ada760c5d7c18

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-concurrent-streams · response_id #
expected msg_wt_par1, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
msg_wt_par1
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-concurrent-streams
Rule
The unique identifier of the completion.
Exported spans (3)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1747
_dd.llmobs.model_nameclaude-haiku-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens181
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1928
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-haiku-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-haiku-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.total_tokens1928
llmobs_parent_id15553607668595571231
llmobs_trace_id6b097bba0000000049e37f2c2ad5f51a
process_id9308
runtime-idaf22a936929d4ab4bc9ada760c5d7c18

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens769
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1033
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens149
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1182
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens769
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.total_tokens1182
llmobs_parent_id11038448683936786880
llmobs_trace_id6b097bba00000000b0338a19c16b83ce
process_id9308
runtime-idaf22a936929d4ab4bc9ada760c5d7c18

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-concurrent-streams · finish_reasonsSilent stop #
expected end_turn, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
['end_turn']
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-concurrent-streams
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1747
_dd.llmobs.model_nameclaude-haiku-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens181
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1928
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-haiku-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-haiku-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.total_tokens1928
llmobs_parent_id15553607668595571231
llmobs_trace_id6b097bba0000000049e37f2c2ad5f51a
process_id9308
runtime-idaf22a936929d4ab4bc9ada760c5d7c18

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens769
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1033
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens149
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1182
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens769
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.total_tokens1182
llmobs_parent_id11038448683936786880
llmobs_trace_id6b097bba00000000b0338a19c16b83ce
process_id9308
runtime-idaf22a936929d4ab4bc9ada760c5d7c18

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-stream · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-stream
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id5943265254457319051
llmobs_trace_id6b097a920000000029223346931dc784
process_id6126
runtime-idd9dda3aad41f41bfab79bfec09b532cf

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-stream · response_id #
expected msg_wt_stream, reported nothing
Expected
msg_wt_stream
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-stream
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id5943265254457319051
llmobs_trace_id6b097a920000000029223346931dc784
process_id6126
runtime-idd9dda3aad41f41bfab79bfec09b532cf

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-stream · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id5943265254457319051
llmobs_trace_id6b097a920000000029223346931dc784
process_id6126
runtime-idd9dda3aad41f41bfab79bfec09b532cf

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-stream-early-exit · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1913
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.span_kindllm
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1913
llmobs_parent_id4204959108210818057
llmobs_trace_id6b097a9a000000004bb3ca19274766ca
process_id6195
runtime-id1b88c58f067c4174aaf46be1eec9bb13

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/async-stream-early-exit · response_id #
expected msg_wt_early, reported nothing
Expected
msg_wt_early
Reproduce
spantruth run --subject ddtrace --scenario anthropic/async-stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1913
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.span_kindllm
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1913
llmobs_parent_id4204959108210818057
llmobs_trace_id6b097a9a000000004bb3ca19274766ca
process_id6195
runtime-id1b88c58f067c4174aaf46be1eec9bb13

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/basic · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/basic
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id17526307976564791840
llmobs_trace_id6b0979cc00000000ff639eec3094f0f7
process_id4297
runtime-id67f78a1f3134474f9d90b0d614824800

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/basic · response_id #
expected msg_wt_basic, reported nothing
Expected
msg_wt_basic
Reproduce
spantruth run --subject ddtrace --scenario anthropic/basic
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id17526307976564791840
llmobs_trace_id6b0979cc00000000ff639eec3094f0f7
process_id4297
runtime-id67f78a1f3134474f9d90b0d614824800

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/basic · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id17526307976564791840
llmobs_trace_id6b0979cc00000000ff639eec3094f0f7
process_id4297
runtime-id67f78a1f3134474f9d90b0d614824800

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/cache-1h · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/cache-1h
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens2861
_dd.llmobs.cache_write_input_tokens2120
_dd.llmobs.enabled1
_dd.llmobs.input_tokens6288
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens389
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens6677
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens2861
gen_ai.usage.cache_write_input_tokens2120
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389
gen_ai.usage.total_tokens6677
llmobs_parent_id17834602375558667868
llmobs_trace_id6b0979ff00000000db2266a651476c11
process_id4766
runtime-id6393568e72bb410ea0d8e87ee730770d

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/cache-1h · response_id #
expected msg_wt_cache1h, reported nothing
Expected
msg_wt_cache1h
Reproduce
spantruth run --subject ddtrace --scenario anthropic/cache-1h
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens2861
_dd.llmobs.cache_write_input_tokens2120
_dd.llmobs.enabled1
_dd.llmobs.input_tokens6288
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens389
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens6677
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens2861
gen_ai.usage.cache_write_input_tokens2120
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389
gen_ai.usage.total_tokens6677
llmobs_parent_id17834602375558667868
llmobs_trace_id6b0979ff00000000db2266a651476c11
process_id4766
runtime-id6393568e72bb410ea0d8e87ee730770d

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/cache-1h · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens2861
_dd.llmobs.cache_write_input_tokens2120
_dd.llmobs.enabled1
_dd.llmobs.input_tokens6288
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens389
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens6677
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens2861
gen_ai.usage.cache_write_input_tokens2120
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389
gen_ai.usage.total_tokens6677
llmobs_parent_id17834602375558667868
llmobs_trace_id6b0979ff00000000db2266a651476c11
process_id4766
runtime-id6393568e72bb410ea0d8e87ee730770d

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/cache-hit · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/cache-hit
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens4096
_dd.llmobs.cache_write_input_tokens519
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5802
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens377
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens6179
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens4096
gen_ai.usage.cache_write_input_tokens519
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377
gen_ai.usage.total_tokens6179
llmobs_parent_id10748891915231507043
llmobs_trace_id6b0979e500000000a3753344b683b9e6
process_id4499
runtime-id6503df5d63e340268acb59e85fe76c20

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/cache-hit · response_id #
expected msg_wt_cache, reported nothing
Expected
msg_wt_cache
Reproduce
spantruth run --subject ddtrace --scenario anthropic/cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens4096
_dd.llmobs.cache_write_input_tokens519
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5802
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens377
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens6179
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens4096
gen_ai.usage.cache_write_input_tokens519
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377
gen_ai.usage.total_tokens6179
llmobs_parent_id10748891915231507043
llmobs_trace_id6b0979e500000000a3753344b683b9e6
process_id4499
runtime-id6503df5d63e340268acb59e85fe76c20

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/cache-hit · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens4096
_dd.llmobs.cache_write_input_tokens519
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5802
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens377
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens6179
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens4096
gen_ai.usage.cache_write_input_tokens519
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377
gen_ai.usage.total_tokens6179
llmobs_parent_id10748891915231507043
llmobs_trace_id6b0979e500000000a3753344b683b9e6
process_id4499
runtime-id6503df5d63e340268acb59e85fe76c20

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/content-off · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/content-off
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id7620599762116540681
llmobs_trace_id6b097ad30000000000dcbb15a776fea5
process_id6663
runtime-idae1721bab0064b5e99ecbae6310a306d

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/content-off · response_id #
expected msg_wt_basic, reported nothing
Expected
msg_wt_basic
Reproduce
spantruth run --subject ddtrace --scenario anthropic/content-off
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id7620599762116540681
llmobs_trace_id6b097ad30000000000dcbb15a776fea5
process_id6663
runtime-idae1721bab0064b5e99ecbae6310a306d

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/content-off · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id7620599762116540681
llmobs_trace_id6b097ad30000000000dcbb15a776fea5
process_id6663
runtime-idae1721bab0064b5e99ecbae6310a306d

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/content-on · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/content-on
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id11473059912430679350
llmobs_trace_id6b097adb00000000a3c79ec8720a8fa3
process_id6725
runtime-id9759ae707b0945439b36ed5c86365663

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/content-on · response_id #
expected msg_wt_basic, reported nothing
Expected
msg_wt_basic
Reproduce
spantruth run --subject ddtrace --scenario anthropic/content-on
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id11473059912430679350
llmobs_trace_id6b097adb00000000a3c79ec8720a8fa3
process_id6725
runtime-id9759ae707b0945439b36ed5c86365663

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/content-on · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
llmobs_parent_id11473059912430679350
llmobs_trace_id6b097adb00000000a3c79ec8720a8fa3
process_id6725
runtime-id9759ae707b0945439b36ed5c86365663

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/retry-429 · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/retry-429
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2477
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens367
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2844
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.total_tokens2844
llmobs_parent_id12919877118154508587
llmobs_trace_id6b097a3000000000cfff190c1fca8839
process_id5165
runtime-idbaf9802205e144b4a9f22432c7745c62

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/retry-429 · response_id #
expected msg_wt_retry, reported nothing
Expected
msg_wt_retry
Reproduce
spantruth run --subject ddtrace --scenario anthropic/retry-429
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2477
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens367
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2844
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.total_tokens2844
llmobs_parent_id12919877118154508587
llmobs_trace_id6b097a3000000000cfff190c1fca8839
process_id5165
runtime-idbaf9802205e144b4a9f22432c7745c62

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/retry-429 · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/retry-429
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2477
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens367
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2844
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.total_tokens2844
llmobs_parent_id12919877118154508587
llmobs_trace_id6b097a3000000000cfff190c1fca8839
process_id5165
runtime-idbaf9802205e144b4a9f22432c7745c62

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id9196724222504759177
llmobs_trace_id6b0979d40000000034af6efc9fe71ee5
process_id4366
runtime-idf4c2f57bc93743dba4f6945f15003c49

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream · response_id #
expected msg_wt_stream, reported nothing
Expected
msg_wt_stream
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id9196724222504759177
llmobs_trace_id6b0979d40000000034af6efc9fe71ee5
process_id4366
runtime-idf4c2f57bc93743dba4f6945f15003c49

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id9196724222504759177
llmobs_trace_id6b0979d40000000034af6efc9fe71ee5
process_id4366
runtime-idf4c2f57bc93743dba4f6945f15003c49

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-cache-1h · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-cache-1h
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens3217
_dd.llmobs.cache_write_input_tokens2492
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7160
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens523
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7683
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens3217
gen_ai.usage.cache_write_input_tokens2492
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7683
llmobs_parent_id10466239703788946183
llmobs_trace_id6b097a070000000038b55fd2918942e1
process_id4819
runtime-id2e357c7932f54d46a2b9d5a52839cedd

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-cache-1h · response_id #
expected msg_wt_scache1h, reported nothing
Expected
msg_wt_scache1h
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-cache-1h
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens3217
_dd.llmobs.cache_write_input_tokens2492
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7160
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens523
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7683
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens3217
gen_ai.usage.cache_write_input_tokens2492
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7683
llmobs_parent_id10466239703788946183
llmobs_trace_id6b097a070000000038b55fd2918942e1
process_id4819
runtime-id2e357c7932f54d46a2b9d5a52839cedd

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-cache-1h · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens3217
_dd.llmobs.cache_write_input_tokens2492
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7160
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens523
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7683
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens3217
gen_ai.usage.cache_write_input_tokens2492
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7683
llmobs_parent_id10466239703788946183
llmobs_trace_id6b097a070000000038b55fd2918942e1
process_id4819
runtime-id2e357c7932f54d46a2b9d5a52839cedd

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-cache-cumulative · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-cache-cumulative
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens3583
_dd.llmobs.cache_write_input_tokens811
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5673
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens467
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens6140
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens3583
gen_ai.usage.cache_write_input_tokens811
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
llmobs_parent_id8106946715148041719
llmobs_trace_id6b0979f600000000e5c108ac257cfb81
process_id4697
runtime-id7100065feaef473e959bb83a615a2bcf

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-cache-cumulative · response_id #
expected msg_wt_cumul, reported nothing
Expected
msg_wt_cumul
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-cache-cumulative
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens3583
_dd.llmobs.cache_write_input_tokens811
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5673
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens467
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens6140
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens3583
gen_ai.usage.cache_write_input_tokens811
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
llmobs_parent_id8106946715148041719
llmobs_trace_id6b0979f600000000e5c108ac257cfb81
process_id4697
runtime-id7100065feaef473e959bb83a615a2bcf

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-cache-cumulative · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-cache-cumulative
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens3583
_dd.llmobs.cache_write_input_tokens811
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5673
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens467
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens6140
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens3583
gen_ai.usage.cache_write_input_tokens811
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
llmobs_parent_id8106946715148041719
llmobs_trace_id6b0979f600000000e5c108ac257cfb81
process_id4697
runtime-id7100065feaef473e959bb83a615a2bcf

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-cache-hit · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens6144
_dd.llmobs.cache_write_input_tokens737
_dd.llmobs.enabled1
_dd.llmobs.input_tokens8424
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens511
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens8935
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens6144
gen_ai.usage.cache_write_input_tokens737
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens8935
llmobs_parent_id11704021549876885881
llmobs_trace_id6b0979ed0000000047e6a1d9d212d0d4
process_id4566
runtime-id9c3c6e04250344338a38f2546dd497e3

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-cache-hit · response_id #
expected msg_wt_scache, reported nothing
Expected
msg_wt_scache
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens6144
_dd.llmobs.cache_write_input_tokens737
_dd.llmobs.enabled1
_dd.llmobs.input_tokens8424
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens511
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens8935
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens6144
gen_ai.usage.cache_write_input_tokens737
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens8935
llmobs_parent_id11704021549876885881
llmobs_trace_id6b0979ed0000000047e6a1d9d212d0d4
process_id4566
runtime-id9c3c6e04250344338a38f2546dd497e3

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-cache-hit · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens6144
_dd.llmobs.cache_write_input_tokens737
_dd.llmobs.enabled1
_dd.llmobs.input_tokens8424
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens511
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens8935
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens6144
gen_ai.usage.cache_write_input_tokens737
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens8935
llmobs_parent_id11704021549876885881
llmobs_trace_id6b0979ed0000000047e6a1d9d212d0d4
process_id4566
runtime-id9c3c6e04250344338a38f2546dd497e3

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-content-off · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-content-off
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id15152365861127280048
llmobs_trace_id6b097ae40000000049f6f608ac000f82
process_id6789
runtime-idb14e0473820148ab852d116e972ae9f9

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-content-off · response_id #
expected msg_wt_stream, reported nothing
Expected
msg_wt_stream
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-content-off
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id15152365861127280048
llmobs_trace_id6b097ae40000000049f6f608ac000f82
process_id6789
runtime-idb14e0473820148ab852d116e972ae9f9

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-content-off · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id15152365861127280048
llmobs_trace_id6b097ae40000000049f6f608ac000f82
process_id6789
runtime-idb14e0473820148ab852d116e972ae9f9

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-content-on · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-content-on
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id18023853678548328113
llmobs_trace_id6b097aec00000000d7f34ffe769ff4ed
process_id6862
runtime-id22fa542ecf3d482ab5af7847232057cd

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-content-on · response_id #
expected msg_wt_stream, reported nothing
Expected
msg_wt_stream
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-content-on
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id18023853678548328113
llmobs_trace_id6b097aec00000000d7f34ffe769ff4ed
process_id6862
runtime-id22fa542ecf3d482ab5af7847232057cd

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-content-on · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
llmobs_parent_id18023853678548328113
llmobs_trace_id6b097aec00000000d7f34ffe769ff4ed
process_id6862
runtime-id22fa542ecf3d482ab5af7847232057cd

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-early-exit · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1913
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.span_kindllm
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1913
llmobs_parent_id11405621076390022593
llmobs_trace_id6b0979dc00000000229a6797b23a5c25
process_id4429
runtime-id21e85fb52b7a423194af8eada7dc39e6

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-early-exit · response_id #
expected msg_wt_early, reported nothing
Expected
msg_wt_early
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1913
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.span_kindllm
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1913
llmobs_parent_id11405621076390022593
llmobs_trace_id6b0979dc00000000229a6797b23a5c25
process_id4429
runtime-id21e85fb52b7a423194af8eada7dc39e6

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-early-exit-with · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-early-exit-with
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1913
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.span_kindllm
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1913
llmobs_parent_id10251418517356770268
llmobs_trace_id6b097a5900000000b2016e80d53fc5c1
process_id5540
runtime-idf24ebc1f45cd4c789d2bbb7e37821b74

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-early-exit-with · response_id #
expected msg_wt_early, reported nothing
Expected
msg_wt_early
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-early-exit-with
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1913
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.span_kindllm
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1913
llmobs_parent_id10251418517356770268
llmobs_trace_id6b097a5900000000b2016e80d53fc5c1
process_id5540
runtime-idf24ebc1f45cd4c789d2bbb7e37821b74

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-thinking · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-thinking
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1831
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens1439
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3270
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens3270
llmobs_parent_id16245095327013559823
llmobs_trace_id6b097a4a00000000716501d9d3a0a4d7
process_id5386
runtime-id2cc2d433b3274b629989e54c58ad090d

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-thinking · response_id #
expected msg_wt_sthink, reported nothing
Expected
msg_wt_sthink
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-thinking
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1831
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens1439
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3270
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens3270
llmobs_parent_id16245095327013559823
llmobs_trace_id6b097a4a00000000716501d9d3a0a4d7
process_id5386
runtime-id2cc2d433b3274b629989e54c58ad090d

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-thinking · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1831
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens1439
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3270
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens3270
llmobs_parent_id16245095327013559823
llmobs_trace_id6b097a4a00000000716501d9d3a0a4d7
process_id5386
runtime-id2cc2d433b3274b629989e54c58ad090d

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-thinking · reasoning_tokensHidden reasoning #
expected 1103, reported nothing
Expected
1103
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1831
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens1439
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3270
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens3270
llmobs_parent_id16245095327013559823
llmobs_trace_id6b097a4a00000000716501d9d3a0a4d7
process_id5386
runtime-id2cc2d433b3274b629989e54c58ad090d

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-tool-call · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-tool-call
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1619
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens197
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1816
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens1816
llmobs_parent_id9210775079873614354
llmobs_trace_id6b097a1f000000002a50425f1c31b72f
process_id5021
runtime-idf63e9b4ca565451fa09da34d4f880c0b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-tool-call · response_id #
expected msg_wt_stools, reported nothing
Expected
msg_wt_stools
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-tool-call
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1619
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens197
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1816
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens1816
llmobs_parent_id9210775079873614354
llmobs_trace_id6b097a1f000000002a50425f1c31b72f
process_id5021
runtime-idf63e9b4ca565451fa09da34d4f880c0b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/stream-tool-call · finish_reasonsSilent stop #
expected tool_use, reported nothing
Expected
['tool_use']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1619
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens197
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1816
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens1816
llmobs_parent_id9210775079873614354
llmobs_trace_id6b097a1f000000002a50425f1c31b72f
process_id5021
runtime-idf63e9b4ca565451fa09da34d4f880c0b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/thinking · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/thinking
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1627
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens1273
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2900
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.total_tokens2900
llmobs_parent_id3986699889891656284
llmobs_trace_id6b097a4100000000dea14943b1aed5e2
process_id5299
runtime-id0a841e029d474d36a056ba1021c73c90

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/thinking · response_id #
expected msg_wt_thinking, reported nothing
Expected
msg_wt_thinking
Reproduce
spantruth run --subject ddtrace --scenario anthropic/thinking
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1627
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens1273
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2900
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.total_tokens2900
llmobs_parent_id3986699889891656284
llmobs_trace_id6b097a4100000000dea14943b1aed5e2
process_id5299
runtime-id0a841e029d474d36a056ba1021c73c90

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/thinking · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1627
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens1273
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2900
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.total_tokens2900
llmobs_parent_id3986699889891656284
llmobs_trace_id6b097a4100000000dea14943b1aed5e2
process_id5299
runtime-id0a841e029d474d36a056ba1021c73c90

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/thinking · reasoning_tokensHidden reasoning #
expected 947, reported nothing
Expected
947
Reproduce
spantruth run --subject ddtrace --scenario anthropic/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1627
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens1273
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2900
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.total_tokens2900
llmobs_parent_id3986699889891656284
llmobs_trace_id6b097a4100000000dea14943b1aed5e2
process_id5299
runtime-id0a841e029d474d36a056ba1021c73c90

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/tool-call · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject ddtrace --scenario anthropic/tool-call
Rule
The name of the model that generated the response.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens931
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens88
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1019
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.total_tokens1019
llmobs_parent_id4501434131260353252
llmobs_trace_id6b097a17000000008365805419740d26
process_id4955
runtime-id5a652a5942bb401c9c20a5d2b1d4dc94

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/tool-call · response_id #
expected msg_wt_tools, reported nothing
Expected
msg_wt_tools
Reproduce
spantruth run --subject ddtrace --scenario anthropic/tool-call
Rule
The unique identifier of the completion.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens931
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens88
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1019
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.total_tokens1019
llmobs_parent_id4501434131260353252
llmobs_trace_id6b097a17000000008365805419740d26
process_id4955
runtime-id5a652a5942bb401c9c20a5d2b1d4dc94

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · anthropic/tool-call · finish_reasonsSilent stop #
expected tool_use, reported nothing
Expected
['tool_use']
Reproduce
spantruth run --subject ddtrace --scenario anthropic/tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

anthropic.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.cache_write_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens931
_dd.llmobs.model_nameclaude-sonnet-5-5
_dd.llmobs.model_provideranthropic
_dd.llmobs.output_tokens88
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1019
_dd.measured1
_dd.svc_srcm
anthropic.request.modelclaude-sonnet-5-5
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.cache_write_input_tokens0
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.total_tokens1019
llmobs_parent_id4501434131260353252
llmobs_trace_id6b097a17000000008365805419740d26
process_id4955
runtime-id5a652a5942bb401c9c20a5d2b1d4dc94

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · azure/async-basic · request_model #
expected wt-chat-deployment, reported gpt-5-mini-2026-08-07
Expected
wt-chat-deployment
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario azure/async-basic
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1490
llmobs_parent_id12420534634180348750
llmobs_trace_id6b097b5300000000c03b10f63cec3c0b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id8265
runtime-id324a183086da43ab9b0535e76fac393b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/async-basic · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario azure/async-basic
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1490
llmobs_parent_id12420534634180348750
llmobs_trace_id6b097b5300000000c03b10f63cec3c0b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id8265
runtime-id324a183086da43ab9b0535e76fac393b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/async-basic · response_id #
expected chatcmpl-wt-azbasic, reported nothing
Expected
chatcmpl-wt-azbasic
Reproduce
spantruth run --subject ddtrace --scenario azure/async-basic
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1490
llmobs_parent_id12420534634180348750
llmobs_trace_id6b097b5300000000c03b10f63cec3c0b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id8265
runtime-id324a183086da43ab9b0535e76fac393b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/async-basic · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario azure/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1490
llmobs_parent_id12420534634180348750
llmobs_trace_id6b097b5300000000c03b10f63cec3c0b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id8265
runtime-id324a183086da43ab9b0535e76fac393b

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · azure/async-stream · request_model #
expected wt-chat-deployment, reported gpt-5-mini-2026-08-07
Expected
wt-chat-deployment
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario azure/async-stream
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2341
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens433
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2774
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2774
llmobs_parent_id14904182315873656295
llmobs_trace_id6b097b5b00000000090fb401a76c96da
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id8355
runtime-id725ee8ce1db2487e8fb3cb578b8a4053

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/async-stream · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario azure/async-stream
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2341
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens433
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2774
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2774
llmobs_parent_id14904182315873656295
llmobs_trace_id6b097b5b00000000090fb401a76c96da
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id8355
runtime-id725ee8ce1db2487e8fb3cb578b8a4053

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/async-stream · response_id #
expected chatcmpl-wt-azstream, reported nothing
Expected
chatcmpl-wt-azstream
Reproduce
spantruth run --subject ddtrace --scenario azure/async-stream
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2341
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens433
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2774
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2774
llmobs_parent_id14904182315873656295
llmobs_trace_id6b097b5b00000000090fb401a76c96da
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id8355
runtime-id725ee8ce1db2487e8fb3cb578b8a4053

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/async-stream · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario azure/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2341
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens433
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2774
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2774
llmobs_parent_id14904182315873656295
llmobs_trace_id6b097b5b00000000090fb401a76c96da
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id8355
runtime-id725ee8ce1db2487e8fb3cb578b8a4053

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · azure/basic · request_model #
expected wt-chat-deployment, reported gpt-5-mini-2026-08-07
Expected
wt-chat-deployment
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario azure/basic
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1490
llmobs_parent_id7809601823771677171
llmobs_trace_id6b097b2a00000000a22d2c859527b1a6
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id7659
runtime-idd170be2cdea74c04a4125615ac48cc0f

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/basic · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario azure/basic
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1490
llmobs_parent_id7809601823771677171
llmobs_trace_id6b097b2a00000000a22d2c859527b1a6
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id7659
runtime-idd170be2cdea74c04a4125615ac48cc0f

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/basic · response_id #
expected chatcmpl-wt-azbasic, reported nothing
Expected
chatcmpl-wt-azbasic
Reproduce
spantruth run --subject ddtrace --scenario azure/basic
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1490
llmobs_parent_id7809601823771677171
llmobs_trace_id6b097b2a00000000a22d2c859527b1a6
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id7659
runtime-idd170be2cdea74c04a4125615ac48cc0f

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/basic · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario azure/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1490
llmobs_parent_id7809601823771677171
llmobs_trace_id6b097b2a00000000a22d2c859527b1a6
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id7659
runtime-idd170be2cdea74c04a4125615ac48cc0f

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · azure/stream · request_model #
expected wt-chat-deployment, reported gpt-5-mini-2026-08-07
Expected
wt-chat-deployment
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario azure/stream
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2341
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens433
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2774
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2774
llmobs_parent_id8094255845648977425
llmobs_trace_id6b097b3200000000fcfd7ad27cacc71f
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id7747
runtime-idbd526d80b23641e8b6d61b99245fc08b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/stream · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario azure/stream
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2341
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens433
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2774
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2774
llmobs_parent_id8094255845648977425
llmobs_trace_id6b097b3200000000fcfd7ad27cacc71f
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id7747
runtime-idbd526d80b23641e8b6d61b99245fc08b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/stream · response_id #
expected chatcmpl-wt-azstream, reported nothing
Expected
chatcmpl-wt-azstream
Reproduce
spantruth run --subject ddtrace --scenario azure/stream
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2341
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens433
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2774
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2774
llmobs_parent_id8094255845648977425
llmobs_trace_id6b097b3200000000fcfd7ad27cacc71f
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id7747
runtime-idbd526d80b23641e8b6d61b99245fc08b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · azure/stream · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario azure/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2341
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_providerazure_openai
_dd.llmobs.output_tokens433
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2774
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameazure_openai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2774
llmobs_parent_id8094255845648977425
llmobs_trace_id6b097b3200000000fcfd7ad27cacc71f
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelwt-chat-deployment
openai.request.providerAzureOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id7747
runtime-idbd526d80b23641e8b6d61b99245fc08b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/async-basic · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject ddtrace --scenario gemini/async-basic
Rule
The name of the model that generated the response.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1193
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens271
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1464
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271
gen_ai.usage.total_tokens1464
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id9263701747746464688
llmobs_trace_id6b097b39000000005e07fa7a8c37e2db
process_id7831
runtime-id6d8b9297fa8149bea1af5739690521c4

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/async-basic · response_id #
expected wt-gemini-basic, reported nothing
Expected
wt-gemini-basic
Reproduce
spantruth run --subject ddtrace --scenario gemini/async-basic
Rule
The unique identifier of the completion.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1193
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens271
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1464
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271
gen_ai.usage.total_tokens1464
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id9263701747746464688
llmobs_trace_id6b097b39000000005e07fa7a8c37e2db
process_id7831
runtime-id6d8b9297fa8149bea1af5739690521c4

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/async-basic · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Reproduce
spantruth run --subject ddtrace --scenario gemini/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1193
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens271
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1464
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271
gen_ai.usage.total_tokens1464
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id9263701747746464688
llmobs_trace_id6b097b39000000005e07fa7a8c37e2db
process_id7831
runtime-id6d8b9297fa8149bea1af5739690521c4

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/async-stream · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject ddtrace --scenario gemini/async-stream
Rule
The name of the model that generated the response.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2333
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens431
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2764
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id14730012840717960004
llmobs_trace_id6b097b3f000000006de71b6751104baf
process_id7950
runtime-idd0189d1e562648eda840729c0f64a20a

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/async-stream · response_id #
expected wt-gemini-stream, reported nothing
Expected
wt-gemini-stream
Reproduce
spantruth run --subject ddtrace --scenario gemini/async-stream
Rule
The unique identifier of the completion.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2333
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens431
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2764
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id14730012840717960004
llmobs_trace_id6b097b3f000000006de71b6751104baf
process_id7950
runtime-idd0189d1e562648eda840729c0f64a20a

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/async-stream · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Reproduce
spantruth run --subject ddtrace --scenario gemini/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2333
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens431
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2764
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id14730012840717960004
llmobs_trace_id6b097b3f000000006de71b6751104baf
process_id7950
runtime-idd0189d1e562648eda840729c0f64a20a

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/async-stream-early-exit · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject ddtrace --scenario gemini/async-stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1949
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens239
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2188
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id11014933188409316883
llmobs_trace_id6b097b4500000000033ec81afe32e149
process_id8121
runtime-id7ee63fe37ffc4a94b6383add151d98bd
missing ddtrace · gemini/async-stream-early-exit · response_id #
expected wt-gemini-early, reported nothing
Expected
wt-gemini-early
Reproduce
spantruth run --subject ddtrace --scenario gemini/async-stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1949
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens239
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2188
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id11014933188409316883
llmobs_trace_id6b097b4500000000033ec81afe32e149
process_id8121
runtime-id7ee63fe37ffc4a94b6383add151d98bd
missing ddtrace · gemini/basic · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject ddtrace --scenario gemini/basic
Rule
The name of the model that generated the response.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1193
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens271
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1464
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271
gen_ai.usage.total_tokens1464
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id10049778164778624986
llmobs_trace_id6b097af300000000795e5c3425222039
process_id6919
runtime-id4ccde303a00c4957bab58bf4b027e2b7

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/basic · response_id #
expected wt-gemini-basic, reported nothing
Expected
wt-gemini-basic
Reproduce
spantruth run --subject ddtrace --scenario gemini/basic
Rule
The unique identifier of the completion.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1193
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens271
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1464
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271
gen_ai.usage.total_tokens1464
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id10049778164778624986
llmobs_trace_id6b097af300000000795e5c3425222039
process_id6919
runtime-id4ccde303a00c4957bab58bf4b027e2b7

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/basic · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Reproduce
spantruth run --subject ddtrace --scenario gemini/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1193
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens271
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1464
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271
gen_ai.usage.total_tokens1464
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id10049778164778624986
llmobs_trace_id6b097af300000000795e5c3425222039
process_id6919
runtime-id4ccde303a00c4957bab58bf4b027e2b7

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/cache-hit · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject ddtrace --scenario gemini/cache-hit
Rule
The name of the model that generated the response.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens4099
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5417
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens383
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens5800
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.cache_read_input_tokens4099
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383
gen_ai.usage.total_tokens5800
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id6014812397034740914
llmobs_trace_id6b097b11000000000a0856922c4b88cf
process_id7358
runtime-idffb9f6126d10427db110343f2f77e1fd

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/cache-hit · response_id #
expected wt-gemini-cache, reported nothing
Expected
wt-gemini-cache
Reproduce
spantruth run --subject ddtrace --scenario gemini/cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens4099
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5417
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens383
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens5800
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.cache_read_input_tokens4099
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383
gen_ai.usage.total_tokens5800
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id6014812397034740914
llmobs_trace_id6b097b11000000000a0856922c4b88cf
process_id7358
runtime-idffb9f6126d10427db110343f2f77e1fd

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/cache-hit · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Reproduce
spantruth run --subject ddtrace --scenario gemini/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens4099
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5417
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens383
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens5800
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.cache_read_input_tokens4099
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383
gen_ai.usage.total_tokens5800
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id6014812397034740914
llmobs_trace_id6b097b11000000000a0856922c4b88cf
process_id7358
runtime-idffb9f6126d10427db110343f2f77e1fd

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream
Rule
The name of the model that generated the response.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2333
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens431
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2764
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id11224349611185744842
llmobs_trace_id6b097af9000000007d81c8cbed32f287
process_id6973
runtime-id16bb13e5cc714665831c5958d77890da

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream · response_id #
expected wt-gemini-stream, reported nothing
Expected
wt-gemini-stream
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream
Rule
The unique identifier of the completion.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2333
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens431
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2764
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id11224349611185744842
llmobs_trace_id6b097af9000000007d81c8cbed32f287
process_id6973
runtime-id16bb13e5cc714665831c5958d77890da

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2333
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens431
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2764
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id11224349611185744842
llmobs_trace_id6b097af9000000007d81c8cbed32f287
process_id6973
runtime-id16bb13e5cc714665831c5958d77890da

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream-cache-hit · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens6151
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7229
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens523
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7752
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.cache_read_input_tokens6151
gen_ai.usage.input_tokens7229
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7752
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id6116680298871566833
llmobs_trace_id6b097b1700000000c1919c273e544f43
process_id7468
runtime-idc2fcacf6575b42ca8acc320bc8dd97a3

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream-cache-hit · response_id #
expected wt-gemini-scache, reported nothing
Expected
wt-gemini-scache
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream-cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens6151
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7229
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens523
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7752
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.cache_read_input_tokens6151
gen_ai.usage.input_tokens7229
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7752
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id6116680298871566833
llmobs_trace_id6b097b1700000000c1919c273e544f43
process_id7468
runtime-idc2fcacf6575b42ca8acc320bc8dd97a3

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream-cache-hit · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens6151
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7229
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens523
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7752
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.cache_read_input_tokens6151
gen_ai.usage.input_tokens7229
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7752
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id6116680298871566833
llmobs_trace_id6b097b1700000000c1919c273e544f43
process_id7468
runtime-idc2fcacf6575b42ca8acc320bc8dd97a3

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream-early-exit · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1949
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens239
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2188
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id16460243124243120899
llmobs_trace_id6b097aff00000000655f56526d08d22b
process_id7030
runtime-id0c319c3dab1144a5afc23a4e650556ba

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream-early-exit · response_id #
expected wt-gemini-early, reported nothing
Expected
wt-gemini-early
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1949
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens239
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2188
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id16460243124243120899
llmobs_trace_id6b097aff00000000655f56526d08d22b
process_id7030
runtime-id0c319c3dab1144a5afc23a4e650556ba

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream-thinking · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream-thinking
Rule
The name of the model that generated the response.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2083
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens2316
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens4399
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens2316
gen_ai.usage.reasoning_output_tokens1999
gen_ai.usage.total_tokens4399
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id5108620518501109698
llmobs_trace_id6b097b0b00000000f42c865b8c2b0eb3
process_id7236
runtime-id1e3506aa5c02442b8017f427539de121

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream-thinking · response_id #
expected wt-gemini-sthink, reported nothing
Expected
wt-gemini-sthink
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream-thinking
Rule
The unique identifier of the completion.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2083
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens2316
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens4399
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens2316
gen_ai.usage.reasoning_output_tokens1999
gen_ai.usage.total_tokens4399
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id5108620518501109698
llmobs_trace_id6b097b0b00000000f42c865b8c2b0eb3
process_id7236
runtime-id1e3506aa5c02442b8017f427539de121

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/stream-thinking · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Reproduce
spantruth run --subject ddtrace --scenario gemini/stream-thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2083
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens2316
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens4399
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens2316
gen_ai.usage.reasoning_output_tokens1999
gen_ai.usage.total_tokens4399
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id5108620518501109698
llmobs_trace_id6b097b0b00000000f42c865b8c2b0eb3
process_id7236
runtime-id1e3506aa5c02442b8017f427539de121

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/thinking · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject ddtrace --scenario gemini/thinking
Rule
The name of the model that generated the response.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1609
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens2118
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3727
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118
gen_ai.usage.reasoning_output_tokens1877
gen_ai.usage.total_tokens3727
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id14299848904773191911
llmobs_trace_id6b097b0500000000c7eb487b94c4c54a
process_id7118
runtime-idf401fdd40cae4489a6ecfa6d6288e5eb

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/thinking · response_id #
expected wt-gemini-think, reported nothing
Expected
wt-gemini-think
Reproduce
spantruth run --subject ddtrace --scenario gemini/thinking
Rule
The unique identifier of the completion.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1609
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens2118
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3727
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118
gen_ai.usage.reasoning_output_tokens1877
gen_ai.usage.total_tokens3727
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id14299848904773191911
llmobs_trace_id6b097b0500000000c7eb487b94c4c54a
process_id7118
runtime-idf401fdd40cae4489a6ecfa6d6288e5eb

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · gemini/thinking · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Reproduce
spantruth run --subject ddtrace --scenario gemini/thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

google_genai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1609
_dd.llmobs.model_namegemini-3.5-flash-lite
_dd.llmobs.model_providergoogle
_dd.llmobs.output_tokens2118
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3727
_dd.measured1
_dd.svc_srcm
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.namegoogle
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118
gen_ai.usage.reasoning_output_tokens1877
gen_ai.usage.total_tokens3727
google_genai.request.modelgemini-3.5-flash-lite
google_genai.request.providergoogle
llmobs_parent_id14299848904773191911
llmobs_trace_id6b097b0500000000c7eb487b94c4c54a
process_id7118
runtime-idf401fdd40cae4489a6ecfa6d6288e5eb

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/agent-loop · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07: call 1 of 3; failed on calls 1, 2, 3
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject ddtrace --scenario openai/agent-loop
Rule
The model name the request asked for.
Exported spans (4)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1171
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens97
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1268
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1268
llmobs_parent_id15383357845418421378
llmobs_trace_id6b097ba1000000003d107dbe22e199bf
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1093
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1307
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens89
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1396
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens1093
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1396
llmobs_parent_id3528974538559005493
llmobs_trace_id6b097ba100000000536c8d1f8dc3c45d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1279
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1459
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens211
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1670
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens1279
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1670
llmobs_parent_id12427584461512154983
llmobs_trace_id6b097ba100000000b82141b6fe4a5f5b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/agent-loop · response_model #
expected gpt-5-mini-2026-08-07, reported nothing: call 1 of 3; failed on calls 1, 2, 3
Expected
gpt-5-mini-2026-08-07
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject ddtrace --scenario openai/agent-loop
Rule
The name of the model that generated the response.
Exported spans (4)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1171
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens97
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1268
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1268
llmobs_parent_id15383357845418421378
llmobs_trace_id6b097ba1000000003d107dbe22e199bf
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1093
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1307
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens89
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1396
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens1093
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1396
llmobs_parent_id3528974538559005493
llmobs_trace_id6b097ba100000000536c8d1f8dc3c45d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1279
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1459
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens211
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1670
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens1279
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1670
llmobs_parent_id12427584461512154983
llmobs_trace_id6b097ba100000000b82141b6fe4a5f5b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/agent-loop · response_id #
expected chatcmpl-wt-loop1, reported nothing: call 1 of 3; failed on calls 1, 2, 3
Expected
chatcmpl-wt-loop1
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject ddtrace --scenario openai/agent-loop
Rule
The unique identifier of the completion.
Exported spans (4)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1171
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens97
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1268
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1268
llmobs_parent_id15383357845418421378
llmobs_trace_id6b097ba1000000003d107dbe22e199bf
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1093
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1307
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens89
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1396
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens1093
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1396
llmobs_parent_id3528974538559005493
llmobs_trace_id6b097ba100000000536c8d1f8dc3c45d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1279
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1459
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens211
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1670
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens1279
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1670
llmobs_parent_id12427584461512154983
llmobs_trace_id6b097ba100000000b82141b6fe4a5f5b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/agent-loop · finish_reasonsSilent stop #
expected tool_calls, reported nothing: call 1 of 3; failed on calls 1, 2, 3
Expected
['tool_calls']
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject ddtrace --scenario openai/agent-loop
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1171
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens97
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1268
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1268
llmobs_parent_id15383357845418421378
llmobs_trace_id6b097ba1000000003d107dbe22e199bf
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1093
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1307
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens89
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1396
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens1093
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1396
llmobs_parent_id3528974538559005493
llmobs_trace_id6b097ba100000000536c8d1f8dc3c45d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1279
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1459
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens211
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1670
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens1279
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1670
llmobs_parent_id12427584461512154983
llmobs_trace_id6b097ba100000000b82141b6fe4a5f5b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9125
runtime-id6d44b07d9cd54ea8b0644d3960781f31

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/async-basic · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/async-basic
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id4230120041869980666
llmobs_trace_id6b097a6100000000433178752e76d6ce
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5619
runtime-idf8b6abd3e6f74382b2854cd8408dfb65

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-basic · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/async-basic
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id4230120041869980666
llmobs_trace_id6b097a6100000000433178752e76d6ce
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5619
runtime-idf8b6abd3e6f74382b2854cd8408dfb65

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-basic · response_id #
expected chatcmpl-wt-basic, reported nothing
Expected
chatcmpl-wt-basic
Reproduce
spantruth run --subject ddtrace --scenario openai/async-basic
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id4230120041869980666
llmobs_trace_id6b097a6100000000433178752e76d6ce
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5619
runtime-idf8b6abd3e6f74382b2854cd8408dfb65

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-basic · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id4230120041869980666
llmobs_trace_id6b097a6100000000433178752e76d6ce
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5619
runtime-idf8b6abd3e6f74382b2854cd8408dfb65

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/async-concurrent-streams · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07: call 1 of 2; failed on calls 1, 2
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject ddtrace --scenario openai/async-concurrent-streams
Rule
The model name the request asked for.
Exported spans (3)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens769
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1033
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens149
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1182
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1182
llmobs_parent_id2100475065505740057
llmobs_trace_id6b097bb1000000006d787a36bbfa1d42
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9245
runtime-id5df347061be14c23b6025bbcae96c5fc

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1747
_dd.llmobs.model_namegpt-5-nano-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens181
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1928
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-nano-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1928
llmobs_parent_id10619131209175521635
llmobs_trace_id6b097bb100000000b060209b2335ca21
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-nano
openai.request.providerOpenAI
openai.response.modelgpt-5-nano-2026-08-07
process_id9245
runtime-id5df347061be14c23b6025bbcae96c5fc

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-concurrent-streams · response_model #
expected gpt-5-mini-2026-08-07, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
gpt-5-mini-2026-08-07
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject ddtrace --scenario openai/async-concurrent-streams
Rule
The name of the model that generated the response.
Exported spans (3)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens769
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1033
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens149
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1182
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1182
llmobs_parent_id2100475065505740057
llmobs_trace_id6b097bb1000000006d787a36bbfa1d42
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9245
runtime-id5df347061be14c23b6025bbcae96c5fc

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1747
_dd.llmobs.model_namegpt-5-nano-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens181
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1928
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-nano-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1928
llmobs_parent_id10619131209175521635
llmobs_trace_id6b097bb100000000b060209b2335ca21
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-nano
openai.request.providerOpenAI
openai.response.modelgpt-5-nano-2026-08-07
process_id9245
runtime-id5df347061be14c23b6025bbcae96c5fc

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-concurrent-streams · response_id #
expected chatcmpl-wt-par1, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
chatcmpl-wt-par1
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject ddtrace --scenario openai/async-concurrent-streams
Rule
The unique identifier of the completion.
Exported spans (3)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens769
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1033
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens149
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1182
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1182
llmobs_parent_id2100475065505740057
llmobs_trace_id6b097bb1000000006d787a36bbfa1d42
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9245
runtime-id5df347061be14c23b6025bbcae96c5fc

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1747
_dd.llmobs.model_namegpt-5-nano-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens181
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1928
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-nano-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1928
llmobs_parent_id10619131209175521635
llmobs_trace_id6b097bb100000000b060209b2335ca21
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-nano
openai.request.providerOpenAI
openai.response.modelgpt-5-nano-2026-08-07
process_id9245
runtime-id5df347061be14c23b6025bbcae96c5fc

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-concurrent-streams · finish_reasonsSilent stop #
expected stop, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
['stop']
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject ddtrace --scenario openai/async-concurrent-streams
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens769
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1033
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens149
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1182
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1182
llmobs_parent_id2100475065505740057
llmobs_trace_id6b097bb1000000006d787a36bbfa1d42
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id9245
runtime-id5df347061be14c23b6025bbcae96c5fc

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1747
_dd.llmobs.model_namegpt-5-nano-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens181
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1928
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-nano-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1928
llmobs_parent_id10619131209175521635
llmobs_trace_id6b097bb100000000b060209b2335ca21
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-nano
openai.request.providerOpenAI
openai.response.modelgpt-5-nano-2026-08-07
process_id9245
runtime-id5df347061be14c23b6025bbcae96c5fc

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/async-stream · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id2289404977087079528
llmobs_trace_id6b097a69000000002a3303014849e6d0
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5723
runtime-id932fde73e34f4011a36f6a977a306315

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-stream · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id2289404977087079528
llmobs_trace_id6b097a69000000002a3303014849e6d0
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5723
runtime-id932fde73e34f4011a36f6a977a306315

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-stream · response_id #
expected chatcmpl-wt-stream, reported nothing
Expected
chatcmpl-wt-stream
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id2289404977087079528
llmobs_trace_id6b097a69000000002a3303014849e6d0
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5723
runtime-id932fde73e34f4011a36f6a977a306315

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-stream · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id2289404977087079528
llmobs_trace_id6b097a69000000002a3303014849e6d0
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5723
runtime-id932fde73e34f4011a36f6a977a306315

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/async-stream-early-exit · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream-early-exit
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens9
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens2
gen_ai.usage.total_tokens9
llmobs_parent_id4964306953896391642
llmobs_trace_id6b097a71000000000c44521873952f0a
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5835
runtime-idefaff677fcb2404cb098ce28db9ac207

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-stream-early-exit · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens9
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens2
gen_ai.usage.total_tokens9
llmobs_parent_id4964306953896391642
llmobs_trace_id6b097a71000000000c44521873952f0a
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5835
runtime-idefaff677fcb2404cb098ce28db9ac207

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-stream-early-exit · response_id #
expected chatcmpl-wt-early, reported nothing
Expected
chatcmpl-wt-early
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens9
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens2
gen_ai.usage.total_tokens9
llmobs_parent_id4964306953896391642
llmobs_trace_id6b097a71000000000c44521873952f0a
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5835
runtime-idefaff677fcb2404cb098ce28db9ac207

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/async-stream-helper · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream-helper
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2137
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens313
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2137
gen_ai.usage.output_tokens313
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2450
llmobs_parent_id9071499537876759108
llmobs_trace_id6b097a81000000009fc0b3e2f80cb7cb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5981
runtime-id3ebbe121a7994e9a89cda4c8977ec89b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream-helper
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2137
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens313
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2137
gen_ai.usage.output_tokens313
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2450
llmobs_parent_id9071499537876759108
llmobs_trace_id6b097a81000000009fc0b3e2f80cb7cb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5981
runtime-id3ebbe121a7994e9a89cda4c8977ec89b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-stream-helper · response_id #
expected chatcmpl-wt-shelper, reported nothing
Expected
chatcmpl-wt-shelper
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream-helper
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2137
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens313
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2137
gen_ai.usage.output_tokens313
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2450
llmobs_parent_id9071499537876759108
llmobs_trace_id6b097a81000000009fc0b3e2f80cb7cb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5981
runtime-id3ebbe121a7994e9a89cda4c8977ec89b

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/async-stream-helper · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/async-stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2137
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens313
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2137
gen_ai.usage.output_tokens313
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2450
llmobs_parent_id9071499537876759108
llmobs_trace_id6b097a81000000009fc0b3e2f80cb7cb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5981
runtime-id3ebbe121a7994e9a89cda4c8977ec89b

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/basic · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/basic
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id14497935229578546940
llmobs_trace_id6b09794e00000000e2f3cc5a1edf7b14
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3117
runtime-ida7faf8a23aed4949a86c23083e9fce05

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/basic · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/basic
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id14497935229578546940
llmobs_trace_id6b09794e00000000e2f3cc5a1edf7b14
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3117
runtime-ida7faf8a23aed4949a86c23083e9fce05

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/basic · response_id #
expected chatcmpl-wt-basic, reported nothing
Expected
chatcmpl-wt-basic
Reproduce
spantruth run --subject ddtrace --scenario openai/basic
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id14497935229578546940
llmobs_trace_id6b09794e00000000e2f3cc5a1edf7b14
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3117
runtime-ida7faf8a23aed4949a86c23083e9fce05

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/basic · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id14497935229578546940
llmobs_trace_id6b09794e00000000e2f3cc5a1edf7b14
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3117
runtime-ida7faf8a23aed4949a86c23083e9fce05

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/cache-hit · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/cache-hit
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens4096
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5379
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens377
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens5756
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens4096
gen_ai.usage.input_tokens5379
gen_ai.usage.output_tokens377
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens5756
llmobs_parent_id1003839752845013987
llmobs_trace_id6b09796500000000423ca55ebdc75cae
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3316
runtime-id64c71efbd1c14bbf913647090ae91ea6

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/cache-hit · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/cache-hit
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens4096
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5379
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens377
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens5756
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens4096
gen_ai.usage.input_tokens5379
gen_ai.usage.output_tokens377
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens5756
llmobs_parent_id1003839752845013987
llmobs_trace_id6b09796500000000423ca55ebdc75cae
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3316
runtime-id64c71efbd1c14bbf913647090ae91ea6

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/cache-hit · response_id #
expected chatcmpl-wt-cache, reported nothing
Expected
chatcmpl-wt-cache
Reproduce
spantruth run --subject ddtrace --scenario openai/cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens4096
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5379
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens377
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens5756
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens4096
gen_ai.usage.input_tokens5379
gen_ai.usage.output_tokens377
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens5756
llmobs_parent_id1003839752845013987
llmobs_trace_id6b09796500000000423ca55ebdc75cae
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3316
runtime-id64c71efbd1c14bbf913647090ae91ea6

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/cache-hit · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens4096
_dd.llmobs.enabled1
_dd.llmobs.input_tokens5379
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens377
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens5756
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens4096
gen_ai.usage.input_tokens5379
gen_ai.usage.output_tokens377
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens5756
llmobs_parent_id1003839752845013987
llmobs_trace_id6b09796500000000423ca55ebdc75cae
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3316
runtime-id64c71efbd1c14bbf913647090ae91ea6

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/cache-write · request_model #
expected gpt-5.6-luna, reported gpt-5.6-luna-2026-10-14
Expected
gpt-5.6-luna
Reported
gpt-5.6-luna-2026-10-14
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/cache-write
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens2753
_dd.llmobs.cache_write_input_tokens3181
_dd.llmobs.enabled1
_dd.llmobs.input_tokens6619
_dd.llmobs.model_namegpt-5.6-luna-2026-10-14
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens401
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7020
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.cache_read_input_tokens2753
gen_ai.usage.cache_write_input_tokens3181
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens7020
llmobs_parent_id6157911525849830309
llmobs_trace_id6b097975000000002a912d4adbb36563
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5.6-luna
openai.request.providerOpenAI
openai.response.modelgpt-5.6-luna-2026-10-14
process_id3458
runtime-id41cbc5b688164b1a9134dc97402eacc2

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/cache-write · response_model #
expected gpt-5.6-luna-2026-10-14, reported nothing
Expected
gpt-5.6-luna-2026-10-14
Reproduce
spantruth run --subject ddtrace --scenario openai/cache-write
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens2753
_dd.llmobs.cache_write_input_tokens3181
_dd.llmobs.enabled1
_dd.llmobs.input_tokens6619
_dd.llmobs.model_namegpt-5.6-luna-2026-10-14
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens401
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7020
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.cache_read_input_tokens2753
gen_ai.usage.cache_write_input_tokens3181
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens7020
llmobs_parent_id6157911525849830309
llmobs_trace_id6b097975000000002a912d4adbb36563
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5.6-luna
openai.request.providerOpenAI
openai.response.modelgpt-5.6-luna-2026-10-14
process_id3458
runtime-id41cbc5b688164b1a9134dc97402eacc2

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/cache-write · response_id #
expected chatcmpl-wt-cwrite, reported nothing
Expected
chatcmpl-wt-cwrite
Reproduce
spantruth run --subject ddtrace --scenario openai/cache-write
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens2753
_dd.llmobs.cache_write_input_tokens3181
_dd.llmobs.enabled1
_dd.llmobs.input_tokens6619
_dd.llmobs.model_namegpt-5.6-luna-2026-10-14
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens401
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7020
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.cache_read_input_tokens2753
gen_ai.usage.cache_write_input_tokens3181
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens7020
llmobs_parent_id6157911525849830309
llmobs_trace_id6b097975000000002a912d4adbb36563
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5.6-luna
openai.request.providerOpenAI
openai.response.modelgpt-5.6-luna-2026-10-14
process_id3458
runtime-id41cbc5b688164b1a9134dc97402eacc2

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/cache-write · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/cache-write
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens2753
_dd.llmobs.cache_write_input_tokens3181
_dd.llmobs.enabled1
_dd.llmobs.input_tokens6619
_dd.llmobs.model_namegpt-5.6-luna-2026-10-14
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens401
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7020
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.cache_read_input_tokens2753
gen_ai.usage.cache_write_input_tokens3181
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens7020
llmobs_parent_id6157911525849830309
llmobs_trace_id6b097975000000002a912d4adbb36563
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5.6-luna
openai.request.providerOpenAI
openai.response.modelgpt-5.6-luna-2026-10-14
process_id3458
runtime-id41cbc5b688164b1a9134dc97402eacc2

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-extra-cache-fields · response_model #
expected deepseek-flash, reported nothing
Expected
deepseek-flash
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-extra-cache-fields
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1408
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1931
_dd.llmobs.model_namedeepseek-flash
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens397
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2328
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modeldeepseek-flash
gen_ai.usage.cache_read_input_tokens1408
gen_ai.usage.input_tokens1931
gen_ai.usage.output_tokens397
gen_ai.usage.total_tokens2328
llmobs_parent_id9219749083035892091
llmobs_trace_id6b097b9100000000245519552d85b00b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modeldeepseek-flash
openai.request.providerOpenAI
openai.response.modeldeepseek-flash
process_id9007
runtime-idacdd66beef194f94b33f1601daaaa2b6

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-extra-cache-fields · response_id #
expected 9f3c2a71-5b8e-4d0a-a6c4-2e17d8b0f5a3, reported nothing
Expected
9f3c2a71-5b8e-4d0a-a6c4-2e17d8b0f5a3
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-extra-cache-fields
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1408
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1931
_dd.llmobs.model_namedeepseek-flash
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens397
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2328
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modeldeepseek-flash
gen_ai.usage.cache_read_input_tokens1408
gen_ai.usage.input_tokens1931
gen_ai.usage.output_tokens397
gen_ai.usage.total_tokens2328
llmobs_parent_id9219749083035892091
llmobs_trace_id6b097b9100000000245519552d85b00b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modeldeepseek-flash
openai.request.providerOpenAI
openai.response.modeldeepseek-flash
process_id9007
runtime-idacdd66beef194f94b33f1601daaaa2b6

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-extra-cache-fields · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-extra-cache-fields
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1408
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1931
_dd.llmobs.model_namedeepseek-flash
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens397
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2328
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modeldeepseek-flash
gen_ai.usage.cache_read_input_tokens1408
gen_ai.usage.input_tokens1931
gen_ai.usage.output_tokens397
gen_ai.usage.total_tokens2328
llmobs_parent_id9219749083035892091
llmobs_trace_id6b097b9100000000245519552d85b00b
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modeldeepseek-flash
openai.request.providerOpenAI
openai.response.modeldeepseek-flash
process_id9007
runtime-idacdd66beef194f94b33f1601daaaa2b6

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/compat-extra-timing-fields · request_model #
expected llama-3.3-70b-versatile, reported openai/gpt-oss-20b
Expected
llama-3.3-70b-versatile
Reported
openai/gpt-oss-20b
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-extra-timing-fields
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens18
_dd.llmobs.model_nameopenai/gpt-oss-20b
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens556
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens574
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelopenai/gpt-oss-20b
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
gen_ai.usage.total_tokens574
llmobs_parent_id16935410008456337584
llmobs_trace_id6b097b9900000000e31892c867c9641d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelllama-3.3-70b-versatile
openai.request.providerOpenAI
openai.response.modelopenai/gpt-oss-20b
process_id9063
runtime-idbe153bcd512740bca4f8533739497194

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-extra-timing-fields · response_model #
expected openai/gpt-oss-20b, reported nothing
Expected
openai/gpt-oss-20b
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-extra-timing-fields
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens18
_dd.llmobs.model_nameopenai/gpt-oss-20b
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens556
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens574
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelopenai/gpt-oss-20b
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
gen_ai.usage.total_tokens574
llmobs_parent_id16935410008456337584
llmobs_trace_id6b097b9900000000e31892c867c9641d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelllama-3.3-70b-versatile
openai.request.providerOpenAI
openai.response.modelopenai/gpt-oss-20b
process_id9063
runtime-idbe153bcd512740bca4f8533739497194

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-extra-timing-fields · response_id #
expected chatcmpl-f51b2cd2-bef7-417e-964e-a08f0b513c22, reported nothing
Expected
chatcmpl-f51b2cd2-bef7-417e-964e-a08f0b513c22
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-extra-timing-fields
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens18
_dd.llmobs.model_nameopenai/gpt-oss-20b
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens556
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens574
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelopenai/gpt-oss-20b
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
gen_ai.usage.total_tokens574
llmobs_parent_id16935410008456337584
llmobs_trace_id6b097b9900000000e31892c867c9641d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelllama-3.3-70b-versatile
openai.request.providerOpenAI
openai.response.modelopenai/gpt-oss-20b
process_id9063
runtime-idbe153bcd512740bca4f8533739497194

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-extra-timing-fields · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-extra-timing-fields
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens18
_dd.llmobs.model_nameopenai/gpt-oss-20b
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens556
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens574
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelopenai/gpt-oss-20b
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
gen_ai.usage.total_tokens574
llmobs_parent_id16935410008456337584
llmobs_trace_id6b097b9900000000e31892c867c9641d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelllama-3.3-70b-versatile
openai.request.providerOpenAI
openai.response.modelopenai/gpt-oss-20b
process_id9063
runtime-idbe153bcd512740bca4f8533739497194

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/compat-no-details · request_model #
expected qwen3.5-27b, reported Qwen/Qwen3.5-27B-Instruct
Expected
qwen3.5-27b
Reported
Qwen/Qwen3.5-27B-Instruct
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-no-details
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1129
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens241
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1370
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1129
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens1370
llmobs_parent_id16091431175826975137
llmobs_trace_id6b097b620000000039bf424ac06ee34d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8434
runtime-id1434ab4f95be4a2aa053713a31ffcf3e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-no-details · response_model #
expected Qwen/Qwen3.5-27B-Instruct, reported nothing
Expected
Qwen/Qwen3.5-27B-Instruct
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-no-details
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1129
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens241
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1370
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1129
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens1370
llmobs_parent_id16091431175826975137
llmobs_trace_id6b097b620000000039bf424ac06ee34d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8434
runtime-id1434ab4f95be4a2aa053713a31ffcf3e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-no-details · response_id #
expected chatcmpl-wt-cnodet, reported nothing
Expected
chatcmpl-wt-cnodet
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-no-details
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1129
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens241
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1370
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1129
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens1370
llmobs_parent_id16091431175826975137
llmobs_trace_id6b097b620000000039bf424ac06ee34d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8434
runtime-id1434ab4f95be4a2aa053713a31ffcf3e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-no-details · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-no-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1129
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens241
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1370
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1129
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens1370
llmobs_parent_id16091431175826975137
llmobs_trace_id6b097b620000000039bf424ac06ee34d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8434
runtime-id1434ab4f95be4a2aa053713a31ffcf3e

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/compat-null-details · request_model #
expected qwen3.5-27b, reported Qwen/Qwen3.5-27B-Instruct
Expected
qwen3.5-27b
Reported
Qwen/Qwen3.5-27B-Instruct
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-null-details
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
llmobs_parent_id11825263790545464829
llmobs_trace_id6b097b6a00000000e15407083b5d7895
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8522
runtime-id405ccd2a7a3741bc87f11a4fdae8a749

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-null-details · response_model #
expected Qwen/Qwen3.5-27B-Instruct, reported nothing
Expected
Qwen/Qwen3.5-27B-Instruct
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-null-details
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
llmobs_parent_id11825263790545464829
llmobs_trace_id6b097b6a00000000e15407083b5d7895
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8522
runtime-id405ccd2a7a3741bc87f11a4fdae8a749

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-null-details · response_id #
expected chatcmpl-wt-cnull, reported nothing
Expected
chatcmpl-wt-cnull
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-null-details
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
llmobs_parent_id11825263790545464829
llmobs_trace_id6b097b6a00000000e15407083b5d7895
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8522
runtime-id405ccd2a7a3741bc87f11a4fdae8a749

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-null-details · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-null-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1213
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens277
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1490
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
llmobs_parent_id11825263790545464829
llmobs_trace_id6b097b6a00000000e15407083b5d7895
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8522
runtime-id405ccd2a7a3741bc87f11a4fdae8a749

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-partial-details · response_model #
expected qwen3.5:0.8b, reported nothing
Expected
qwen3.5:0.8b
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-partial-details
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens28
_dd.llmobs.enabled1
_dd.llmobs.input_tokens32
_dd.llmobs.model_nameqwen3.5:0.8b
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens16
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens48
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5:0.8b
gen_ai.usage.cache_read_input_tokens28
gen_ai.usage.input_tokens32
gen_ai.usage.output_tokens16
gen_ai.usage.total_tokens48
llmobs_parent_id2431482468596595062
llmobs_trace_id6b097b8900000000fa5fe90032dbef28
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5:0.8b
openai.request.providerOpenAI
openai.response.modelqwen3.5:0.8b
process_id8945
runtime-id5ab874449ed34993ba36797d2e917100

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-partial-details · response_id #
expected chatcmpl-54, reported nothing
Expected
chatcmpl-54
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-partial-details
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens28
_dd.llmobs.enabled1
_dd.llmobs.input_tokens32
_dd.llmobs.model_nameqwen3.5:0.8b
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens16
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens48
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5:0.8b
gen_ai.usage.cache_read_input_tokens28
gen_ai.usage.input_tokens32
gen_ai.usage.output_tokens16
gen_ai.usage.total_tokens48
llmobs_parent_id2431482468596595062
llmobs_trace_id6b097b8900000000fa5fe90032dbef28
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5:0.8b
openai.request.providerOpenAI
openai.response.modelqwen3.5:0.8b
process_id8945
runtime-id5ab874449ed34993ba36797d2e917100

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-partial-details · finish_reasonsSilent stop #
expected length, reported nothing
Expected
['length']
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-partial-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens28
_dd.llmobs.enabled1
_dd.llmobs.input_tokens32
_dd.llmobs.model_nameqwen3.5:0.8b
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens16
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens48
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5:0.8b
gen_ai.usage.cache_read_input_tokens28
gen_ai.usage.input_tokens32
gen_ai.usage.output_tokens16
gen_ai.usage.total_tokens48
llmobs_parent_id2431482468596595062
llmobs_trace_id6b097b8900000000fa5fe90032dbef28
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5:0.8b
openai.request.providerOpenAI
openai.response.modelqwen3.5:0.8b
process_id8945
runtime-id5ab874449ed34993ba36797d2e917100

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/compat-stream-no-details · request_model #
expected qwen3.5-27b, reported Qwen/Qwen3.5-27B-Instruct
Expected
qwen3.5-27b
Reported
Qwen/Qwen3.5-27B-Instruct
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-stream-no-details
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1361
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens293
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1654
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.total_tokens1654
llmobs_parent_id7523816809986344614
llmobs_trace_id6b097b720000000057116051df8308cb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8608
runtime-idc969bb6104084c6f96c2fb2ef11f52e8

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-stream-no-details · response_model #
expected Qwen/Qwen3.5-27B-Instruct, reported nothing
Expected
Qwen/Qwen3.5-27B-Instruct
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-stream-no-details
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1361
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens293
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1654
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.total_tokens1654
llmobs_parent_id7523816809986344614
llmobs_trace_id6b097b720000000057116051df8308cb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8608
runtime-idc969bb6104084c6f96c2fb2ef11f52e8

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-stream-no-details · response_id #
expected chatcmpl-wt-csnodet, reported nothing
Expected
chatcmpl-wt-csnodet
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-stream-no-details
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1361
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens293
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1654
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.total_tokens1654
llmobs_parent_id7523816809986344614
llmobs_trace_id6b097b720000000057116051df8308cb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8608
runtime-idc969bb6104084c6f96c2fb2ef11f52e8

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-stream-no-details · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-stream-no-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1361
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens293
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1654
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.total_tokens1654
llmobs_parent_id7523816809986344614
llmobs_trace_id6b097b720000000057116051df8308cb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8608
runtime-idc969bb6104084c6f96c2fb2ef11f52e8

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/compat-stream-usage-on-finish · request_model #
expected qwen3.5-27b, reported Qwen/Qwen3.5-27B-Instruct
Expected
qwen3.5-27b
Reported
Qwen/Qwen3.5-27B-Instruct
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-stream-usage-on-finish
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1063
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1489
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens331
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1820
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.cache_read_input_tokens1063
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1820
llmobs_parent_id10233541665676484421
llmobs_trace_id6b097b7a00000000affe96ee4b035858
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8736
runtime-idb76f899e8b2248f5bbb8c9478b3f9975

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-stream-usage-on-finish · response_model #
expected Qwen/Qwen3.5-27B-Instruct, reported nothing
Expected
Qwen/Qwen3.5-27B-Instruct
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-stream-usage-on-finish
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1063
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1489
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens331
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1820
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.cache_read_input_tokens1063
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1820
llmobs_parent_id10233541665676484421
llmobs_trace_id6b097b7a00000000affe96ee4b035858
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8736
runtime-idb76f899e8b2248f5bbb8c9478b3f9975

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-stream-usage-on-finish · response_id #
expected chatcmpl-wt-csfinish, reported nothing
Expected
chatcmpl-wt-csfinish
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-stream-usage-on-finish
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1063
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1489
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens331
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1820
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.cache_read_input_tokens1063
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1820
llmobs_parent_id10233541665676484421
llmobs_trace_id6b097b7a00000000affe96ee4b035858
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8736
runtime-idb76f899e8b2248f5bbb8c9478b3f9975

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/compat-stream-usage-on-finish · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/compat-stream-usage-on-finish
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens1063
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1489
_dd.llmobs.model_nameQwen/Qwen3.5-27B-Instruct
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens331
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1820
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.cache_read_input_tokens1063
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1820
llmobs_parent_id10233541665676484421
llmobs_trace_id6b097b7a00000000affe96ee4b035858
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelqwen3.5-27b
openai.request.providerOpenAI
openai.response.modelQwen/Qwen3.5-27B-Instruct
process_id8736
runtime-idb76f899e8b2248f5bbb8c9478b3f9975

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/content-off · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/content-off
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id6581671974925947
llmobs_trace_id6b097ab3000000008d55ce093c550403
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6402
runtime-id9a1b9be9e8e14ba18197b4aa69f693b8

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/content-off · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/content-off
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id6581671974925947
llmobs_trace_id6b097ab3000000008d55ce093c550403
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6402
runtime-id9a1b9be9e8e14ba18197b4aa69f693b8

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/content-off · response_id #
expected chatcmpl-wt-basic, reported nothing
Expected
chatcmpl-wt-basic
Reproduce
spantruth run --subject ddtrace --scenario openai/content-off
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id6581671974925947
llmobs_trace_id6b097ab3000000008d55ce093c550403
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6402
runtime-id9a1b9be9e8e14ba18197b4aa69f693b8

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/content-off · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id6581671974925947
llmobs_trace_id6b097ab3000000008d55ce093c550403
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6402
runtime-id9a1b9be9e8e14ba18197b4aa69f693b8

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/content-on · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/content-on
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id17220978239882020021
llmobs_trace_id6b097abb00000000d41c14cf7b711ccb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6466
runtime-idde496e010e544b14a55f740b9049cf21

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/content-on · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/content-on
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id17220978239882020021
llmobs_trace_id6b097abb00000000d41c14cf7b711ccb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6466
runtime-idde496e010e544b14a55f740b9049cf21

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/content-on · response_id #
expected chatcmpl-wt-basic, reported nothing
Expected
chatcmpl-wt-basic
Reproduce
spantruth run --subject ddtrace --scenario openai/content-on
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id17220978239882020021
llmobs_trace_id6b097abb00000000d41c14cf7b711ccb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6466
runtime-idde496e010e544b14a55f740b9049cf21

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/content-on · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1187
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens263
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1450
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1450
llmobs_parent_id17220978239882020021
llmobs_trace_id6b097abb00000000d41c14cf7b711ccb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6466
runtime-idde496e010e544b14a55f740b9049cf21

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/reasoning · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/reasoning
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1601
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2219
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3820
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.reasoning_output_tokens1792
gen_ai.usage.total_tokens3820
llmobs_parent_id10172963898095381040
llmobs_trace_id6b0979b30000000039842bb331b3e792
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id4093
runtime-idf84760b245a84c2799e4976272023ec7

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/reasoning · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/reasoning
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1601
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2219
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3820
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.reasoning_output_tokens1792
gen_ai.usage.total_tokens3820
llmobs_parent_id10172963898095381040
llmobs_trace_id6b0979b30000000039842bb331b3e792
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id4093
runtime-idf84760b245a84c2799e4976272023ec7

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/reasoning · response_id #
expected chatcmpl-wt-reason, reported nothing
Expected
chatcmpl-wt-reason
Reproduce
spantruth run --subject ddtrace --scenario openai/reasoning
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1601
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2219
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3820
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.reasoning_output_tokens1792
gen_ai.usage.total_tokens3820
llmobs_parent_id10172963898095381040
llmobs_trace_id6b0979b30000000039842bb331b3e792
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id4093
runtime-idf84760b245a84c2799e4976272023ec7

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/reasoning · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/reasoning
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1601
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2219
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens3820
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.reasoning_output_tokens1792
gen_ai.usage.total_tokens3820
llmobs_parent_id10172963898095381040
llmobs_trace_id6b0979b30000000039842bb331b3e792
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id4093
runtime-idf84760b245a84c2799e4976272023ec7

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/retry-429 · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/retry-429
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2477
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens367
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2844
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2844
llmobs_parent_id4026239391333607330
llmobs_trace_id6b0979a400000000a123d5be5d7dfe8f
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3885
runtime-id392a9e7a22cb4a4b83eb1df35c6b85a6

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/retry-429 · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/retry-429
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2477
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens367
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2844
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2844
llmobs_parent_id4026239391333607330
llmobs_trace_id6b0979a400000000a123d5be5d7dfe8f
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3885
runtime-id392a9e7a22cb4a4b83eb1df35c6b85a6

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/retry-429 · response_id #
expected chatcmpl-wt-retry, reported nothing
Expected
chatcmpl-wt-retry
Reproduce
spantruth run --subject ddtrace --scenario openai/retry-429
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2477
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens367
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2844
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2844
llmobs_parent_id4026239391333607330
llmobs_trace_id6b0979a400000000a123d5be5d7dfe8f
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3885
runtime-id392a9e7a22cb4a4b83eb1df35c6b85a6

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/retry-429 · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/retry-429
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2477
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens367
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2844
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2844
llmobs_parent_id4026239391333607330
llmobs_trace_id6b0979a400000000a123d5be5d7dfe8f
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3885
runtime-id392a9e7a22cb4a4b83eb1df35c6b85a6

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/stream
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id490878425182854010
llmobs_trace_id6b09795500000000bd776703996948eb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3182
runtime-idb2bc0576db8f47d78eeba0238dc1706a

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/stream
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id490878425182854010
llmobs_trace_id6b09795500000000bd776703996948eb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3182
runtime-idb2bc0576db8f47d78eeba0238dc1706a

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream · response_id #
expected chatcmpl-wt-stream, reported nothing
Expected
chatcmpl-wt-stream
Reproduce
spantruth run --subject ddtrace --scenario openai/stream
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id490878425182854010
llmobs_trace_id6b09795500000000bd776703996948eb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3182
runtime-idb2bc0576db8f47d78eeba0238dc1706a

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id490878425182854010
llmobs_trace_id6b09795500000000bd776703996948eb
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3182
runtime-idb2bc0576db8f47d78eeba0238dc1706a

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-cache-hit · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-cache-hit
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens6144
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens511
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7724
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens6144
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens7724
llmobs_parent_id8251170347950574057
llmobs_trace_id6b09796d00000000cd538988d63e05d9
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3381
runtime-idba8f85a8d09043c3b633b9bd426df121

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-cache-hit · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens6144
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens511
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7724
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens6144
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens7724
llmobs_parent_id8251170347950574057
llmobs_trace_id6b09796d00000000cd538988d63e05d9
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3381
runtime-idba8f85a8d09043c3b633b9bd426df121

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-cache-hit · response_id #
expected chatcmpl-wt-scache, reported nothing
Expected
chatcmpl-wt-scache
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens6144
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens511
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7724
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens6144
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens7724
llmobs_parent_id8251170347950574057
llmobs_trace_id6b09796d00000000cd538988d63e05d9
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3381
runtime-idba8f85a8d09043c3b633b9bd426df121

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-cache-hit · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens6144
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7213
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens511
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7724
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens6144
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens7724
llmobs_parent_id8251170347950574057
llmobs_trace_id6b09796d00000000cd538988d63e05d9
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3381
runtime-idba8f85a8d09043c3b633b9bd426df121

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-cache-write · request_model #
expected gpt-5.6-luna, reported gpt-5.6-luna-2026-10-14
Expected
gpt-5.6-luna
Reported
gpt-5.6-luna-2026-10-14
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-cache-write
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens3967
_dd.llmobs.cache_write_input_tokens3539
_dd.llmobs.enabled1
_dd.llmobs.input_tokens8237
_dd.llmobs.model_namegpt-5.6-luna-2026-10-14
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens457
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens8694
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.cache_read_input_tokens3967
gen_ai.usage.cache_write_input_tokens3539
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens8694
llmobs_parent_id15195008988493320038
llmobs_trace_id6b09797d00000000525548d2475a1e2d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5.6-luna
openai.request.providerOpenAI
openai.response.modelgpt-5.6-luna-2026-10-14
process_id3518
runtime-iddfdaf6f0c32a42b0a6751dbb4b029680

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-cache-write · response_model #
expected gpt-5.6-luna-2026-10-14, reported nothing
Expected
gpt-5.6-luna-2026-10-14
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-cache-write
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens3967
_dd.llmobs.cache_write_input_tokens3539
_dd.llmobs.enabled1
_dd.llmobs.input_tokens8237
_dd.llmobs.model_namegpt-5.6-luna-2026-10-14
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens457
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens8694
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.cache_read_input_tokens3967
gen_ai.usage.cache_write_input_tokens3539
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens8694
llmobs_parent_id15195008988493320038
llmobs_trace_id6b09797d00000000525548d2475a1e2d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5.6-luna
openai.request.providerOpenAI
openai.response.modelgpt-5.6-luna-2026-10-14
process_id3518
runtime-iddfdaf6f0c32a42b0a6751dbb4b029680

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-cache-write · response_id #
expected chatcmpl-wt-scwrite, reported nothing
Expected
chatcmpl-wt-scwrite
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-cache-write
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens3967
_dd.llmobs.cache_write_input_tokens3539
_dd.llmobs.enabled1
_dd.llmobs.input_tokens8237
_dd.llmobs.model_namegpt-5.6-luna-2026-10-14
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens457
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens8694
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.cache_read_input_tokens3967
gen_ai.usage.cache_write_input_tokens3539
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens8694
llmobs_parent_id15195008988493320038
llmobs_trace_id6b09797d00000000525548d2475a1e2d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5.6-luna
openai.request.providerOpenAI
openai.response.modelgpt-5.6-luna-2026-10-14
process_id3518
runtime-iddfdaf6f0c32a42b0a6751dbb4b029680

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-cache-write · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-cache-write
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens3967
_dd.llmobs.cache_write_input_tokens3539
_dd.llmobs.enabled1
_dd.llmobs.input_tokens8237
_dd.llmobs.model_namegpt-5.6-luna-2026-10-14
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens457
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens8694
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.cache_read_input_tokens3967
gen_ai.usage.cache_write_input_tokens3539
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens8694
llmobs_parent_id15195008988493320038
llmobs_trace_id6b09797d00000000525548d2475a1e2d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5.6-luna
openai.request.providerOpenAI
openai.response.modelgpt-5.6-luna-2026-10-14
process_id3518
runtime-iddfdaf6f0c32a42b0a6751dbb4b029680

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-content-off · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-content-off
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id1565299802555226705
llmobs_trace_id6b097ac3000000001a73dbc005dcf9a5
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6520
runtime-id246710b479d04dfca2038b0c779c31d1

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-content-off · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-content-off
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id1565299802555226705
llmobs_trace_id6b097ac3000000001a73dbc005dcf9a5
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6520
runtime-id246710b479d04dfca2038b0c779c31d1

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-content-off · response_id #
expected chatcmpl-wt-stream, reported nothing
Expected
chatcmpl-wt-stream
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-content-off
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id1565299802555226705
llmobs_trace_id6b097ac3000000001a73dbc005dcf9a5
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6520
runtime-id246710b479d04dfca2038b0c779c31d1

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-content-off · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id1565299802555226705
llmobs_trace_id6b097ac3000000001a73dbc005dcf9a5
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6520
runtime-id246710b479d04dfca2038b0c779c31d1

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-content-on · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-content-on
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id1878199342749886684
llmobs_trace_id6b097acb00000000508d639fb6f369b8
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6593
runtime-id866ec57450e84419b2f0109f541552e1

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-content-on · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-content-on
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id1878199342749886684
llmobs_trace_id6b097acb00000000508d639fb6f369b8
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6593
runtime-id866ec57450e84419b2f0109f541552e1

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-content-on · response_id #
expected chatcmpl-wt-stream, reported nothing
Expected
chatcmpl-wt-stream
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-content-on
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id1878199342749886684
llmobs_trace_id6b097acb00000000508d639fb6f369b8
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6593
runtime-id866ec57450e84419b2f0109f541552e1

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-content-on · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2311
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens419
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens2730
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens2730
llmobs_parent_id1878199342749886684
llmobs_trace_id6b097acb00000000508d639fb6f369b8
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id6593
runtime-id866ec57450e84419b2f0109f541552e1

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-early-exit · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-early-exit
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens9
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens2
gen_ai.usage.total_tokens9
llmobs_parent_id10117118494812088628
llmobs_trace_id6b09795d00000000223db12870da0542
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3246
runtime-idd91c261896bf4f1c9877230c9cc8671e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-early-exit · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens9
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens2
gen_ai.usage.total_tokens9
llmobs_parent_id10117118494812088628
llmobs_trace_id6b09795d00000000223db12870da0542
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3246
runtime-idd91c261896bf4f1c9877230c9cc8671e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-early-exit · response_id #
expected chatcmpl-wt-early, reported nothing
Expected
chatcmpl-wt-early
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens9
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens2
gen_ai.usage.total_tokens9
llmobs_parent_id10117118494812088628
llmobs_trace_id6b09795d00000000223db12870da0542
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3246
runtime-idd91c261896bf4f1c9877230c9cc8671e

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-early-exit-with · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-early-exit-with
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens9
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens2
gen_ai.usage.total_tokens9
llmobs_parent_id4800658831817993701
llmobs_trace_id6b097a5100000000ceaaa43fdc217d03
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5461
runtime-idd3d517a09c2c459e9702e054df01db5e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-early-exit-with · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-early-exit-with
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens9
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens2
gen_ai.usage.total_tokens9
llmobs_parent_id4800658831817993701
llmobs_trace_id6b097a5100000000ceaaa43fdc217d03
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5461
runtime-idd3d517a09c2c459e9702e054df01db5e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-early-exit-with · response_id #
expected chatcmpl-wt-early, reported nothing
Expected
chatcmpl-wt-early
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-early-exit-with
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens9
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens2
gen_ai.usage.total_tokens9
llmobs_parent_id4800658831817993701
llmobs_trace_id6b097a5100000000ceaaa43fdc217d03
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id5461
runtime-idd3d517a09c2c459e9702e054df01db5e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Cost
$0.00116 on the wire, $1.75e-06 from the spans (-99.8%), at list price.
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-helper
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens0
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens0
gen_ai.usage.total_tokens7
llmobs_parent_id12507289306553927833
llmobs_trace_id6b0979c300000000f4d5dca37404bf01
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
process_id4229
runtime-idf6ce3f7fa1bc4938ba0a41e26f352074

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-helper · response_id #
expected chatcmpl-wt-shelper, reported nothing
Expected
chatcmpl-wt-shelper
Cost
$0.00116 on the wire, $1.75e-06 from the spans (-99.8%), at list price.
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-helper
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens0
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens0
gen_ai.usage.total_tokens7
llmobs_parent_id12507289306553927833
llmobs_trace_id6b0979c300000000f4d5dca37404bf01
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
process_id4229
runtime-idf6ce3f7fa1bc4938ba0a41e26f352074

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-helper · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Cost
$0.00116 on the wire, $1.75e-06 from the spans (-99.8%), at list price.
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens0
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens0
gen_ai.usage.total_tokens7
llmobs_parent_id12507289306553927833
llmobs_trace_id6b0979c300000000f4d5dca37404bf01
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
process_id4229
runtime-idf6ce3f7fa1bc4938ba0a41e26f352074

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-helper · input_tokensVanishing tokens #
expected 2137, reported 7
Expected
2137
Reported
7
Read from
gen_ai.usage.input_tokens
Cost
$0.00116 on the wire, $1.75e-06 from the spans (-99.8%), at list price.
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-helper
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens0
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens0
gen_ai.usage.total_tokens7
llmobs_parent_id12507289306553927833
llmobs_trace_id6b0979c300000000f4d5dca37404bf01
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
process_id4229
runtime-idf6ce3f7fa1bc4938ba0a41e26f352074

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-helper · output_tokensVanishing tokens #
expected 313, reported 0
Expected
313
Reported
0
Read from
gen_ai.usage.output_tokens
Cost
$0.00116 on the wire, $1.75e-06 from the spans (-99.8%), at list price.
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-helper
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens0
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens7
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens0
gen_ai.usage.total_tokens7
llmobs_parent_id12507289306553927833
llmobs_trace_id6b0979c300000000f4d5dca37404bf01
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
process_id4229
runtime-idf6ce3f7fa1bc4938ba0a41e26f352074

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-no-usage · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-no-usage
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens7
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens14
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens14
llmobs_parent_id8139018341084117939
llmobs_trace_id6b09798500000000ab51e0c1a309f556
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3599
runtime-id953bfdd7db274866aef83fe58016078e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-no-usage · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-no-usage
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens7
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens14
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens14
llmobs_parent_id8139018341084117939
llmobs_trace_id6b09798500000000ab51e0c1a309f556
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3599
runtime-id953bfdd7db274866aef83fe58016078e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-no-usage · response_id #
expected chatcmpl-wt-nousage, reported nothing
Expected
chatcmpl-wt-nousage
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-no-usage
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens7
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens14
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens14
llmobs_parent_id8139018341084117939
llmobs_trace_id6b09798500000000ab51e0c1a309f556
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3599
runtime-id953bfdd7db274866aef83fe58016078e

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-no-usage · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-no-usage
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens7
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens14
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens14
llmobs_parent_id8139018341084117939
llmobs_trace_id6b09798500000000ab51e0c1a309f556
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3599
runtime-id953bfdd7db274866aef83fe58016078e

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-no-usage · input_tokensPhantom tokens #
expected nothing, reported 7: estimated: the stream carried no usage
Reported
7
Read from
gen_ai.usage.input_tokens
Note
estimated: the stream carried no usage
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-no-usage
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens7
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens14
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens14
llmobs_parent_id8139018341084117939
llmobs_trace_id6b09798500000000ab51e0c1a309f556
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3599
runtime-id953bfdd7db274866aef83fe58016078e

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-no-usage · output_tokensPhantom tokens #
expected nothing, reported 7: estimated: the stream carried no usage
Reported
7
Read from
gen_ai.usage.output_tokens
Note
estimated: the stream carried no usage
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-no-usage
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.enabled1
_dd.llmobs.input_tokens7
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens7
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens14
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens14
llmobs_parent_id8139018341084117939
llmobs_trace_id6b09798500000000ab51e0c1a309f556
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3599
runtime-id953bfdd7db274866aef83fe58016078e

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-reasoning · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-reasoning
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2089
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2459
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens4548
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.reasoning_output_tokens1931
gen_ai.usage.total_tokens4548
llmobs_parent_id10580170714838955194
llmobs_trace_id6b0979bb0000000014e047d02a735c4c
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id4160
runtime-idf35c6ca1aca24d77ac65b88867be9a00

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-reasoning · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-reasoning
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2089
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2459
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens4548
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.reasoning_output_tokens1931
gen_ai.usage.total_tokens4548
llmobs_parent_id10580170714838955194
llmobs_trace_id6b0979bb0000000014e047d02a735c4c
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id4160
runtime-idf35c6ca1aca24d77ac65b88867be9a00

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-reasoning · response_id #
expected chatcmpl-wt-sreason, reported nothing
Expected
chatcmpl-wt-sreason
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-reasoning
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2089
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2459
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens4548
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.reasoning_output_tokens1931
gen_ai.usage.total_tokens4548
llmobs_parent_id10580170714838955194
llmobs_trace_id6b0979bb0000000014e047d02a735c4c
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id4160
runtime-idf35c6ca1aca24d77ac65b88867be9a00

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-reasoning · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-reasoning
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens2089
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens2459
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens4548
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.reasoning_output_tokens1931
gen_ai.usage.total_tokens4548
llmobs_parent_id10580170714838955194
llmobs_trace_id6b0979bb0000000014e047d02a735c4c
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id4160
runtime-idf35c6ca1aca24d77ac65b88867be9a00

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/stream-tool-call · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-tool-call
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1553
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens173
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1726
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1726
llmobs_parent_id4476315281796404532
llmobs_trace_id6b09799400000000439f26b98e04a080
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3735
runtime-id94108501b8b341e388c205d320756a96

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-tool-call · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-tool-call
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1553
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens173
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1726
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1726
llmobs_parent_id4476315281796404532
llmobs_trace_id6b09799400000000439f26b98e04a080
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3735
runtime-id94108501b8b341e388c205d320756a96

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-tool-call · response_id #
expected chatcmpl-wt-stools, reported nothing
Expected
chatcmpl-wt-stools
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-tool-call
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1553
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens173
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1726
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1726
llmobs_parent_id4476315281796404532
llmobs_trace_id6b09799400000000439f26b98e04a080
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3735
runtime-id94108501b8b341e388c205d320756a96

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/stream-tool-call · finish_reasonsSilent stop #
expected tool_calls, reported nothing
Expected
['tool_calls']
Reproduce
spantruth run --subject ddtrace --scenario openai/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens1553
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens173
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1726
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1726
llmobs_parent_id4476315281796404532
llmobs_trace_id6b09799400000000439f26b98e04a080
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3735
runtime-id94108501b8b341e388c205d320756a96

spantruth.scenario spantruth.driver, status UNSET

wrong ddtrace · openai/tool-call · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject ddtrace --scenario openai/tool-call
Rule
The model name the request asked for.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens931
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens88
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1019
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1019
llmobs_parent_id16651844684240018181
llmobs_trace_id6b09798c000000006c5e0ed12b2eef51
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3660
runtime-id610af5cc2af14774809c5efba8070248

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/tool-call · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Reproduce
spantruth run --subject ddtrace --scenario openai/tool-call
Rule
The name of the model that generated the response.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens931
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens88
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1019
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1019
llmobs_parent_id16651844684240018181
llmobs_trace_id6b09798c000000006c5e0ed12b2eef51
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3660
runtime-id610af5cc2af14774809c5efba8070248

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/tool-call · response_id #
expected chatcmpl-wt-tools, reported nothing
Expected
chatcmpl-wt-tools
Reproduce
spantruth run --subject ddtrace --scenario openai/tool-call
Rule
The unique identifier of the completion.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens931
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens88
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1019
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1019
llmobs_parent_id16651844684240018181
llmobs_trace_id6b09798c000000006c5e0ed12b2eef51
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3660
runtime-id610af5cc2af14774809c5efba8070248

spantruth.scenario spantruth.driver, status UNSET

missing ddtrace · openai/tool-call · finish_reasonsSilent stop #
expected tool_calls, reported nothing
Expected
['tool_calls']
Reproduce
spantruth run --subject ddtrace --scenario openai/tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.request ddtrace.adapter, status UNSET

_dd.llmobs.artificial_gen_ai_tagstrue
_dd.llmobs.cache_read_input_tokens0
_dd.llmobs.enabled1
_dd.llmobs.input_tokens931
_dd.llmobs.model_namegpt-5-mini-2026-08-07
_dd.llmobs.model_provideropenai
_dd.llmobs.output_tokens88
_dd.llmobs.span_kindllm
_dd.llmobs.total_tokens1019
_dd.measured1
_dd.svc_srcm
componentopenai
gen_ai.application.namespantruth
gen_ai.operation.namellm
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read_input_tokens0
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.reasoning_output_tokens0
gen_ai.usage.total_tokens1019
llmobs_parent_id16651844684240018181
llmobs_trace_id6b09798c000000006c5e0ed12b2eef51
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
openai.response.modelgpt-5-mini-2026-08-07
process_id3660
runtime-id610af5cc2af14774809c5efba8070248

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openinference · anthropic/async-stream · input_tokensVanishing tokens #
expected 2311, reported 0
Expected
2311
Reported
0
Read from
llm.token_count.prompt
Cost
$0.00881 on the wire, $0.00419 from the spans (-52.5%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/async-stream
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonend_turn
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion419
llm.token_count.prompt0
llm.token_count.total419
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital of France is Paris.", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "stop_reason": "end_turn", "stop_sequence": null, "finish_reason": "end_turn", "normalized_finish_reason": "stop", "finish_state": "complete"}, "type": "AIMessageChunk", "id": "lc_run--01a21d05-c619-7072-8908-b811d1c0772d", "usage_metadata": {"input_tokens": 0, "output_tokens": 419, "total_tokens": 419, "input_token_details": {}}, "chunk_position": "last", "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openinference · anthropic/async-stream-early-exit · status.unsetFalse alarm #
expected UNSET, reported ERROR: 1 span(s) set status to Error on a successful operation
Expected
UNSET
Reported
ERROR
Note
1 span(s) set status to Error on a successful operation
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/async-stream-early-exit
Rule
Span Status Code MUST be left unset if the instrumented operation has ended without any errors.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status ERROR

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic"}, "type": "AIMessageChunk", "id": "lc_run--01a21d05-d98c-74b2-b3f6-108b5ac6fac0", "tool_calls": [], "invalid_tool_calls": []}}}], []], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openinference · anthropic/async-stream-early-exit · input_tokensVanishing tokens #
expected 1913, reported nothing
Expected
1913
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/async-stream-early-exit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status ERROR

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic"}, "type": "AIMessageChunk", "id": "lc_run--01a21d05-d98c-74b2-b3f6-108b5ac6fac0", "tool_calls": [], "invalid_tool_calls": []}}}], []], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openinference · anthropic/stream · input_tokensVanishing tokens #
expected 2311, reported 0
Expected
2311
Reported
0
Read from
llm.token_count.prompt
Cost
$0.00881 on the wire, $0.00419 from the spans (-52.5%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonend_turn
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion419
llm.token_count.prompt0
llm.token_count.total419
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital of France is Paris.", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "stop_reason": "end_turn", "stop_sequence": null, "finish_reason": "end_turn", "normalized_finish_reason": "stop", "finish_state": "complete"}, "type": "AIMessageChunk", "id": "lc_run--01a21d04-4a6e-740d-b5bf-1236effea729", "usage_metadata": {"input_tokens": 0, "output_tokens": 419, "total_tokens": 419, "input_token_details": {}}, "chunk_position": "last", "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openinference · anthropic/stream-cache-1h · input_tokensVanishing tokens #
expected 7160, reported 0
Expected
7160
Reported
0
Read from
llm.token_count.prompt
Cost
$0.0175 on the wire, $0.00523 from the spans (-70.1%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream-cache-1h
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonend_turn
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion523
llm.token_count.prompt0
llm.token_count.total523
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital of France is Paris.", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "stop_reason": "end_turn", "stop_sequence": null, "finish_reason": "end_turn", "normalized_finish_reason": "stop", "finish_state": "complete"}, "type": "AIMessageChunk", "id": "lc_run--01a21d04-c3ac-71ec-b18f-ff08b672617d", "usage_metadata": {"input_tokens": 0, "output_tokens": 523, "total_tokens": 523, "input_token_details": {}}, "chunk_position": "last", "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openinference · anthropic/stream-cache-1h · cache_read_tokensCache-blind tokens #
expected 3217, reported nothing
Expected
3217
Cost
$0.0175 on the wire, $0.00523 from the spans (-70.1%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream-cache-1h
Rule
Input tokens read from the provider cache.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonend_turn
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion523
llm.token_count.prompt0
llm.token_count.total523
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital of France is Paris.", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "stop_reason": "end_turn", "stop_sequence": null, "finish_reason": "end_turn", "normalized_finish_reason": "stop", "finish_state": "complete"}, "type": "AIMessageChunk", "id": "lc_run--01a21d04-c3ac-71ec-b18f-ff08b672617d", "usage_metadata": {"input_tokens": 0, "output_tokens": 523, "total_tokens": 523, "input_token_details": {}}, "chunk_position": "last", "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openinference · anthropic/stream-cache-1h · cache_write_tokensCache-blind tokens #
expected 2492, reported nothing
Expected
2492
Cost
$0.0175 on the wire, $0.00523 from the spans (-70.1%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream-cache-1h
Rule
Input tokens written to the provider cache.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonend_turn
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion523
llm.token_count.prompt0
llm.token_count.total523
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital of France is Paris.", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "stop_reason": "end_turn", "stop_sequence": null, "finish_reason": "end_turn", "normalized_finish_reason": "stop", "finish_state": "complete"}, "type": "AIMessageChunk", "id": "lc_run--01a21d04-c3ac-71ec-b18f-ff08b672617d", "usage_metadata": {"input_tokens": 0, "output_tokens": 523, "total_tokens": 523, "input_token_details": {}}, "chunk_position": "last", "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openinference · anthropic/stream-cache-hit · input_tokensVanishing tokens #
expected 8424, reported 0
Expected
8424
Reported
0
Read from
llm.token_count.prompt
Cost
$0.0107 on the wire, $0.00511 from the spans (-52%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream-cache-hit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonend_turn
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion511
llm.token_count.prompt0
llm.token_count.total511
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital of France is Paris.", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "stop_reason": "end_turn", "stop_sequence": null, "finish_reason": "end_turn", "normalized_finish_reason": "stop", "finish_state": "complete"}, "type": "AIMessageChunk", "id": "lc_run--01a21d04-895d-7020-8a13-81fbfffbb9cc", "usage_metadata": {"input_tokens": 0, "output_tokens": 511, "total_tokens": 511, "input_token_details": {}}, "chunk_position": "last", "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openinference · anthropic/stream-cache-hit · cache_read_tokensCache-blind tokens #
expected 6144, reported nothing
Expected
6144
Cost
$0.0107 on the wire, $0.00511 from the spans (-52%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream-cache-hit
Rule
Input tokens read from the provider cache.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonend_turn
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion511
llm.token_count.prompt0
llm.token_count.total511
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital of France is Paris.", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "stop_reason": "end_turn", "stop_sequence": null, "finish_reason": "end_turn", "normalized_finish_reason": "stop", "finish_state": "complete"}, "type": "AIMessageChunk", "id": "lc_run--01a21d04-895d-7020-8a13-81fbfffbb9cc", "usage_metadata": {"input_tokens": 0, "output_tokens": 511, "total_tokens": 511, "input_token_details": {}}, "chunk_position": "last", "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openinference · anthropic/stream-cache-hit · cache_write_tokensCache-blind tokens #
expected 737, reported nothing
Expected
737
Cost
$0.0107 on the wire, $0.00511 from the spans (-52%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream-cache-hit
Rule
Input tokens written to the provider cache.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonend_turn
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion511
llm.token_count.prompt0
llm.token_count.total511
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital of France is Paris.", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "stop_reason": "end_turn", "stop_sequence": null, "finish_reason": "end_turn", "normalized_finish_reason": "stop", "finish_state": "complete"}, "type": "AIMessageChunk", "id": "lc_run--01a21d04-895d-7020-8a13-81fbfffbb9cc", "usage_metadata": {"input_tokens": 0, "output_tokens": 511, "total_tokens": 511, "input_token_details": {}}, "chunk_position": "last", "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openinference · anthropic/stream-early-exit · status.unsetFalse alarm #
expected UNSET, reported ERROR: 1 span(s) set status to Error on a successful operation
Expected
UNSET
Reported
ERROR
Note
1 span(s) set status to Error on a successful operation
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream-early-exit
Rule
Span Status Code MUST be left unset if the instrumented operation has ended without any errors.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status ERROR

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic"}, "type": "AIMessageChunk", "id": "lc_run--01a21d04-5e65-7467-b944-814cc8562a65", "tool_calls": [], "invalid_tool_calls": []}}}], []], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openinference · anthropic/stream-early-exit · input_tokensVanishing tokens #
expected 1913, reported nothing
Expected
1913
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream-early-exit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status ERROR

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contentThe capital
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital", "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic"}, "type": "AIMessageChunk", "id": "lc_run--01a21d04-5e65-7467-b944-814cc8562a65", "tool_calls": [], "invalid_tool_calls": []}}}], []], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openinference · anthropic/stream-thinking · input_tokensVanishing tokens #
expected 1831, reported 0
Expected
1831
Reported
0
Read from
llm.token_count.prompt
Cost
$0.0181 on the wire, $0.0144 from the spans (-20.3%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream-thinking
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonend_turn
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.contents.0.message_content.text
llm.output_messages.0.message.contents.2.message_content.textThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion1439
llm.token_count.completion_details.reasoning1103
llm.token_count.prompt0
llm.token_count.total1439
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": ["", {"thinking": "Let me think about the capital of France. The capital is Paris.", "type": "thinking", "index": 0, "signature": "dGVzdC1zaWduYXR1cmU="}, "The capital of France is Paris."], "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "stop_reason": "end_turn", "stop_sequence": null, "finish_reason": "end_turn", "normalized_finish_reason": "stop", "finish_state": "complete"}, "type": "AIMessageChunk", "id": "lc_run--01a21d05-62fb-7167-a5d3-96cfd313f304", "usage_metadata": {"input_tokens": 0, "output_tokens": 1439, "total_tokens": 1439, "input_token_details": {}, "output_token_details": {"reasoning": 1103}}, "chunk_position": "last", "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openinference · anthropic/stream-tool-call · input_tokensVanishing tokens #
expected 1619, reported 0
Expected
1619
Reported
0
Read from
llm.token_count.prompt
Cost
$0.00521 on the wire, $0.00197 from the spans (-62.2%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/stream-tool-call
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasontool_use
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null, "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
llm.model_nameclaude-sonnet-5-5
llm.output_messages.0.message.roleassistant
llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments{"city": "Paris"}
llm.output_messages.0.message.tool_calls.0.tool_call.function.nameget_weather
llm.output_messages.0.message.tool_calls.0.tool_call.idtoolu_wt_1
llm.output_messages.0.message.tool_calls.1.tool_call.function.arguments{"zone": "Europe/Paris"}
llm.output_messages.0.message.tool_calls.1.tool_call.function.nameget_time
llm.output_messages.0.message.tool_calls.1.tool_call.idtoolu_wt_2
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion197
llm.token_count.prompt0
llm.token_count.total197
llm.tools.0.tool.json_schema{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}
llm.tools.1.tool.json_schema{"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": [{"id": "toolu_wt_1", "input": {}, "name": "get_weather", "type": "tool_use", "toolset_name": null, "index": 0, "partial_json": "{\"city\": \"Paris\"}"}, {"id": "toolu_wt_2", "input": {}, "name": "get_time", "type": "tool_use", "toolset_name": null, "index": 1, "partial_json": "{\"zone\": \"Europe/Paris\"}"}], "response_metadata": {"model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "stop_reason": "tool_use", "stop_sequence": null, "finish_reason": "tool_use", "normalized_finish_reason": "tool_call", "finish_state": "complete"}, "type": "AIMessageChunk", "id": "lc_run--01a21d05-009d-73e8-99cb-3af2361139e7", "tool_calls": [{"name": "get_weather", "args": {"city": "Paris"}, "id": "toolu_wt_1", "type": "tool_call"}, {"name": "get_time", "args": {"zone": "Europe/Paris"}, "id": "toolu_wt_2", "type": "tool_call"}], "usage_metadata": {"input_tokens": 0, "output_tokens": 197, "total_tokens": 197, "input_token_details": {}}, "tool_call_chunks": [{"name": "get_weather", "args": "{\"city\": \"Paris\"}", "id": "toolu_wt_1", "index": 0, "type": "tool_call_chunk"}, {"name": "get_time", "args": "{\"zone\": \"Europe/Paris\"}", "id": "toolu_wt_2", "index": 1, "type": "tool_call_chunk"}], "chunk_position": "last", "invalid_tool_calls": []}}}]], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openinference · anthropic/thinking · reasoning_tokensHidden reasoning #
expected 947, reported nothing
Expected
947
Reproduce
spantruth run --subject langchain-openinference --scenario anthropic/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

ChatAnthropic openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonend_turn
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "claude-sonnet-5-5", "max_tokens": 1024, "temperature": null, "top_k": null, "top_p": null, "model_kwargs": {}, "streaming": false, "max_retries": 0, "default_request_timeout": 10.0, "thinking": null, "output_config": null, "_type": "anthropic-chat", "stop": null}
llm.model_nameclaude-sonnet-5-5-20260915
llm.output_messages.0.message.contents.1.message_content.textThe capital of France is Paris.
llm.output_messages.0.message.contents.1.message_content.typetext
llm.output_messages.0.message.roleassistant
llm.provideranthropic
llm.systemanthropic
llm.token_count.completion1273
llm.token_count.prompt1627
metadata{"ls_provider": "anthropic", "ls_model_name": "claude-sonnet-5-5", "ls_model_type": "chat", "ls_temperature": null, "ls_max_tokens": 1024, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": null, "type": "ChatGeneration", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessage"], "kwargs": {"content": [{"signature": "dGVzdC1zaWduYXR1cmU=", "thinking": "Let me think about the capital of France. The capital of France is Paris.", "type": "thinking"}, {"text": "The capital of France is Paris.", "type": "text"}], "response_metadata": {"id": "msg_wt_thinking", "container": null, "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 1627, "output_tokens": 1273, "output_tokens_details": {"thinking_tokens": 947}, "server_tool_use": null, "service_tier": null, "speed": null}, "model_name": "claude-sonnet-5-5-20260915", "model_provider": "anthropic", "finish_reason": "end_turn", "normalized_finish_reason": "stop", "finish_state": "complete"}, "type": "ai", "id": "lc_run--01a21d05-4f97-74e3-b982-0b5bfa552120-0", "usage_metadata": {"input_tokens": 1627, "output_tokens": 1273, "total_tokens": 2900, "input_token_details": {"cache_read": 0, "cache_creation": 0}, "output_token_details": {"reasoning": 947}}, "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": {"id": "msg_wt_thinking", "container": null, "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 1627, "output_tokens": 1273, "output_tokens_details": {"thinking_tokens": 947}, "server_tool_use": null, "service_tier": null, "speed": null}, "model_name": "claude-sonnet-5-5-20260915"}, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openinference · openai/async-stream-early-exit · status.unsetFalse alarm #
expected UNSET, reported ERROR: 1 span(s) set status to Error on a successful operation
Expected
UNSET
Reported
ERROR
Note
1 span(s) set status to Error on a successful operation
Reproduce
spantruth run --subject langchain-openinference --scenario openai/async-stream-early-exit
Rule
Span Status Code MUST be left unset if the instrumented operation has ended without any errors.
Exported spans (2)

ChatOpenAI openinference.instrumentation.langchain, status ERROR

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "gpt-5-mini", "model_name": "gpt-5-mini", "stream": false, "_type": "openai-chat", "stop": null}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital
llm.output_messages.0.message.roleassistant
llm.provideropenai
llm.systemopenai
metadata{"ls_provider": "openai", "ls_model_name": "gpt-5-mini", "ls_model_type": "chat", "ls_temperature": null, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital", "response_metadata": {"model_provider": "openai"}, "type": "AIMessageChunk", "id": "lc_run--01a21d05-9229-7404-b622-9776e3ad2e90", "tool_calls": [], "invalid_tool_calls": []}}}], []], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openinference · openai/cache-write · cache_write_tokensCache-blind tokens #
expected 3181, reported nothing
Expected
3181
Cost
$0.00147 on the wire, $0.00131 from the spans (-10.8%), at list price.
Reproduce
spantruth run --subject langchain-openinference --scenario openai/cache-write
Rule
Input tokens written to the provider cache.
Exported spans (2)

ChatOpenAI openinference.instrumentation.langchain, status OK

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.finish_reasonstop
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "gpt-5.6-luna", "model_name": "gpt-5.6-luna", "stream": false, "_type": "openai-chat", "stop": null}
llm.model_namegpt-5.6-luna-2026-10-14
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.provideropenai
llm.systemopenai
llm.token_count.completion401
llm.token_count.completion_details.audio0
llm.token_count.completion_details.reasoning0
llm.token_count.prompt6619
llm.token_count.prompt_details.audio0
llm.token_count.prompt_details.cache_read2753
llm.token_count.total7020
metadata{"ls_provider": "openai", "ls_model_name": "gpt-5.6-luna", "ls_model_type": "chat", "ls_temperature": null, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital of France is Paris.", "generation_info": {"finish_reason": "stop", "logprobs": null, "normalized_finish_reason": "stop"}, "type": "ChatGeneration", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessage"], "kwargs": {"content": "The capital of France is Paris.", "additional_kwargs": {"refusal": null}, "response_metadata": {"token_usage": {"completion_tokens": 401, "prompt_tokens": 6619, "total_tokens": 7020, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": 3181, "cached_tokens": 2753, "image_tokens": null, "text_tokens": null}}, "model_provider": "openai", "model_name": "gpt-5.6-luna-2026-10-14", "system_fingerprint": "fp_wt0001", "id": "chatcmpl-wt-cwrite", "service_tier": "default", "finish_reason": "stop", "logprobs": null, "normalized_finish_reason": "stop"}, "type": "ai", "id": "lc_run--01a21d03-a345-73df-b84d-79dfa2de8ca7-0", "usage_metadata": {"input_tokens": 6619, "output_tokens": 401, "total_tokens": 7020, "input_token_details": {"audio": 0, "cache_read": 2753, "cache_creation": 3181}, "output_token_details": {"audio": 0, "reasoning": 0}}, "tool_calls": [], "invalid_tool_calls": []}}}]], "llm_output": {"token_usage": {"completion_tokens": 401, "prompt_tokens": 6619, "total_tokens": 7020, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": 3181, "cached_tokens": 2753, "image_tokens": null, "text_tokens": null}}, "model_provider": "openai", "model_name": "gpt-5.6-luna-2026-10-14", "system_fingerprint": "fp_wt0001", "id": "chatcmpl-wt-cwrite", "service_tier": "default"}, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openinference · openai/stream-early-exit · status.unsetFalse alarm #
expected UNSET, reported ERROR: 1 span(s) set status to Error on a successful operation
Expected
UNSET
Reported
ERROR
Note
1 span(s) set status to Error on a successful operation
Reproduce
spantruth run --subject langchain-openinference --scenario openai/stream-early-exit
Rule
Span Status Code MUST be left unset if the instrumented operation has ended without any errors.
Exported spans (2)

ChatOpenAI openinference.instrumentation.langchain, status ERROR

input.mime_typeapplication/json
input.value{"messages": [[{"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "HumanMessage"], "kwargs": {"content": "What is the capital of France?", "type": "human"}}]]}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "gpt-5-mini", "model_name": "gpt-5-mini", "stream": false, "_type": "openai-chat", "stop": null}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital
llm.output_messages.0.message.roleassistant
llm.provideropenai
llm.systemopenai
metadata{"ls_provider": "openai", "ls_model_name": "gpt-5-mini", "ls_model_type": "chat", "ls_temperature": null, "ls_integration": "langchain_chat_model", "lc_versions": {"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"generations": [[{"text": "The capital", "generation_info": null, "type": "ChatGenerationChunk", "message": {"lc": 1, "type": "constructor", "id": ["langchain", "schema", "messages", "AIMessageChunk"], "kwargs": {"content": "The capital", "response_metadata": {"model_provider": "openai"}, "type": "AIMessageChunk", "id": "lc_run--01a21d03-77ab-732c-bf7d-bd66c2d12856", "tool_calls": [], "invalid_tool_calls": []}}}], []], "llm_output": null, "run": null, "type": "LLMResult"}

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/async-basic · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/async-stream · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Cost
$0.00881 on the wire, $0.00419 from the spans (-52.5%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/async-stream
Rule
The name of the model that generated the response.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens419
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/async-stream · response_id #
expected msg_wt_stream, reported nothing
Expected
msg_wt_stream
Cost
$0.00881 on the wire, $0.00419 from the spans (-52.5%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/async-stream
Rule
The unique identifier of the completion.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens419
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/async-stream · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.00881 on the wire, $0.00419 from the spans (-52.5%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens419
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/async-stream · input_tokensVanishing tokens #
expected 2311, reported 0
Expected
2311
Reported
0
Read from
gen_ai.usage.input_tokens
Cost
$0.00881 on the wire, $0.00419 from the spans (-52.5%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/async-stream
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens419
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/async-stream-early-exit · status.unsetFalse alarm #
expected UNSET, reported ERROR: 1 span(s) set status to Error on a successful operation
Expected
UNSET
Reported
ERROR
Note
1 span(s) set status to Error on a successful operation
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/async-stream-early-exit
Rule
Span Status Code MUST be left unset if the instrumented operation has ended without any errors.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/async-stream-early-exit · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/async-stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/async-stream-early-exit · response_id #
expected msg_wt_early, reported nothing
Expected
msg_wt_early
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/async-stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/async-stream-early-exit · input_tokensVanishing tokens #
expected 1913, reported nothing
Expected
1913
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/async-stream-early-exit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/basic · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/cache-1h · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.0146 on the wire, $0.011 from the spans (-24.4%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens2861
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389
gen_ai.usage.total_tokens6677
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/cache-1h · cache_write_tokensCache-blind tokens #
expected 2120, reported 0
Expected
2120
Reported
0
Read from
gen_ai.usage.cache_creation.input_tokens
Cost
$0.0146 on the wire, $0.011 from the spans (-24.4%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/cache-1h
Rule
Input tokens written to the provider cache.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens2861
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389
gen_ai.usage.total_tokens6677
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/cache-hit · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens519
gen_ai.usage.cache_read.input_tokens4096
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377
gen_ai.usage.total_tokens6179
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/retry-429 · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/retry-429
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_retry
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.total_tokens2844
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Cost
$0.00881 on the wire, $0.00419 from the spans (-52.5%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream
Rule
The name of the model that generated the response.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens419
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream · response_id #
expected msg_wt_stream, reported nothing
Expected
msg_wt_stream
Cost
$0.00881 on the wire, $0.00419 from the spans (-52.5%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream
Rule
The unique identifier of the completion.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens419
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.00881 on the wire, $0.00419 from the spans (-52.5%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens419
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream · input_tokensVanishing tokens #
expected 2311, reported 0
Expected
2311
Reported
0
Read from
gen_ai.usage.input_tokens
Cost
$0.00881 on the wire, $0.00419 from the spans (-52.5%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens419
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-cache-1h · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Cost
$0.0175 on the wire, $0.00523 from the spans (-70.1%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-1h
Rule
The name of the model that generated the response.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens523
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-cache-1h · response_id #
expected msg_wt_scache1h, reported nothing
Expected
msg_wt_scache1h
Cost
$0.0175 on the wire, $0.00523 from the spans (-70.1%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-1h
Rule
The unique identifier of the completion.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens523
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-cache-1h · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.0175 on the wire, $0.00523 from the spans (-70.1%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens523
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-cache-1h · input_tokensVanishing tokens #
expected 7160, reported 0
Expected
7160
Reported
0
Read from
gen_ai.usage.input_tokens
Cost
$0.0175 on the wire, $0.00523 from the spans (-70.1%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-1h
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens523
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-cache-1h · cache_read_tokensCache-blind tokens #
expected 3217, reported nothing
Expected
3217
Cost
$0.0175 on the wire, $0.00523 from the spans (-70.1%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-1h
Rule
Input tokens read from the provider cache.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens523
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-cache-1h · cache_write_tokensCache-blind tokens #
expected 2492, reported nothing
Expected
2492
Cost
$0.0175 on the wire, $0.00523 from the spans (-70.1%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-1h
Rule
Input tokens written to the provider cache.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens523
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-cache-cumulative · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-cumulative
Rule
The name of the model that generated the response.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.cache_creation.input_tokens811
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-cache-cumulative · response_id #
expected msg_wt_cumul, reported nothing
Expected
msg_wt_cumul
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-cumulative
Rule
The unique identifier of the completion.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.cache_creation.input_tokens811
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-cache-cumulative · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-cumulative
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.cache_creation.input_tokens811
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-cache-hit · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Cost
$0.0107 on the wire, $0.00511 from the spans (-52%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens511
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-cache-hit · response_id #
expected msg_wt_scache, reported nothing
Expected
msg_wt_scache
Cost
$0.0107 on the wire, $0.00511 from the spans (-52%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens511
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-cache-hit · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.0107 on the wire, $0.00511 from the spans (-52%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens511
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-cache-hit · input_tokensVanishing tokens #
expected 8424, reported 0
Expected
8424
Reported
0
Read from
gen_ai.usage.input_tokens
Cost
$0.0107 on the wire, $0.00511 from the spans (-52%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-hit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens511
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-cache-hit · cache_read_tokensCache-blind tokens #
expected 6144, reported nothing
Expected
6144
Cost
$0.0107 on the wire, $0.00511 from the spans (-52%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-hit
Rule
Input tokens read from the provider cache.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens511
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-cache-hit · cache_write_tokensCache-blind tokens #
expected 737, reported nothing
Expected
737
Cost
$0.0107 on the wire, $0.00511 from the spans (-52%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-cache-hit
Rule
Input tokens written to the provider cache.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens511
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-early-exit · status.unsetFalse alarm #
expected UNSET, reported ERROR: 1 span(s) set status to Error on a successful operation
Expected
UNSET
Reported
ERROR
Note
1 span(s) set status to Error on a successful operation
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-early-exit
Rule
Span Status Code MUST be left unset if the instrumented operation has ended without any errors.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-early-exit · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-early-exit · response_id #
expected msg_wt_early, reported nothing
Expected
msg_wt_early
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-early-exit · input_tokensVanishing tokens #
expected 1913, reported nothing
Expected
1913
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-early-exit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-thinking · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Cost
$0.0181 on the wire, $0.0144 from the spans (-20.3%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-thinking
Rule
The name of the model that generated the response.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens1439
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-thinking · response_id #
expected msg_wt_sthink, reported nothing
Expected
msg_wt_sthink
Cost
$0.0181 on the wire, $0.0144 from the spans (-20.3%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-thinking
Rule
The unique identifier of the completion.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens1439
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-thinking · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.0181 on the wire, $0.0144 from the spans (-20.3%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens1439
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-thinking · input_tokensVanishing tokens #
expected 1831, reported 0
Expected
1831
Reported
0
Read from
gen_ai.usage.input_tokens
Cost
$0.0181 on the wire, $0.0144 from the spans (-20.3%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-thinking
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens1439
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-thinking · reasoning_tokensHidden reasoning #
expected 1103, reported nothing
Expected
1103
Cost
$0.0181 on the wire, $0.0144 from the spans (-20.3%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens1439
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-tool-call · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Cost
$0.00521 on the wire, $0.00197 from the spans (-62.2%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-tool-call
Rule
The name of the model that generated the response.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "{\"id\": \"toolu_wt_1\", \"input\": {}, \"name\": \"get_weather\", \"type\": \"tool_use\", \"toolset_name\": null, \"index\": 0, \"partial_json\": \"{\\\"city\\\": \\\"Paris\\\"}\"}"}, {"type": "text", "content": "{\"id\": \"toolu_wt_2\", \"input\": {}, \"name\": \"get_time\", \"type\": \"tool_use\", \"toolset_name\": null, \"index\": 1, \"partial_json\": \"{\\\"zone\\\": \\\"Europe/Paris\\\"}\"}"}, {"type": "tool_call", "id": "toolu_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "toolu_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.tool.definitions[{"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens197
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-tool-call · response_id #
expected msg_wt_stools, reported nothing
Expected
msg_wt_stools
Cost
$0.00521 on the wire, $0.00197 from the spans (-62.2%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-tool-call
Rule
The unique identifier of the completion.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "{\"id\": \"toolu_wt_1\", \"input\": {}, \"name\": \"get_weather\", \"type\": \"tool_use\", \"toolset_name\": null, \"index\": 0, \"partial_json\": \"{\\\"city\\\": \\\"Paris\\\"}\"}"}, {"type": "text", "content": "{\"id\": \"toolu_wt_2\", \"input\": {}, \"name\": \"get_time\", \"type\": \"tool_use\", \"toolset_name\": null, \"index\": 1, \"partial_json\": \"{\\\"zone\\\": \\\"Europe/Paris\\\"}\"}"}, {"type": "tool_call", "id": "toolu_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "toolu_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.tool.definitions[{"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens197
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/stream-tool-call · finish_reasonsSilent stop #
expected tool_use, reported nothing
Expected
['tool_use']
Cost
$0.00521 on the wire, $0.00197 from the spans (-62.2%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "{\"id\": \"toolu_wt_1\", \"input\": {}, \"name\": \"get_weather\", \"type\": \"tool_use\", \"toolset_name\": null, \"index\": 0, \"partial_json\": \"{\\\"city\\\": \\\"Paris\\\"}\"}"}, {"type": "text", "content": "{\"id\": \"toolu_wt_2\", \"input\": {}, \"name\": \"get_time\", \"type\": \"tool_use\", \"toolset_name\": null, \"index\": 1, \"partial_json\": \"{\\\"zone\\\": \\\"Europe/Paris\\\"}\"}"}, {"type": "tool_call", "id": "toolu_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "toolu_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.tool.definitions[{"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens197
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · anthropic/stream-tool-call · input_tokensVanishing tokens #
expected 1619, reported 0
Expected
1619
Reported
0
Read from
gen_ai.usage.input_tokens
Cost
$0.00521 on the wire, $0.00197 from the spans (-62.2%), at list price.
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/stream-tool-call
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "{\"id\": \"toolu_wt_1\", \"input\": {}, \"name\": \"get_weather\", \"type\": \"tool_use\", \"toolset_name\": null, \"index\": 0, \"partial_json\": \"{\\\"city\\\": \\\"Paris\\\"}\"}"}, {"type": "text", "content": "{\"id\": \"toolu_wt_2\", \"input\": {}, \"name\": \"get_time\", \"type\": \"tool_use\", \"toolset_name\": null, \"index\": 1, \"partial_json\": \"{\\\"zone\\\": \\\"Europe/Paris\\\"}\"}"}, {"type": "tool_call", "id": "toolu_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "toolu_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.tool.definitions[{"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens0
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens197
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/thinking · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.total_tokens2900
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/thinking · reasoning_tokensHidden reasoning #
expected 947, reported nothing
Expected
947
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.total_tokens2900
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · anthropic/tool-call · finish_reasonsSilent stop #
expected tool_use, reported nothing
Expected
['tool_use']
Reproduce
spantruth run --subject langchain-openllmetry --scenario anthropic/tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatAnthropic.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "{\"id\": \"toolu_wt_1\", \"input\": {\"city\": \"Paris\"}, \"name\": \"get_weather\", \"type\": \"tool_use\", \"toolset_name\": null}"}, {"type": "text", "content": "{\"id\": \"toolu_wt_2\", \"input\": {\"zone\": \"Europe/Paris\"}, \"name\": \"get_time\", \"type\": \"tool_use\", \"toolset_name\": null}"}, {"type": "tool_call", "id": "toolu_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "toolu_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": ""}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_tools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.tool.definitions[{"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.total_tokens1019
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-anthropic": "1.7.13"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_max_tokens1024
traceloop.association.properties.ls_model_nameclaude-sonnet-5-5
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideranthropic
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/async-stream · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/async-stream
Rule
The name of the model that generated the response.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/async-stream · response_id #
expected chatcmpl-wt-stream, reported nothing
Expected
chatcmpl-wt-stream
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/async-stream
Rule
The unique identifier of the completion.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/async-stream-early-exit · status.unsetFalse alarm #
expected UNSET, reported ERROR: 1 span(s) set status to Error on a successful operation
Expected
UNSET
Reported
ERROR
Note
1 span(s) set status to Error on a successful operation
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/async-stream-early-exit
Rule
Span Status Code MUST be left unset if the instrumented operation has ended without any errors.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/async-stream-early-exit · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/async-stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/async-stream-early-exit · response_id #
expected chatcmpl-wt-early, reported nothing
Expected
chatcmpl-wt-early
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/async-stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/reasoning · reasoning_tokensHidden reasoning #
expected 1792, reported nothing
Expected
1792
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-reason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.total_tokens3820
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/stream · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream
Rule
The name of the model that generated the response.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/stream · response_id #
expected chatcmpl-wt-stream, reported nothing
Expected
chatcmpl-wt-stream
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream
Rule
The unique identifier of the completion.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/stream-cache-hit · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens7724
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/stream-cache-hit · response_id #
expected chatcmpl-wt-scache, reported nothing
Expected
chatcmpl-wt-scache
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens7724
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/stream-cache-write · response_model #
expected gpt-5.6-luna-2026-10-14, reported gpt-5.6-luna
Expected
gpt-5.6-luna-2026-10-14
Reported
gpt-5.6-luna
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-cache-write
Rule
The name of the model that generated the response.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5.6-luna
gen_ai.usage.cache_creation.input_tokens3539
gen_ai.usage.cache_read.input_tokens3967
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5.6-luna
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/stream-cache-write · response_id #
expected chatcmpl-wt-scwrite, reported nothing
Expected
chatcmpl-wt-scwrite
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-cache-write
Rule
The unique identifier of the completion.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5.6-luna
gen_ai.usage.cache_creation.input_tokens3539
gen_ai.usage.cache_read.input_tokens3967
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5.6-luna
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/stream-early-exit · status.unsetFalse alarm #
expected UNSET, reported ERROR: 1 span(s) set status to Error on a successful operation
Expected
UNSET
Reported
ERROR
Note
1 span(s) set status to Error on a successful operation
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-early-exit
Rule
Span Status Code MUST be left unset if the instrumented operation has ended without any errors.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/stream-early-exit · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/stream-early-exit · response_id #
expected chatcmpl-wt-early, reported nothing
Expected
chatcmpl-wt-early
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status ERROR

error.typeGeneratorExit
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.task.statusfailure
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/stream-no-usage · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-no-usage
Rule
The name of the model that generated the response.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/stream-no-usage · response_id #
expected chatcmpl-wt-nousage, reported nothing
Expected
chatcmpl-wt-nousage
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-no-usage
Rule
The unique identifier of the completion.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/stream-reasoning · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-reasoning
Rule
The name of the model that generated the response.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.total_tokens4548
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/stream-reasoning · response_id #
expected chatcmpl-wt-sreason, reported nothing
Expected
chatcmpl-wt-sreason
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-reasoning
Rule
The unique identifier of the completion.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.total_tokens4548
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/stream-reasoning · reasoning_tokensHidden reasoning #
expected 1931, reported nothing
Expected
1931
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.modelgpt-5-mini
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.total_tokens4548
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

wrong langchain-openllmetry · openai/stream-tool-call · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-tool-call
Rule
The name of the model that generated the response.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "tool_call", "id": "call_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "call_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": "tool_call"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['tool_call']
gen_ai.response.modelgpt-5-mini
gen_ai.tool.definitions[{"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.total_tokens1726
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

missing langchain-openllmetry · openai/stream-tool-call · response_id #
expected chatcmpl-wt-stools, reported nothing
Expected
chatcmpl-wt-stools
Reproduce
spantruth run --subject langchain-openllmetry --scenario openai/stream-tool-call
Rule
The unique identifier of the completion.
Exported spans (2)

ChatOpenAI.chat opentelemetry.instrumentation.langchain, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "unknown", "parts": [{"type": "tool_call", "id": "call_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "call_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": "tool_call"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['tool_call']
gen_ai.response.modelgpt-5-mini
gen_ai.tool.definitions[{"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.total_tokens1726
traceloop.association.properties.lc_versions{"langchain-core": "1.8.5", "langchain-openai": "1.8.5"}
traceloop.association.properties.ls_integrationlangchain_chat_model
traceloop.association.properties.ls_model_namegpt-5-mini
traceloop.association.properties.ls_model_typechat
traceloop.association.properties.ls_provideropenai
traceloop.entity.path
traceloop.workflow.name

spantruth.scenario spantruth.driver, status UNSET

inconclusive langfuse · openai/async-concurrent-streams · span.recordedGhost span #
call 2 of 2: 1 LLM span(s) record no request model of any call, and the calls ran at the same time, so those spans are not graded
Note
call 2 of 2: 1 LLM span(s) record no request model of any call, and the calls ran at the same time, so those spans are not graded
Reproduce
spantruth run --subject langfuse --scenario openai/async-concurrent-streams
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (3)

OpenAI-generation langfuse-sdk, status UNSET

langfuse.internal.is_app_rootTrue
langfuse.observation.completion_start_time"2026-11-27T12:45:38.314659Z"
langfuse.observation.input[{"role": "user", "content": "What is the capital of France?"}]
langfuse.observation.metadata.finish_reason"stop"
langfuse.observation.model.namegpt-5-mini-2026-08-07
langfuse.observation.model.parameters{"temperature": 1, "max_tokens": "Infinity", "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0, "service_tier": "default"}
langfuse.observation.outputThe capital of France is Paris.
langfuse.observation.typegeneration
langfuse.observation.usage_details{"completion_tokens": 149, "prompt_tokens": 1033, "total_tokens": 1182, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0}, "prompt_tokens_details": {"audio_tokens": 0, "cached_tokens": 769}}

OpenAI-generation langfuse-sdk, status UNSET

langfuse.internal.is_app_rootTrue
langfuse.observation.completion_start_time"2026-11-27T12:45:38.315899Z"
langfuse.observation.input[{"role": "user", "content": "What is the capital of France?"}]
langfuse.observation.metadata.finish_reason"stop"
langfuse.observation.model.namegpt-5-nano-2026-08-07
langfuse.observation.model.parameters{"temperature": 1, "max_tokens": "Infinity", "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0, "service_tier": "default"}
langfuse.observation.outputThe capital of France is Paris.
langfuse.observation.typegeneration
langfuse.observation.usage_details{"completion_tokens": 181, "prompt_tokens": 1747, "total_tokens": 1928, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0}, "prompt_tokens_details": {"audio_tokens": 0, "cached_tokens": 0}}

spantruth.scenario spantruth.driver, status UNSET

wrong langfuse · openai/async-stream-dropped · error.statusFalse OK #
expected ERROR, reported UNSET
Expected
ERROR
Reported
['UNSET']
Upstream
reported traced_iterator finalizes in finally without level ERROR, so the span status stays UNSET. Fix proposed in https://github.com/langfuse/langfuse-python/pull/2056, which turns all three cells green.
Reproduce
spantruth run --subject langfuse --scenario openai/async-stream-dropped
Rule
Span status SHOULD follow Recording Errors: an operation that ended in an error sets the status to Error.
Exported spans (2)

OpenAI-generation langfuse-sdk, status UNSET

langfuse.internal.is_app_rootTrue
langfuse.observation.completion_start_time"2026-11-27T12:44:44.714583Z"
langfuse.observation.input[{"role": "user", "content": "What is the capital of France?"}]
langfuse.observation.model.namegpt-5-mini-2026-08-07
langfuse.observation.model.parameters{"temperature": 1, "max_tokens": "Infinity", "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0, "service_tier": "default"}
langfuse.observation.outputThe capital of France
langfuse.observation.typegeneration

spantruth.scenario spantruth.driver, status UNSET

missing langfuse · openai/async-stream-helper · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject langfuse --scenario openai/async-stream-helper
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

wrong langfuse · openai/responses-stream-missing-finish-abort · error.statusFalse OK #
expected ERROR, reported UNSET
Expected
ERROR
Reported
['UNSET']
Upstream
reported traced_iterator finalizes in finally without level ERROR, so the span status stays UNSET. Fix proposed in https://github.com/langfuse/langfuse-python/pull/2056, which turns all three cells green.
Reproduce
spantruth run --subject langfuse --scenario openai/responses-stream-missing-finish-abort
Rule
Span status SHOULD follow Recording Errors: an operation that ended in an error sets the status to Error.
Exported spans (2)

OpenAI-generation langfuse-sdk, status UNSET

langfuse.internal.is_app_rootTrue
langfuse.observation.completion_start_time"2026-11-27T12:45:23.892071Z"
langfuse.observation.input[{"role": "user", "content": "What is the capital of France?"}]
langfuse.observation.metadata.backgroundfalse
langfuse.observation.metadata.id"resp_025c23fff6653590006acbfc0086cc87d18124e70e8d3ff838"
langfuse.observation.metadata.max_output_tokens16
langfuse.observation.metadata.metadata{}
langfuse.observation.metadata.object"response"
langfuse.observation.metadata.parallel_tool_callstrue
langfuse.observation.metadata.prompt_cache_retention"24h"
langfuse.observation.metadata.reasoning{"context":"all_turns","effort":"none","generate_summary":null,"mode":"standard","summary":null}
langfuse.observation.metadata.service_tier"auto"
langfuse.observation.metadata.status"in_progress"
langfuse.observation.metadata.temperature1.0
langfuse.observation.metadata.tool_choice"auto"
langfuse.observation.metadata.tool_usage{"image_gen":{"input_tokens":0,"input_tokens_details":{"image_tokens":0,"text_tokens":0},"output_tokens":0,"total_tokens":0,"cached_tokens":null,"cached_tokens_details":null,"output_tokens_details":{"image_tokens":0,"text_tokens":0}},"web_search":{"num_requests":0}}
langfuse.observation.metadata.tools[]
langfuse.observation.metadata.top_logprobs0
langfuse.observation.metadata.top_p0.98
langfuse.observation.metadata.truncation"disabled"
langfuse.observation.model.namegpt-6-luna
langfuse.observation.model.parameters{"temperature": 1, "max_tokens": "Infinity", "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0, "service_tier": "auto"}
langfuse.observation.typegeneration

spantruth.scenario spantruth.driver, status UNSET

wrong langfuse · openai/stream-dropped · error.statusFalse OK #
expected ERROR, reported UNSET
Expected
ERROR
Reported
['UNSET']
Upstream
reported traced_iterator finalizes in finally without level ERROR, so the span status stays UNSET. Fix proposed in https://github.com/langfuse/langfuse-python/pull/2056, which turns all three cells green.
Reproduce
spantruth run --subject langfuse --scenario openai/stream-dropped
Rule
Span status SHOULD follow Recording Errors: an operation that ended in an error sets the status to Error.
Exported spans (2)

OpenAI-generation langfuse-sdk, status UNSET

langfuse.internal.is_app_rootTrue
langfuse.observation.completion_start_time"2026-11-27T12:44:22.895940Z"
langfuse.observation.input[{"role": "user", "content": "What is the capital of France?"}]
langfuse.observation.model.namegpt-5-mini-2026-08-07
langfuse.observation.model.parameters{"temperature": 1, "max_tokens": "Infinity", "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0, "service_tier": "default"}
langfuse.observation.outputThe capital of France
langfuse.observation.typegeneration

spantruth.scenario spantruth.driver, status UNSET

missing langfuse · openai/stream-helper · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject langfuse --scenario openai/stream-helper
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

wrong litellm · anthropic/async-basic · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario anthropic/async-basic
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.002374
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.005004
gen_ai.cost.output_cost0.0026300000000000004
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.005004
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.nameacompletion
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-bbe28dbe-fa36-4769-9ea7-7ea9272073ed
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--async-basic", "response_cost": 0.005004, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:48:08 GMT", "llm_provider-content-type": "application/json", "llm_provider-content-length": "344", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1204.984, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": "anthropic/claude-sonnet-5-5", "usage_object": null}
litellm.cache_hitFalse
litellm.call_id2715be8c-2c8d-49eb-aef7-3f0d6bee1f19
litellm.provider.modelanthropic/claude-sonnet-5-5
llm.is_streamingFalse
llm.request.typeacompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 263, 'prompt_tokens': 1187, 'total_tokens': 1450, 'completion_tokens_details': {'reasoning_tokens': 0, 'text_tokens': 263}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1187, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0, 'iterations': None, 'inference_geo': None, 'speed': None, 'service_tier': None}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

llm.anthropic.content[{'type': 'text', 'text': 'The capital of France is Paris.'}]
llm.anthropic.idmsg_wt_basic
llm.anthropic.max_tokens1024
llm.anthropic.messages[{'role': 'user', 'content': [{'type': 'text', 'text': 'What is the capital of France?'}]}]
llm.anthropic.modelclaude-sonnet-5-5-20260915
llm.anthropic.roleassistant
llm.anthropic.stop_reasonend_turn
llm.anthropic.stop_sequence
llm.anthropic.typemessage
llm.anthropic.usage{'input_tokens': 1187, 'output_tokens': 263, 'cache_read_input_tokens': 0, 'cache_creation_input_tokens': 0}
wrong litellm · anthropic/async-basic · response_id #
expected msg_wt_basic, reported chatcmpl-bbe28dbe-fa36-4769-9ea7-7ea9272073ed
Expected
msg_wt_basic
Reported
chatcmpl-bbe28dbe-fa36-4769-9ea7-7ea9272073ed
Read from
gen_ai.response.id
Reproduce
spantruth run --subject litellm --scenario anthropic/async-basic
Rule
The unique identifier of the completion.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.002374
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.005004
gen_ai.cost.output_cost0.0026300000000000004
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.005004
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.nameacompletion
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-bbe28dbe-fa36-4769-9ea7-7ea9272073ed
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--async-basic", "response_cost": 0.005004, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:48:08 GMT", "llm_provider-content-type": "application/json", "llm_provider-content-length": "344", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1204.984, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": "anthropic/claude-sonnet-5-5", "usage_object": null}
litellm.cache_hitFalse
litellm.call_id2715be8c-2c8d-49eb-aef7-3f0d6bee1f19
litellm.provider.modelanthropic/claude-sonnet-5-5
llm.is_streamingFalse
llm.request.typeacompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 263, 'prompt_tokens': 1187, 'total_tokens': 1450, 'completion_tokens_details': {'reasoning_tokens': 0, 'text_tokens': 263}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1187, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0, 'iterations': None, 'inference_geo': None, 'speed': None, 'service_tier': None}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

llm.anthropic.content[{'type': 'text', 'text': 'The capital of France is Paris.'}]
llm.anthropic.idmsg_wt_basic
llm.anthropic.max_tokens1024
llm.anthropic.messages[{'role': 'user', 'content': [{'type': 'text', 'text': 'What is the capital of France?'}]}]
llm.anthropic.modelclaude-sonnet-5-5-20260915
llm.anthropic.roleassistant
llm.anthropic.stop_reasonend_turn
llm.anthropic.stop_sequence
llm.anthropic.typemessage
llm.anthropic.usage{'input_tokens': 1187, 'output_tokens': 263, 'cache_read_input_tokens': 0, 'cache_creation_input_tokens': 0}
wrong litellm · anthropic/async-basic · finish_reasonsSilent stop #
expected end_turn, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['end_turn']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject litellm --scenario anthropic/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.002374
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.005004
gen_ai.cost.output_cost0.0026300000000000004
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.005004
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.nameacompletion
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-bbe28dbe-fa36-4769-9ea7-7ea9272073ed
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--async-basic", "response_cost": 0.005004, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:48:08 GMT", "llm_provider-content-type": "application/json", "llm_provider-content-length": "344", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1204.984, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": "anthropic/claude-sonnet-5-5", "usage_object": null}
litellm.cache_hitFalse
litellm.call_id2715be8c-2c8d-49eb-aef7-3f0d6bee1f19
litellm.provider.modelanthropic/claude-sonnet-5-5
llm.is_streamingFalse
llm.request.typeacompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 263, 'prompt_tokens': 1187, 'total_tokens': 1450, 'completion_tokens_details': {'reasoning_tokens': 0, 'text_tokens': 263}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1187, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0, 'iterations': None, 'inference_geo': None, 'speed': None, 'service_tier': None}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

llm.anthropic.content[{'type': 'text', 'text': 'The capital of France is Paris.'}]
llm.anthropic.idmsg_wt_basic
llm.anthropic.max_tokens1024
llm.anthropic.messages[{'role': 'user', 'content': [{'type': 'text', 'text': 'What is the capital of France?'}]}]
llm.anthropic.modelclaude-sonnet-5-5-20260915
llm.anthropic.roleassistant
llm.anthropic.stop_reasonend_turn
llm.anthropic.stop_sequence
llm.anthropic.typemessage
llm.anthropic.usage{'input_tokens': 1187, 'output_tokens': 263, 'cache_read_input_tokens': 0, 'cache_creation_input_tokens': 0}
missing litellm · anthropic/async-stream-early-exit · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/async-stream-early-exit
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

wrong litellm · anthropic/stream · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario anthropic/stream
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.004621999999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.008812
gen_ai.cost.output_cost0.00419
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.008812
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-cdf7a8a3-9951-416a-872c-3564016de04b
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream/v1/messages", "response_cost": 0.008812, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:43 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idb6e7cc42-0541-4142-a669-0d2e32d38f66
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 419, 'prompt_tokens': 2311, 'total_tokens': 2730, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 419, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 2311, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.008812, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject litellm --scenario anthropic/stream
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.004621999999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.008812
gen_ai.cost.output_cost0.00419
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.008812
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-cdf7a8a3-9951-416a-872c-3564016de04b
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream/v1/messages", "response_cost": 0.008812, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:43 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idb6e7cc42-0541-4142-a669-0d2e32d38f66
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 419, 'prompt_tokens': 2311, 'total_tokens': 2730, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 419, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 2311, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.008812, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream · response_id #
expected msg_wt_stream, reported chatcmpl-cdf7a8a3-9951-416a-872c-3564016de04b
Expected
msg_wt_stream
Reported
chatcmpl-cdf7a8a3-9951-416a-872c-3564016de04b
Read from
gen_ai.response.id
Reproduce
spantruth run --subject litellm --scenario anthropic/stream
Rule
The unique identifier of the completion.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.004621999999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.008812
gen_ai.cost.output_cost0.00419
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.008812
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-cdf7a8a3-9951-416a-872c-3564016de04b
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream/v1/messages", "response_cost": 0.008812, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:43 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idb6e7cc42-0541-4142-a669-0d2e32d38f66
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 419, 'prompt_tokens': 2311, 'total_tokens': 2730, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 419, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 2311, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.008812, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream · finish_reasonsSilent stop #
expected end_turn, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['end_turn']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject litellm --scenario anthropic/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.004621999999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.008812
gen_ai.cost.output_cost0.00419
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.008812
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-cdf7a8a3-9951-416a-872c-3564016de04b
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream/v1/messages", "response_cost": 0.008812, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:43 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idb6e7cc42-0541-4142-a669-0d2e32d38f66
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 419, 'prompt_tokens': 2311, 'total_tokens': 2730, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 419, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 2311, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.008812, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-cache-1h · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Cost
$0.0175 on the wire, $0.0196 from the spans (+11.7%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-1h
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0090485
gen_ai.cost.cache_read_cost0.00032169999999999996
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.012272199999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0175022
gen_ai.cost.output_cost0.00523
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0175022
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-d0417099-26ae-494c-bd9d-caa49b0b1f8f
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7683
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages", "response_cost": 0.0175022, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:27 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8294ec29-ece7-4508-8960-9b0530773483
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 523, 'prompt_tokens': 7160, 'total_tokens': 7683, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 523, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 2492, 'cached_tokens': 3217, 'image_tokens': None, 'text_tokens': 1451, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 2492, 'cache_creation_token_details': {'ephemeral_5m_input_tokens': 613, 'ephemeral_30m_input_tokens': None, 'ephemeral_1h_input_tokens': 1879, 'ephemeral_12h_input_tokens': None}}, 'cost': 0.0175022, 'cache_creation_input_tokens': 2492, 'cache_read_input_tokens': 3217}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-cache-1h · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Cost
$0.0175 on the wire, $0.0196 from the spans (+11.7%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-1h
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0090485
gen_ai.cost.cache_read_cost0.00032169999999999996
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.012272199999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0175022
gen_ai.cost.output_cost0.00523
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0175022
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-d0417099-26ae-494c-bd9d-caa49b0b1f8f
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7683
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages", "response_cost": 0.0175022, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:27 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8294ec29-ece7-4508-8960-9b0530773483
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 523, 'prompt_tokens': 7160, 'total_tokens': 7683, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 523, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 2492, 'cached_tokens': 3217, 'image_tokens': None, 'text_tokens': 1451, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 2492, 'cache_creation_token_details': {'ephemeral_5m_input_tokens': 613, 'ephemeral_30m_input_tokens': None, 'ephemeral_1h_input_tokens': 1879, 'ephemeral_12h_input_tokens': None}}, 'cost': 0.0175022, 'cache_creation_input_tokens': 2492, 'cache_read_input_tokens': 3217}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-cache-1h · response_id #
expected msg_wt_scache1h, reported chatcmpl-d0417099-26ae-494c-bd9d-caa49b0b1f8f
Expected
msg_wt_scache1h
Reported
chatcmpl-d0417099-26ae-494c-bd9d-caa49b0b1f8f
Read from
gen_ai.response.id
Cost
$0.0175 on the wire, $0.0196 from the spans (+11.7%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-1h
Rule
The unique identifier of the completion.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0090485
gen_ai.cost.cache_read_cost0.00032169999999999996
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.012272199999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0175022
gen_ai.cost.output_cost0.00523
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0175022
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-d0417099-26ae-494c-bd9d-caa49b0b1f8f
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7683
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages", "response_cost": 0.0175022, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:27 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8294ec29-ece7-4508-8960-9b0530773483
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 523, 'prompt_tokens': 7160, 'total_tokens': 7683, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 523, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 2492, 'cached_tokens': 3217, 'image_tokens': None, 'text_tokens': 1451, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 2492, 'cache_creation_token_details': {'ephemeral_5m_input_tokens': 613, 'ephemeral_30m_input_tokens': None, 'ephemeral_1h_input_tokens': 1879, 'ephemeral_12h_input_tokens': None}}, 'cost': 0.0175022, 'cache_creation_input_tokens': 2492, 'cache_read_input_tokens': 3217}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-cache-1h · finish_reasonsSilent stop #
expected end_turn, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['end_turn']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Cost
$0.0175 on the wire, $0.0196 from the spans (+11.7%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0090485
gen_ai.cost.cache_read_cost0.00032169999999999996
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.012272199999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0175022
gen_ai.cost.output_cost0.00523
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0175022
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-d0417099-26ae-494c-bd9d-caa49b0b1f8f
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7683
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages", "response_cost": 0.0175022, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:27 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8294ec29-ece7-4508-8960-9b0530773483
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 523, 'prompt_tokens': 7160, 'total_tokens': 7683, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 523, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 2492, 'cached_tokens': 3217, 'image_tokens': None, 'text_tokens': 1451, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 2492, 'cache_creation_token_details': {'ephemeral_5m_input_tokens': 613, 'ephemeral_30m_input_tokens': None, 'ephemeral_1h_input_tokens': 1879, 'ephemeral_12h_input_tokens': None}}, 'cost': 0.0175022, 'cache_creation_input_tokens': 2492, 'cache_read_input_tokens': 3217}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

missing litellm · anthropic/stream-cache-1h · cache_read_tokensCache-blind tokens #
expected 3217, reported nothing
Expected
3217
Cost
$0.0175 on the wire, $0.0196 from the spans (+11.7%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-1h
Rule
Input tokens read from the provider cache.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0090485
gen_ai.cost.cache_read_cost0.00032169999999999996
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.012272199999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0175022
gen_ai.cost.output_cost0.00523
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0175022
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-d0417099-26ae-494c-bd9d-caa49b0b1f8f
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7683
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages", "response_cost": 0.0175022, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:27 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8294ec29-ece7-4508-8960-9b0530773483
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 523, 'prompt_tokens': 7160, 'total_tokens': 7683, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 523, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 2492, 'cached_tokens': 3217, 'image_tokens': None, 'text_tokens': 1451, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 2492, 'cache_creation_token_details': {'ephemeral_5m_input_tokens': 613, 'ephemeral_30m_input_tokens': None, 'ephemeral_1h_input_tokens': 1879, 'ephemeral_12h_input_tokens': None}}, 'cost': 0.0175022, 'cache_creation_input_tokens': 2492, 'cache_read_input_tokens': 3217}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

missing litellm · anthropic/stream-cache-1h · cache_write_tokensCache-blind tokens #
expected 2492, reported nothing
Expected
2492
Cost
$0.0175 on the wire, $0.0196 from the spans (+11.7%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-1h
Rule
Input tokens written to the provider cache.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0090485
gen_ai.cost.cache_read_cost0.00032169999999999996
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.012272199999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0175022
gen_ai.cost.output_cost0.00523
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0175022
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-d0417099-26ae-494c-bd9d-caa49b0b1f8f
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7683
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages", "response_cost": 0.0175022, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:27 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8294ec29-ece7-4508-8960-9b0530773483
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 523, 'prompt_tokens': 7160, 'total_tokens': 7683, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 523, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 2492, 'cached_tokens': 3217, 'image_tokens': None, 'text_tokens': 1451, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 2492, 'cache_creation_token_details': {'ephemeral_5m_input_tokens': 613, 'ephemeral_30m_input_tokens': None, 'ephemeral_1h_input_tokens': 1879, 'ephemeral_12h_input_tokens': None}}, 'cost': 0.0175022, 'cache_creation_input_tokens': 2492, 'cache_read_input_tokens': 3217}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-cache-cumulative · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Cost
$0.00961 on the wire, $0.016 from the spans (+66.6%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-cumulative
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0020275000000000002
gen_ai.cost.cache_read_cost0.0003583
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0049438
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0096138
gen_ai.cost.output_cost0.0046700000000000005
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0096138
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-28152cd3-60d7-4497-8ff6-de9251b8c97a
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-cumulative/v1/messages", "response_cost": 0.0096138, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:16 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_ida263b0c9-464d-44e7-8542-0de6896a6b09
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 467, 'prompt_tokens': 5673, 'total_tokens': 6140, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 467, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 811, 'cached_tokens': 3583, 'image_tokens': None, 'text_tokens': 1279, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 811}, 'cost': 0.0096138, 'cache_creation_input_tokens': 811, 'cache_read_input_tokens': 3583}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-cache-cumulative · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Cost
$0.00961 on the wire, $0.016 from the spans (+66.6%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-cumulative
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0020275000000000002
gen_ai.cost.cache_read_cost0.0003583
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0049438
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0096138
gen_ai.cost.output_cost0.0046700000000000005
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0096138
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-28152cd3-60d7-4497-8ff6-de9251b8c97a
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-cumulative/v1/messages", "response_cost": 0.0096138, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:16 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_ida263b0c9-464d-44e7-8542-0de6896a6b09
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 467, 'prompt_tokens': 5673, 'total_tokens': 6140, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 467, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 811, 'cached_tokens': 3583, 'image_tokens': None, 'text_tokens': 1279, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 811}, 'cost': 0.0096138, 'cache_creation_input_tokens': 811, 'cache_read_input_tokens': 3583}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-cache-cumulative · response_id #
expected msg_wt_cumul, reported chatcmpl-28152cd3-60d7-4497-8ff6-de9251b8c97a
Expected
msg_wt_cumul
Reported
chatcmpl-28152cd3-60d7-4497-8ff6-de9251b8c97a
Read from
gen_ai.response.id
Cost
$0.00961 on the wire, $0.016 from the spans (+66.6%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-cumulative
Rule
The unique identifier of the completion.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0020275000000000002
gen_ai.cost.cache_read_cost0.0003583
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0049438
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0096138
gen_ai.cost.output_cost0.0046700000000000005
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0096138
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-28152cd3-60d7-4497-8ff6-de9251b8c97a
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-cumulative/v1/messages", "response_cost": 0.0096138, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:16 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_ida263b0c9-464d-44e7-8542-0de6896a6b09
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 467, 'prompt_tokens': 5673, 'total_tokens': 6140, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 467, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 811, 'cached_tokens': 3583, 'image_tokens': None, 'text_tokens': 1279, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 811}, 'cost': 0.0096138, 'cache_creation_input_tokens': 811, 'cache_read_input_tokens': 3583}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-cache-cumulative · finish_reasonsSilent stop #
expected end_turn, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['end_turn']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Cost
$0.00961 on the wire, $0.016 from the spans (+66.6%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-cumulative
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0020275000000000002
gen_ai.cost.cache_read_cost0.0003583
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0049438
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0096138
gen_ai.cost.output_cost0.0046700000000000005
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0096138
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-28152cd3-60d7-4497-8ff6-de9251b8c97a
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-cumulative/v1/messages", "response_cost": 0.0096138, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:16 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_ida263b0c9-464d-44e7-8542-0de6896a6b09
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 467, 'prompt_tokens': 5673, 'total_tokens': 6140, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 467, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 811, 'cached_tokens': 3583, 'image_tokens': None, 'text_tokens': 1279, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 811}, 'cost': 0.0096138, 'cache_creation_input_tokens': 811, 'cache_read_input_tokens': 3583}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

missing litellm · anthropic/stream-cache-cumulative · cache_read_tokensCache-blind tokens #
expected 3583, reported nothing
Expected
3583
Cost
$0.00961 on the wire, $0.016 from the spans (+66.6%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-cumulative
Rule
Input tokens read from the provider cache.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0020275000000000002
gen_ai.cost.cache_read_cost0.0003583
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0049438
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0096138
gen_ai.cost.output_cost0.0046700000000000005
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0096138
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-28152cd3-60d7-4497-8ff6-de9251b8c97a
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-cumulative/v1/messages", "response_cost": 0.0096138, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:16 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_ida263b0c9-464d-44e7-8542-0de6896a6b09
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 467, 'prompt_tokens': 5673, 'total_tokens': 6140, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 467, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 811, 'cached_tokens': 3583, 'image_tokens': None, 'text_tokens': 1279, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 811}, 'cost': 0.0096138, 'cache_creation_input_tokens': 811, 'cache_read_input_tokens': 3583}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

missing litellm · anthropic/stream-cache-cumulative · cache_write_tokensCache-blind tokens #
expected 811, reported nothing
Expected
811
Cost
$0.00961 on the wire, $0.016 from the spans (+66.6%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-cumulative
Rule
Input tokens written to the provider cache.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0020275000000000002
gen_ai.cost.cache_read_cost0.0003583
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0049438
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0096138
gen_ai.cost.output_cost0.0046700000000000005
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0096138
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-28152cd3-60d7-4497-8ff6-de9251b8c97a
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.total_tokens6140
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-cumulative/v1/messages", "response_cost": 0.0096138, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:16 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_ida263b0c9-464d-44e7-8542-0de6896a6b09
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 467, 'prompt_tokens': 5673, 'total_tokens': 6140, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 467, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 811, 'cached_tokens': 3583, 'image_tokens': None, 'text_tokens': 1279, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 811}, 'cost': 0.0096138, 'cache_creation_input_tokens': 811, 'cache_read_input_tokens': 3583}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-cache-hit · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Cost
$0.0107 on the wire, $0.022 from the spans (+106.1%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-hit
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0018425000000000002
gen_ai.cost.cache_read_cost0.0006144
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0055429
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0106529
gen_ai.cost.output_cost0.005110000000000001
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0106529
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-8daea8a2-6d66-4445-bbc9-c7567ebae223
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens8935
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages", "response_cost": 0.0106529, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:05 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id4951550e-e38a-46d9-832b-1a61deb1b05d
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 511, 'prompt_tokens': 8424, 'total_tokens': 8935, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 511, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 737, 'cached_tokens': 6144, 'image_tokens': None, 'text_tokens': 1543, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 737}, 'cost': 0.0106529, 'cache_creation_input_tokens': 737, 'cache_read_input_tokens': 6144}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

spantruth.scenario spantruth.driver, status UNSET

wrong litellm · anthropic/stream-cache-hit · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Cost
$0.0107 on the wire, $0.022 from the spans (+106.1%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (3)

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0018425000000000002
gen_ai.cost.cache_read_cost0.0006144
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0055429
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0106529
gen_ai.cost.output_cost0.005110000000000001
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0106529
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-8daea8a2-6d66-4445-bbc9-c7567ebae223
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens8935
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages", "response_cost": 0.0106529, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:05 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id4951550e-e38a-46d9-832b-1a61deb1b05d
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 511, 'prompt_tokens': 8424, 'total_tokens': 8935, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 511, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 737, 'cached_tokens': 6144, 'image_tokens': None, 'text_tokens': 1543, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 737}, 'cost': 0.0106529, 'cache_creation_input_tokens': 737, 'cache_read_input_tokens': 6144}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

spantruth.scenario spantruth.driver, status UNSET

wrong litellm · anthropic/stream-cache-hit · response_id #
expected msg_wt_scache, reported chatcmpl-8daea8a2-6d66-4445-bbc9-c7567ebae223
Expected
msg_wt_scache
Reported
chatcmpl-8daea8a2-6d66-4445-bbc9-c7567ebae223
Read from
gen_ai.response.id
Cost
$0.0107 on the wire, $0.022 from the spans (+106.1%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-hit
Rule
The unique identifier of the completion.
Exported spans (3)

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0018425000000000002
gen_ai.cost.cache_read_cost0.0006144
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0055429
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0106529
gen_ai.cost.output_cost0.005110000000000001
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0106529
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-8daea8a2-6d66-4445-bbc9-c7567ebae223
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens8935
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages", "response_cost": 0.0106529, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:05 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id4951550e-e38a-46d9-832b-1a61deb1b05d
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 511, 'prompt_tokens': 8424, 'total_tokens': 8935, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 511, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 737, 'cached_tokens': 6144, 'image_tokens': None, 'text_tokens': 1543, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 737}, 'cost': 0.0106529, 'cache_creation_input_tokens': 737, 'cache_read_input_tokens': 6144}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

spantruth.scenario spantruth.driver, status UNSET

wrong litellm · anthropic/stream-cache-hit · finish_reasonsSilent stop #
expected end_turn, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['end_turn']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Cost
$0.0107 on the wire, $0.022 from the spans (+106.1%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0018425000000000002
gen_ai.cost.cache_read_cost0.0006144
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0055429
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0106529
gen_ai.cost.output_cost0.005110000000000001
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0106529
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-8daea8a2-6d66-4445-bbc9-c7567ebae223
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens8935
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages", "response_cost": 0.0106529, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:05 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id4951550e-e38a-46d9-832b-1a61deb1b05d
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 511, 'prompt_tokens': 8424, 'total_tokens': 8935, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 511, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 737, 'cached_tokens': 6144, 'image_tokens': None, 'text_tokens': 1543, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 737}, 'cost': 0.0106529, 'cache_creation_input_tokens': 737, 'cache_read_input_tokens': 6144}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

spantruth.scenario spantruth.driver, status UNSET

missing litellm · anthropic/stream-cache-hit · cache_read_tokensCache-blind tokens #
expected 6144, reported nothing
Expected
6144
Cost
$0.0107 on the wire, $0.022 from the spans (+106.1%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-hit
Rule
Input tokens read from the provider cache.
Exported spans (3)

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0018425000000000002
gen_ai.cost.cache_read_cost0.0006144
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0055429
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0106529
gen_ai.cost.output_cost0.005110000000000001
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0106529
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-8daea8a2-6d66-4445-bbc9-c7567ebae223
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens8935
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages", "response_cost": 0.0106529, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:05 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id4951550e-e38a-46d9-832b-1a61deb1b05d
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 511, 'prompt_tokens': 8424, 'total_tokens': 8935, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 511, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 737, 'cached_tokens': 6144, 'image_tokens': None, 'text_tokens': 1543, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 737}, 'cost': 0.0106529, 'cache_creation_input_tokens': 737, 'cache_read_input_tokens': 6144}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

spantruth.scenario spantruth.driver, status UNSET

missing litellm · anthropic/stream-cache-hit · cache_write_tokensCache-blind tokens #
expected 737, reported nothing
Expected
737
Cost
$0.0107 on the wire, $0.022 from the spans (+106.1%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-cache-hit
Rule
Input tokens written to the provider cache.
Exported spans (3)

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.0018425000000000002
gen_ai.cost.cache_read_cost0.0006144
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0055429
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0106529
gen_ai.cost.output_cost0.005110000000000001
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0106529
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-8daea8a2-6d66-4445-bbc9-c7567ebae223
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens8935
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages", "response_cost": 0.0106529, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:05 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id4951550e-e38a-46d9-832b-1a61deb1b05d
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 511, 'prompt_tokens': 8424, 'total_tokens': 8935, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 511, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 737, 'cached_tokens': 6144, 'image_tokens': None, 'text_tokens': 1543, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 737}, 'cost': 0.0106529, 'cache_creation_input_tokens': 737, 'cache_read_input_tokens': 6144}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

spantruth.scenario spantruth.driver, status UNSET

wrong litellm · anthropic/stream-dropped · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-dropped
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status ERROR

error.messagepeer closed connection without sending complete message body (incomplete chunked read)
error.stack_trace File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/litellm/litellm_core_utils/streaming_handler.py", line 2428, in __next__ chunk = next(self.completion_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/litellm/llms/anthropic/chat/handler.py", line 1545, in __next__ chunk = self.response_iterator.__next__() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/litellm/llms/custom_httpx/sse_lines.py", line 55, in iter_sse_lines for text in text_chunks: ^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/httpx/_models.py", line 916, in iter_text for byte_content in self.iter_bytes(): ^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/httpx/_models.py", line 897, in iter_bytes for raw_bytes in self.iter_raw(): ^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/httpx/_models.py", line 951, in iter_raw for raw_stream_bytes in self.stream: ^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/httpx/_client.py", line 153, in __iter__ for chunk in self._stream: ^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/httpx/_transports/default.py", line 126, in __iter__ with map_httpcore_exceptions(): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/_temp/uv-python-dir/cpython-3.12.16-linux-x86_64-gnu/lib/python3.12/contextlib.py", line 158, in __exit__ self.gen.throw(value) File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions raise mapped_exc(message) from exc
error.typeRemoteProtocolError
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0
gen_ai.cost.output_cost0.0
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.id8aa4da00-390d-4d6f-9483-a30d55c64ba4
gen_ai.systemanthropic
hidden_params{"model_id": null, "cache_key": null, "api_base": null, "response_cost": 0.0, "additional_headers": null, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8aa4da00-390d-4d6f-9483-a30d55c64ba4
litellm.provider.modelclaude-sonnet-5-5
litellm.usage.estimated_input_tokens14
litellm.usage.provider_statusunknown
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata
missing litellm · anthropic/stream-early-exit · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-early-exit
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing litellm · anthropic/stream-early-exit-with · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-early-exit-with
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

wrong litellm · anthropic/stream-error-event · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-error-event
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status ERROR

error.code500
error.messageOverloaded
error.stack_trace File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/litellm/litellm_core_utils/streaming_handler.py", line 2428, in __next__ chunk = next(self.completion_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/litellm/llms/anthropic/chat/handler.py", line 1568, in __next__ result = self._parse_sse_data(str_line) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/litellm/llms/anthropic/chat/handler.py", line 1516, in _parse_sse_data return self.chunk_parser(chunk=data_json) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/litellm/llms/anthropic/chat/handler.py", line 1247, in chunk_parser raise AnthropicError(
error.typeAnthropicError
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0
gen_ai.cost.output_cost0.0
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.ida2484ca5-2977-46a2-ac04-a2b7ab6a94f5
gen_ai.systemanthropic
hidden_params{"model_id": null, "cache_key": null, "api_base": null, "response_cost": 0.0, "additional_headers": null, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
http.response.status_code500
litellm.cache_hitFalse
litellm.call_ida2484ca5-2977-46a2-ac04-a2b7ab6a94f5
litellm.provider.modelclaude-sonnet-5-5
litellm.usage.estimated_input_tokens14
litellm.usage.provider_statusunknown
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata
wrong litellm · anthropic/stream-thinking · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-thinking
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.003662
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.018052000000000002
gen_ai.cost.output_cost0.014390000000000002
gen_ai.cost.reasoning_cost0.011030000000000002
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.018052000000000002
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-ea4b0bff-cb9a-4030-9f82-91e3d95e8ac3
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens3270
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-thinking/v1/messages", "response_cost": 0.018052000000000002, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:47:11 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idad68ef7e-a016-4d0b-a86b-16135c3e6d35
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 1439, 'prompt_tokens': 1831, 'total_tokens': 3270, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 1103, 'rejected_prediction_tokens': None, 'text_tokens': 336, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1831, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.018052000000000002, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-thinking · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-thinking
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.003662
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.018052000000000002
gen_ai.cost.output_cost0.014390000000000002
gen_ai.cost.reasoning_cost0.011030000000000002
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.018052000000000002
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-ea4b0bff-cb9a-4030-9f82-91e3d95e8ac3
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens3270
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-thinking/v1/messages", "response_cost": 0.018052000000000002, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:47:11 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idad68ef7e-a016-4d0b-a86b-16135c3e6d35
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 1439, 'prompt_tokens': 1831, 'total_tokens': 3270, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 1103, 'rejected_prediction_tokens': None, 'text_tokens': 336, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1831, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.018052000000000002, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-thinking · response_id #
expected msg_wt_sthink, reported chatcmpl-ea4b0bff-cb9a-4030-9f82-91e3d95e8ac3
Expected
msg_wt_sthink
Reported
chatcmpl-ea4b0bff-cb9a-4030-9f82-91e3d95e8ac3
Read from
gen_ai.response.id
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-thinking
Rule
The unique identifier of the completion.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.003662
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.018052000000000002
gen_ai.cost.output_cost0.014390000000000002
gen_ai.cost.reasoning_cost0.011030000000000002
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.018052000000000002
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-ea4b0bff-cb9a-4030-9f82-91e3d95e8ac3
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens3270
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-thinking/v1/messages", "response_cost": 0.018052000000000002, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:47:11 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idad68ef7e-a016-4d0b-a86b-16135c3e6d35
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 1439, 'prompt_tokens': 1831, 'total_tokens': 3270, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 1103, 'rejected_prediction_tokens': None, 'text_tokens': 336, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1831, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.018052000000000002, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-thinking · finish_reasonsSilent stop #
expected end_turn, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['end_turn']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.003662
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.018052000000000002
gen_ai.cost.output_cost0.014390000000000002
gen_ai.cost.reasoning_cost0.011030000000000002
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.018052000000000002
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-ea4b0bff-cb9a-4030-9f82-91e3d95e8ac3
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens3270
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-thinking/v1/messages", "response_cost": 0.018052000000000002, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:47:11 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idad68ef7e-a016-4d0b-a86b-16135c3e6d35
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 1439, 'prompt_tokens': 1831, 'total_tokens': 3270, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 1103, 'rejected_prediction_tokens': None, 'text_tokens': 336, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1831, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.018052000000000002, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

missing litellm · anthropic/stream-thinking · reasoning_tokensHidden reasoning #
expected 1103, reported nothing
Expected
1103
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.003662
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.018052000000000002
gen_ai.cost.output_cost0.014390000000000002
gen_ai.cost.reasoning_cost0.011030000000000002
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.018052000000000002
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-ea4b0bff-cb9a-4030-9f82-91e3d95e8ac3
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens3270
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-thinking/v1/messages", "response_cost": 0.018052000000000002, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:47:11 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idad68ef7e-a016-4d0b-a86b-16135c3e6d35
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 1439, 'prompt_tokens': 1831, 'total_tokens': 3270, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 1103, 'rejected_prediction_tokens': None, 'text_tokens': 336, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1831, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.018052000000000002, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-tool-call · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-tool-call
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.completion.0.function_call.arguments{"city": "Paris"}
gen_ai.completion.0.function_call.nameget_weather
gen_ai.completion.1.function_call.arguments{"zone": "Europe/Paris"}
gen_ai.completion.1.function_call.nameget_time
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.003238
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.005208
gen_ai.cost.output_cost0.00197
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.005208
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": ""}], "finish_reason": "tool_calls"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-e72940ae-e6f7-4775-b30c-9fe52d5926ff
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens1816
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-tool-call/v1/messages", "response_cost": 0.005208, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:49 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_ida1fedd0b-5dd1-48d9-b1be-1c95f64f99e8
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.functions.0.description
llm.request.functions.0.nameget_weather
llm.request.functions.0.parameters{"type": "object", "properties": {"city": {"type": "string"}}}
llm.request.functions.1.description
llm.request.functions.1.nameget_time
llm.request.functions.1.parameters{"type": "object", "properties": {"zone": {"type": "string"}}}
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 197, 'prompt_tokens': 1619, 'total_tokens': 1816, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 197, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1619, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.005208, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-tool-call · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-tool-call
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.completion.0.function_call.arguments{"city": "Paris"}
gen_ai.completion.0.function_call.nameget_weather
gen_ai.completion.1.function_call.arguments{"zone": "Europe/Paris"}
gen_ai.completion.1.function_call.nameget_time
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.003238
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.005208
gen_ai.cost.output_cost0.00197
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.005208
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": ""}], "finish_reason": "tool_calls"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-e72940ae-e6f7-4775-b30c-9fe52d5926ff
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens1816
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-tool-call/v1/messages", "response_cost": 0.005208, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:49 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_ida1fedd0b-5dd1-48d9-b1be-1c95f64f99e8
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.functions.0.description
llm.request.functions.0.nameget_weather
llm.request.functions.0.parameters{"type": "object", "properties": {"city": {"type": "string"}}}
llm.request.functions.1.description
llm.request.functions.1.nameget_time
llm.request.functions.1.parameters{"type": "object", "properties": {"zone": {"type": "string"}}}
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 197, 'prompt_tokens': 1619, 'total_tokens': 1816, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 197, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1619, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.005208, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-tool-call · response_id #
expected msg_wt_stools, reported chatcmpl-e72940ae-e6f7-4775-b30c-9fe52d5926ff
Expected
msg_wt_stools
Reported
chatcmpl-e72940ae-e6f7-4775-b30c-9fe52d5926ff
Read from
gen_ai.response.id
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-tool-call
Rule
The unique identifier of the completion.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.completion.0.function_call.arguments{"city": "Paris"}
gen_ai.completion.0.function_call.nameget_weather
gen_ai.completion.1.function_call.arguments{"zone": "Europe/Paris"}
gen_ai.completion.1.function_call.nameget_time
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.003238
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.005208
gen_ai.cost.output_cost0.00197
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.005208
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": ""}], "finish_reason": "tool_calls"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-e72940ae-e6f7-4775-b30c-9fe52d5926ff
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens1816
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-tool-call/v1/messages", "response_cost": 0.005208, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:49 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_ida1fedd0b-5dd1-48d9-b1be-1c95f64f99e8
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.functions.0.description
llm.request.functions.0.nameget_weather
llm.request.functions.0.parameters{"type": "object", "properties": {"city": {"type": "string"}}}
llm.request.functions.1.description
llm.request.functions.1.nameget_time
llm.request.functions.1.parameters{"type": "object", "properties": {"zone": {"type": "string"}}}
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 197, 'prompt_tokens': 1619, 'total_tokens': 1816, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 197, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1619, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.005208, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-tool-call · finish_reasonsSilent stop #
expected tool_use, reported ["tool_calls"]: the right values, recorded as the JSON string ["tool_calls"] instead of a string array
Expected
['tool_use']
Reported
["tool_calls"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["tool_calls"] instead of a string array
Reproduce
spantruth run --subject litellm --scenario anthropic/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.completion.0.function_call.arguments{"city": "Paris"}
gen_ai.completion.0.function_call.nameget_weather
gen_ai.completion.1.function_call.arguments{"zone": "Europe/Paris"}
gen_ai.completion.1.function_call.nameget_time
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.003238
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.005208
gen_ai.cost.output_cost0.00197
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.005208
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": ""}], "finish_reason": "tool_calls"}]
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-e72940ae-e6f7-4775-b30c-9fe52d5926ff
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
gen_ai.usage.total_tokens1816
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/anthropic--stream-tool-call/v1/messages", "response_cost": 0.005208, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:46:49 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_ida1fedd0b-5dd1-48d9-b1be-1c95f64f99e8
litellm.provider.modelclaude-sonnet-5-5
llm.is_streamingTrue
llm.request.functions.0.description
llm.request.functions.0.nameget_weather
llm.request.functions.0.parameters{"type": "object", "properties": {"city": {"type": "string"}}}
llm.request.functions.1.description
llm.request.functions.1.nameget_time
llm.request.functions.1.parameters{"type": "object", "properties": {"zone": {"type": "string"}}}
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 197, 'prompt_tokens': 1619, 'total_tokens': 1816, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 197, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': None, 'cache_write_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': 1619, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 0}, 'cost': 0.005208, 'cache_creation_input_tokens': 0, 'cache_read_input_tokens': 0}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/async-basic · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario openai/async-basic
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.00029675
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0008227499999999999
gen_ai.cost.output_cost0.000526
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0008227499999999999
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.nameacompletion
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-basic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--async-basic/v1", "response_cost": 0.0008227499999999999, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:47:46 GMT", "llm_provider-content-type": "application/json", "llm_provider-content-length": "648", "llm_provider-x-request-id": "req_spantruth", "llm_provider-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 946.2759, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": "openai/gpt-5-mini", "usage_object": null}
litellm.cache_hitFalse
litellm.call_id7b81aa22-c80d-48f9-b046-4ae985981fa5
litellm.provider.modelopenai/gpt-5-mini
llm.is_streamingFalse
llm.request.typeacompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 263, 'prompt_tokens': 1187, 'total_tokens': 1450, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0}}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

llm.openai.choices[{'finish_reason': 'stop', 'index': 0, 'logprobs': None, 'message': {'content': 'The capital of France is Paris.', 'refusal': None, 'role': 'assistant', 'annotations': []}}]
llm.openai.created1760000000
llm.openai.idchatcmpl-wt-basic
llm.openai.messages[{'role': 'user', 'content': 'What is the capital of France?'}]
llm.openai.modelgpt-5-mini-2026-08-07
llm.openai.objectchat.completion
llm.openai.service_tierdefault
llm.openai.system_fingerprintfp_wt0001
llm.openai.usage{'completion_tokens': 263, 'prompt_tokens': 1187, 'total_tokens': 1450, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0}}
wrong litellm · openai/async-basic · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject litellm --scenario openai/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.00029675
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0008227499999999999
gen_ai.cost.output_cost0.000526
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0008227499999999999
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.nameacompletion
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-basic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--async-basic/v1", "response_cost": 0.0008227499999999999, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:47:46 GMT", "llm_provider-content-type": "application/json", "llm_provider-content-length": "648", "llm_provider-x-request-id": "req_spantruth", "llm_provider-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 946.2759, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": "openai/gpt-5-mini", "usage_object": null}
litellm.cache_hitFalse
litellm.call_id7b81aa22-c80d-48f9-b046-4ae985981fa5
litellm.provider.modelopenai/gpt-5-mini
llm.is_streamingFalse
llm.request.typeacompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 263, 'prompt_tokens': 1187, 'total_tokens': 1450, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0}}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

llm.openai.choices[{'finish_reason': 'stop', 'index': 0, 'logprobs': None, 'message': {'content': 'The capital of France is Paris.', 'refusal': None, 'role': 'assistant', 'annotations': []}}]
llm.openai.created1760000000
llm.openai.idchatcmpl-wt-basic
llm.openai.messages[{'role': 'user', 'content': 'What is the capital of France?'}]
llm.openai.modelgpt-5-mini-2026-08-07
llm.openai.objectchat.completion
llm.openai.service_tierdefault
llm.openai.system_fingerprintfp_wt0001
llm.openai.usage{'completion_tokens': 263, 'prompt_tokens': 1187, 'total_tokens': 1450, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0}}
missing litellm · openai/async-stream-early-exit · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/async-stream-early-exit
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

wrong litellm · openai/stream · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario openai/stream
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0005777499999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00141575
gen_ai.cost.output_cost0.000838
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00141575
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream/v1/", "response_cost": 0.00141575, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:14 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1036.4779, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id079ec74d-c9d7-4b21-915a-ad193e7c4887
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 419, 'prompt_tokens': 2311, 'total_tokens': 2730, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.00141575}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject litellm --scenario openai/stream
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0005777499999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00141575
gen_ai.cost.output_cost0.000838
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00141575
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream/v1/", "response_cost": 0.00141575, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:14 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1036.4779, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id079ec74d-c9d7-4b21-915a-ad193e7c4887
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 419, 'prompt_tokens': 2311, 'total_tokens': 2730, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.00141575}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject litellm --scenario openai/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0005777499999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00141575
gen_ai.cost.output_cost0.000838
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00141575
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream/v1/", "response_cost": 0.00141575, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:14 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1036.4779, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id079ec74d-c9d7-4b21-915a-ad193e7c4887
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 419, 'prompt_tokens': 2311, 'total_tokens': 2730, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.00141575}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-cache-hit · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Cost
$0.00144 on the wire, $0.00283 from the spans (+95.8%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-cache-hit
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_read_cost0.0001536
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.00042084999999999996
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0014428499999999999
gen_ai.cost.output_cost0.001022
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0014428499999999999
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scache
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens7724
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-cache-hit/v1/", "response_cost": 0.0014428499999999999, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:36 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 837.166, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idd38dee0e-c02d-4dfb-9610-e4bc4812ec88
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 511, 'prompt_tokens': 7213, 'total_tokens': 7724, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 6144, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.0014428499999999999}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-cache-hit · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Cost
$0.00144 on the wire, $0.00283 from the spans (+95.8%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_read_cost0.0001536
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.00042084999999999996
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0014428499999999999
gen_ai.cost.output_cost0.001022
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0014428499999999999
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scache
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens7724
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-cache-hit/v1/", "response_cost": 0.0014428499999999999, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:36 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 837.166, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idd38dee0e-c02d-4dfb-9610-e4bc4812ec88
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 511, 'prompt_tokens': 7213, 'total_tokens': 7724, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 6144, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.0014428499999999999}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-cache-hit · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Cost
$0.00144 on the wire, $0.00283 from the spans (+95.8%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_read_cost0.0001536
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.00042084999999999996
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0014428499999999999
gen_ai.cost.output_cost0.001022
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0014428499999999999
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scache
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens7724
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-cache-hit/v1/", "response_cost": 0.0014428499999999999, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:36 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 837.166, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idd38dee0e-c02d-4dfb-9610-e4bc4812ec88
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 511, 'prompt_tokens': 7213, 'total_tokens': 7724, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 6144, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.0014428499999999999}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

missing litellm · openai/stream-cache-hit · cache_read_tokensCache-blind tokens #
expected 6144, reported nothing
Expected
6144
Cost
$0.00144 on the wire, $0.00283 from the spans (+95.8%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-cache-hit
Rule
Input tokens read from the provider cache.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_read_cost0.0001536
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.00042084999999999996
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0014428499999999999
gen_ai.cost.output_cost0.001022
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0014428499999999999
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scache
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens7724
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-cache-hit/v1/", "response_cost": 0.0014428499999999999, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:36 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 837.166, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idd38dee0e-c02d-4dfb-9610-e4bc4812ec88
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 511, 'prompt_tokens': 7213, 'total_tokens': 7724, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 6144, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.0014428499999999999}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-cache-write · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Cost
$0.00166 on the wire, $0.0022 from the spans (+32.4%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-cache-write
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.00088475
gen_ai.cost.cache_read_cost7.934e-05
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0011102899999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00165869
gen_ai.cost.output_cost0.0005484
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00165869
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna
gen_ai.systemopenai
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-cache-write/v1/", "response_cost": 0.00165869, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:47 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1006.4289, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8ebaecea-898b-4c5e-b2c5-453c384196c8
litellm.provider.modelgpt-5.6-luna
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 457, 'prompt_tokens': 8237, 'total_tokens': 8694, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cache_write_tokens': 3539, 'cached_tokens': 3967, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 3539}, 'cost': 0.00165869}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-cache-write · response_model #
expected gpt-5.6-luna-2026-10-14, reported gpt-5.6-luna
Expected
gpt-5.6-luna-2026-10-14
Reported
gpt-5.6-luna
Read from
gen_ai.response.model
Cost
$0.00166 on the wire, $0.0022 from the spans (+32.4%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-cache-write
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.00088475
gen_ai.cost.cache_read_cost7.934e-05
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0011102899999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00165869
gen_ai.cost.output_cost0.0005484
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00165869
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna
gen_ai.systemopenai
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-cache-write/v1/", "response_cost": 0.00165869, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:47 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1006.4289, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8ebaecea-898b-4c5e-b2c5-453c384196c8
litellm.provider.modelgpt-5.6-luna
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 457, 'prompt_tokens': 8237, 'total_tokens': 8694, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cache_write_tokens': 3539, 'cached_tokens': 3967, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 3539}, 'cost': 0.00165869}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-cache-write · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Cost
$0.00166 on the wire, $0.0022 from the spans (+32.4%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-cache-write
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.00088475
gen_ai.cost.cache_read_cost7.934e-05
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0011102899999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00165869
gen_ai.cost.output_cost0.0005484
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00165869
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna
gen_ai.systemopenai
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-cache-write/v1/", "response_cost": 0.00165869, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:47 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1006.4289, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8ebaecea-898b-4c5e-b2c5-453c384196c8
litellm.provider.modelgpt-5.6-luna
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 457, 'prompt_tokens': 8237, 'total_tokens': 8694, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cache_write_tokens': 3539, 'cached_tokens': 3967, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 3539}, 'cost': 0.00165869}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

missing litellm · openai/stream-cache-write · cache_read_tokensCache-blind tokens #
expected 3967, reported nothing
Expected
3967
Cost
$0.00166 on the wire, $0.0022 from the spans (+32.4%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-cache-write
Rule
Input tokens read from the provider cache.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.00088475
gen_ai.cost.cache_read_cost7.934e-05
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0011102899999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00165869
gen_ai.cost.output_cost0.0005484
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00165869
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna
gen_ai.systemopenai
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-cache-write/v1/", "response_cost": 0.00165869, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:47 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1006.4289, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8ebaecea-898b-4c5e-b2c5-453c384196c8
litellm.provider.modelgpt-5.6-luna
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 457, 'prompt_tokens': 8237, 'total_tokens': 8694, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cache_write_tokens': 3539, 'cached_tokens': 3967, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 3539}, 'cost': 0.00165869}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

missing litellm · openai/stream-cache-write · cache_write_tokensCache-blind tokens #
expected 3539, reported nothing
Expected
3539
Cost
$0.00166 on the wire, $0.0022 from the spans (+32.4%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-cache-write
Rule
Input tokens written to the provider cache.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.cache_creation_cost0.00088475
gen_ai.cost.cache_read_cost7.934e-05
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0011102899999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00165869
gen_ai.cost.output_cost0.0005484
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00165869
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna
gen_ai.systemopenai
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-cache-write/v1/", "response_cost": 0.00165869, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:47 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1006.4289, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id8ebaecea-898b-4c5e-b2c5-453c384196c8
litellm.provider.modelgpt-5.6-luna
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 457, 'prompt_tokens': 8237, 'total_tokens': 8694, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cache_write_tokens': 3539, 'cached_tokens': 3967, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None, 'cache_creation_tokens': 3539}, 'cost': 0.00165869}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-dropped · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario openai/stream-dropped
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status ERROR

error.messageConnection error.
error.stack_trace File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/litellm/litellm_core_utils/streaming_handler.py", line 2428, in __next__ chunk = next(self.completion_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/openai/_streaming.py", line 49, in __next__ return self._iterator.__next__() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/openai/_streaming.py", line 70, in __stream__ for sse in iterator: ^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-0b4271858004/lib/python3.12/site-packages/openai/_streaming.py", line 61, in _iter_events raise APIConnectionError(request=self.response.request) from err
error.typeAPIConnectionError
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.0
gen_ai.cost.output_cost0.0
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.0
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.idd4e8ea15-0743-4ecd-84eb-e6988b618e89
gen_ai.systemopenai
hidden_params{"model_id": null, "cache_key": null, "api_base": null, "response_cost": 0.0, "additional_headers": null, "litellm_overhead_time_ms": null, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idd4e8ea15-0743-4ecd-84eb-e6988b618e89
litellm.provider.modelgpt-5-mini
litellm.usage.estimated_input_tokens14
litellm.usage.provider_statusunknown
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata
missing litellm · openai/stream-early-exit · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-early-exit
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing litellm · openai/stream-early-exit-with · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject litellm --scenario openai/stream-early-exit-with
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

wrong litellm · openai/stream-no-usage · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario openai/stream-no-usage
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost3.5e-06
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost1.75e-05
gen_ai.cost.output_cost1.4e-05
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost1.75e-05
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens14
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens21
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-no-usage/v1/", "response_cost": 1.75e-05, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:59 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1146.4889, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id33550cb9-a3e1-4fc4-bd1a-2c16a54d4669
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 7, 'prompt_tokens': 14, 'total_tokens': 21, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 7, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': None, 'cost': 1.75e-05}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-no-usage · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject litellm --scenario openai/stream-no-usage
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost3.5e-06
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost1.75e-05
gen_ai.cost.output_cost1.4e-05
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost1.75e-05
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens14
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens21
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-no-usage/v1/", "response_cost": 1.75e-05, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:59 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1146.4889, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id33550cb9-a3e1-4fc4-bd1a-2c16a54d4669
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 7, 'prompt_tokens': 14, 'total_tokens': 21, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 7, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': None, 'cost': 1.75e-05}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-no-usage · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject litellm --scenario openai/stream-no-usage
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost3.5e-06
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost1.75e-05
gen_ai.cost.output_cost1.4e-05
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost1.75e-05
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens14
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens21
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-no-usage/v1/", "response_cost": 1.75e-05, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:59 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1146.4889, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id33550cb9-a3e1-4fc4-bd1a-2c16a54d4669
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 7, 'prompt_tokens': 14, 'total_tokens': 21, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 7, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': None, 'cost': 1.75e-05}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-no-usage · input_tokensPhantom tokens #
expected nothing, reported 14: estimated: the stream carried no usage
Reported
14
Read from
gen_ai.usage.input_tokens
Note
estimated: the stream carried no usage
Reproduce
spantruth run --subject litellm --scenario openai/stream-no-usage
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost3.5e-06
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost1.75e-05
gen_ai.cost.output_cost1.4e-05
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost1.75e-05
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens14
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens21
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-no-usage/v1/", "response_cost": 1.75e-05, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:59 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1146.4889, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id33550cb9-a3e1-4fc4-bd1a-2c16a54d4669
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 7, 'prompt_tokens': 14, 'total_tokens': 21, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 7, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': None, 'cost': 1.75e-05}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-no-usage · output_tokensPhantom tokens #
expected nothing, reported 7: estimated: the stream carried no usage
Reported
7
Read from
gen_ai.usage.output_tokens
Note
estimated: the stream carried no usage
Reproduce
spantruth run --subject litellm --scenario openai/stream-no-usage
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost3.5e-06
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost1.75e-05
gen_ai.cost.output_cost1.4e-05
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost1.75e-05
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens14
gen_ai.usage.output_tokens7
gen_ai.usage.total_tokens21
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-no-usage/v1/", "response_cost": 1.75e-05, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:44:59 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1146.4889, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id33550cb9-a3e1-4fc4-bd1a-2c16a54d4669
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 7, 'prompt_tokens': 14, 'total_tokens': 21, 'completion_tokens_details': {'accepted_prediction_tokens': None, 'audio_tokens': None, 'reasoning_tokens': 0, 'rejected_prediction_tokens': None, 'text_tokens': 7, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': None, 'cost': 1.75e-05}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-reasoning · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario openai/stream-reasoning
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0005222499999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00544025
gen_ai.cost.output_cost0.004918
gen_ai.cost.reasoning_cost0.003862
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00544025
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.total_tokens4548
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-reasoning/v1/", "response_cost": 0.00544025, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:32 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1099.5601, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id862b74f7-b50a-4138-a2e6-dad0174ea2f3
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 2459, 'prompt_tokens': 2089, 'total_tokens': 4548, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 1931, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.00544025}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-reasoning · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject litellm --scenario openai/stream-reasoning
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0005222499999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00544025
gen_ai.cost.output_cost0.004918
gen_ai.cost.reasoning_cost0.003862
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00544025
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.total_tokens4548
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-reasoning/v1/", "response_cost": 0.00544025, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:32 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1099.5601, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id862b74f7-b50a-4138-a2e6-dad0174ea2f3
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 2459, 'prompt_tokens': 2089, 'total_tokens': 4548, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 1931, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.00544025}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-reasoning · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject litellm --scenario openai/stream-reasoning
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0005222499999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00544025
gen_ai.cost.output_cost0.004918
gen_ai.cost.reasoning_cost0.003862
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00544025
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.total_tokens4548
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-reasoning/v1/", "response_cost": 0.00544025, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:32 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1099.5601, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id862b74f7-b50a-4138-a2e6-dad0174ea2f3
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 2459, 'prompt_tokens': 2089, 'total_tokens': 4548, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 1931, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.00544025}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

missing litellm · openai/stream-reasoning · reasoning_tokensHidden reasoning #
expected 1931, reported nothing
Expected
1931
Reproduce
spantruth run --subject litellm --scenario openai/stream-reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.0005222499999999999
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00544025
gen_ai.cost.output_cost0.004918
gen_ai.cost.reasoning_cost0.003862
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00544025
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.total_tokens4548
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-reasoning/v1/", "response_cost": 0.00544025, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:32 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 1099.5601, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id862b74f7-b50a-4138-a2e6-dad0174ea2f3
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 2459, 'prompt_tokens': 2089, 'total_tokens': 4548, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 1931, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.00544025}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-tool-call · span.parented #
outside the app's trace: litellm_request
Note
outside the app's trace: litellm_request
Reproduce
spantruth run --subject litellm --scenario openai/stream-tool-call
Rule
The span belongs to the trace that was active when the application made the call.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.completion.0.function_call.arguments{"city":"Paris"}
gen_ai.completion.0.function_call.nameget_weather
gen_ai.completion.1.function_call.arguments{"zone":"Europe/Paris"}
gen_ai.completion.1.function_call.nameget_time
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.00038825
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00073425
gen_ai.cost.output_cost0.000346
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00073425
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [], "finish_reason": "tool_calls"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-wt-stools
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.total_tokens1726
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-tool-call/v1/", "response_cost": 0.00073425, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:10 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 948.7699, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id0abab33d-917b-451a-8f94-56005339e9a5
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.functions.0.description
llm.request.functions.0.nameget_weather
llm.request.functions.0.parameters{"type": "object", "properties": {"city": {"type": "string"}}}
llm.request.functions.1.description
llm.request.functions.1.nameget_time
llm.request.functions.1.parameters{"type": "object", "properties": {"zone": {"type": "string"}}}
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 173, 'prompt_tokens': 1553, 'total_tokens': 1726, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.00073425}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-tool-call · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject litellm --scenario openai/stream-tool-call
Rule
The name of the model that generated the response.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.completion.0.function_call.arguments{"city":"Paris"}
gen_ai.completion.0.function_call.nameget_weather
gen_ai.completion.1.function_call.arguments{"zone":"Europe/Paris"}
gen_ai.completion.1.function_call.nameget_time
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.00038825
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00073425
gen_ai.cost.output_cost0.000346
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00073425
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [], "finish_reason": "tool_calls"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-wt-stools
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.total_tokens1726
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-tool-call/v1/", "response_cost": 0.00073425, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:10 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 948.7699, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id0abab33d-917b-451a-8f94-56005339e9a5
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.functions.0.description
llm.request.functions.0.nameget_weather
llm.request.functions.0.parameters{"type": "object", "properties": {"city": {"type": "string"}}}
llm.request.functions.1.description
llm.request.functions.1.nameget_time
llm.request.functions.1.parameters{"type": "object", "properties": {"zone": {"type": "string"}}}
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 173, 'prompt_tokens': 1553, 'total_tokens': 1726, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.00073425}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong litellm · openai/stream-tool-call · finish_reasonsSilent stop #
expected tool_calls, reported ["tool_calls"]: the right values, recorded as the JSON string ["tool_calls"] instead of a string array
Expected
['tool_calls']
Reported
["tool_calls"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["tool_calls"] instead of a string array
Reproduce
spantruth run --subject litellm --scenario openai/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

spantruth.scenario spantruth.driver, status UNSET

litellm_request litellm, status OK

gen_ai.completion.0.function_call.arguments{"city":"Paris"}
gen_ai.completion.0.function_call.nameget_weather
gen_ai.completion.1.function_call.arguments{"zone":"Europe/Paris"}
gen_ai.completion.1.function_call.nameget_time
gen_ai.cost.discount_amount0.0
gen_ai.cost.discount_percent0.0
gen_ai.cost.input_cost0.00038825
gen_ai.cost.margin_fixed_amount0.0
gen_ai.cost.margin_percent0.0
gen_ai.cost.margin_total_amount0.0
gen_ai.cost.original_cost0.00073425
gen_ai.cost.output_cost0.000346
gen_ai.cost.tool_usage_cost0.0
gen_ai.cost.total_cost0.00073425
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.openai.response.service_tierdefault
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [], "finish_reason": "tool_calls"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-wt-stools
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.total_tokens1726
hidden_params{"model_id": null, "cache_key": null, "api_base": "http://127.0.0.1:37565/s/openai--stream-tool-call/v1/", "response_cost": 0.00073425, "additional_headers": {"llm_provider-server": "BaseHTTP/0.6 Python/3.12.16", "llm_provider-date": "Fri, 27 Nov 2026 12:45:10 GMT", "llm_provider-content-type": "text/event-stream", "llm_provider-transfer-encoding": "chunked", "llm_provider-x-request-id": "req_spantruth", "request-id": "req_spantruth"}, "litellm_overhead_time_ms": 948.7699, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id0abab33d-917b-451a-8f94-56005339e9a5
litellm.provider.modelgpt-5-mini
llm.is_streamingTrue
llm.request.functions.0.description
llm.request.functions.0.nameget_weather
llm.request.functions.0.parameters{"type": "object", "properties": {"city": {"type": "string"}}}
llm.request.functions.1.description
llm.request.functions.1.nameget_time
llm.request.functions.1.parameters{"type": "object", "properties": {"zone": {"type": "string"}}}
llm.request.typecompletion
metadata.applied_guardrails[]
metadata.cold_storage_object_key
metadata.kubernetes_pod_routing
metadata.mcp_tool_call_metadata
metadata.prompt_management_metadata
metadata.requester_custom_headers
metadata.requester_ip_address
metadata.requester_metadata
metadata.routing_decision
metadata.spend_logs_metadata
metadata.team_alias
metadata.team_id
metadata.usage_object{'completion_tokens': 173, 'prompt_tokens': 1553, 'total_tokens': 1726, 'completion_tokens_details': {'accepted_prediction_tokens': 0, 'audio_tokens': 0, 'reasoning_tokens': 0, 'rejected_prediction_tokens': 0, 'text_tokens': None, 'image_tokens': None, 'video_tokens': None}, 'prompt_tokens_details': {'audio_tokens': 0, 'cached_tokens': 0, 'image_tokens': None, 'text_tokens': None, 'video_tokens': None, 'initial_prompt_tokens': None}, 'cost': 0.00073425}
metadata.used_client_oauth_token
metadata.user_agent
metadata.user_api_key_alias
metadata.user_api_key_auth_metadata
metadata.user_api_key_budget_reset_at
metadata.user_api_key_customer_member_id
metadata.user_api_key_customer_org_id
metadata.user_api_key_customer_team_id
metadata.user_api_key_end_user_id
metadata.user_api_key_hash
metadata.user_api_key_max_budget
metadata.user_api_key_org_alias
metadata.user_api_key_org_id
metadata.user_api_key_project_alias
metadata.user_api_key_project_id
metadata.user_api_key_request_route
metadata.user_api_key_spend
metadata.user_api_key_team_alias
metadata.user_api_key_team_id
metadata.user_api_key_team_max_budget
metadata.user_api_key_team_spend
metadata.user_api_key_user_email
metadata.user_api_key_user_id
metadata.user_api_key_user_max_budget
metadata.user_api_key_user_spend
metadata.vector_store_request_metadata

raw_gen_ai_request litellm, status OK

wrong logfire · anthropic/agent-loop · finish_reasonsSilent stop #
expected tool_use, reported ["tool_use"]: call 1 of 3: the right values, recorded as the JSON string ["tool_use"] instead of a string array; failed on calls ...
Expected
['tool_use']
Reported
["tool_use"]
Read from
gen_ai.response.finish_reasons
Note
call 1 of 3: the right values, recorded as the JSON string ["tool_use"] instead of a string array; failed on calls 1, 2, 3
Reproduce
spantruth run --subject logfire --scenario anthropic/agent-loop
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_loop
code.lineno335
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"tool_call","id":"toolu_wt_w","name":"get_weather","arguments":{"city":"Paris"}}],"finish_reason":"tool_use"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["tool_use"]
gen_ai.response.idmsg_wt_loop1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1171,"output_tokens":97}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_loop
code.lineno335
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]},{"role":"assistant","parts":[{"type":"text","content":"ToolUseBlock(id='toolu_wt_w', caller=None, input={'city': 'Paris'}, name='get_weather', type='tool_use', toolset_name=None)"}]},{"role":"user","parts":[{"type":"tool_call_response","id":"toolu_wt_w","response":"18 C and sunny"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"tool_call","id":"toolu_wt_t","name":"get_time","arguments":{"zone":"Europe/Paris"}}],"finish_reason":"tool_use"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["tool_use"]
gen_ai.response.idmsg_wt_loop2
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.cache_read.input_tokens1093
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":1093,"input_tokens":214,"output_tokens":89}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_loop
code.lineno335
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]},{"role":"assistant","parts":[{"type":"text","content":"ToolUseBlock(id='toolu_wt_w', caller=None, input={'city': 'Paris'}, name='get_weather', type='tool_use', toolset_name=None)"}]},{"role":"user","parts":[{"type":"tool_call_response","id":"toolu_wt_w","response":"18 C and sunny"}]},{"role":"assistant","parts":[{"type":"text","content":"ToolUseBlock(id='toolu_wt_t', caller=None, input={'zone': 'Europe/Paris'}, name='get_time', type='tool_use', toolset_name=None)"}]},{"role":"user","parts":[{"type":"tool_call_response","id":"toolu_wt_t","response":"14:05"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"It is 18 C and sunny in Paris, and the time is 14:05."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_loop3
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.cache_read.input_tokens1279
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":1279,"input_tokens":180,"output_tokens":211}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/async-basic · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno270
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1187,"output_tokens":263}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/async-concurrent-streams · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5: call 1 of 2; failed on calls 1, 2
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject logfire --scenario anthropic/async-concurrent-streams
Rule
The name of the model that generated the response.
Exported spans (5)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno364
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno364
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-haiku-5-5
gen_ai.response.modelclaude-haiku-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-haiku-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-haiku-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.047981329
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_par1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":769,"input_tokens":264,"output_tokens":149}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.05s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.008254747
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-haiku-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_par2
gen_ai.response.modelclaude-haiku-5-5-20261001
gen_ai.systemanthropic
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1747,"output_tokens":181}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-haiku-5-5' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-haiku-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/async-concurrent-streams · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: call 1 of 2: the right values, recorded as the JSON string ["end_turn"] instead of a string array; failed on calls ...
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
call 1 of 2: the right values, recorded as the JSON string ["end_turn"] instead of a string array; failed on calls 1, 2
Reproduce
spantruth run --subject logfire --scenario anthropic/async-concurrent-streams
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (5)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno364
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno364
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-haiku-5-5
gen_ai.response.modelclaude-haiku-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-haiku-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-haiku-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.047981329
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_par1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":769,"input_tokens":264,"output_tokens":149}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.05s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.008254747
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-haiku-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_par2
gen_ai.response.modelclaude-haiku-5-5-20261001
gen_ai.systemanthropic
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1747,"output_tokens":181}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-haiku-5-5' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-haiku-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/async-stream · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/async-stream
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno270
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_aread
code.lineno284
duration0.039670598
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":2311,"output_tokens":419}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/async-stream · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno270
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_aread
code.lineno284
duration0.039670598
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":2311,"output_tokens":419}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/async-stream-early-exit · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/async-stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno270
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno214
duration0.043782157
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":""}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_early
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1913
gen_ai.usage.output_tokens1
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1913,"output_tokens":1}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/basic · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1187,"output_tokens":263}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/cache-1h · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.cache_creation.input_tokens2120
gen_ai.usage.cache_read.input_tokens2861
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389
gen_ai.usage.raw{"cache_creation":{"ephemeral_1h_input_tokens":1663,"ephemeral_5m_input_tokens":457},"cache_creation_input_tokens":2120,"cache_read_input_tokens":2861,"input_tokens":1307,"output_tokens":389}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/cache-hit · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_cache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.cache_creation.input_tokens519
gen_ai.usage.cache_read.input_tokens4096
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377
gen_ai.usage.raw{"cache_creation_input_tokens":519,"cache_read_input_tokens":4096,"input_tokens":1187,"output_tokens":377}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/content-off · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1187,"output_tokens":263}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/content-on · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1187,"output_tokens":263}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

missing logfire · anthropic/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject logfire --scenario anthropic/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status ERROR

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.exception.fingerprinta9e55ea0cfde93f6168001714e6273c40aedfb6c02bf27d31fa0dfaa1504d274
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.level_num17
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/retry-429 · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/retry-429
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_retry
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":2477,"output_tokens":367}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/stream
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.039399105
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":2311,"output_tokens":419}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.039399105
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":2311,"output_tokens":419}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-cache-1h · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-cache-1h
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.040325267
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.cache_creation.input_tokens2492
gen_ai.usage.cache_read.input_tokens3217
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.raw{"cache_creation":{"ephemeral_1h_input_tokens":1879,"ephemeral_5m_input_tokens":613},"cache_creation_input_tokens":2492,"cache_read_input_tokens":3217,"input_tokens":1451,"output_tokens":523}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-cache-1h · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.040325267
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.cache_creation.input_tokens2492
gen_ai.usage.cache_read.input_tokens3217
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
gen_ai.usage.raw{"cache_creation":{"ephemeral_1h_input_tokens":1879,"ephemeral_5m_input_tokens":613},"cache_creation_input_tokens":2492,"cache_read_input_tokens":3217,"input_tokens":1451,"output_tokens":523}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-cache-cumulative · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-cache-cumulative
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.040702823
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_cumul
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.cache_creation.input_tokens811
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.raw{"cache_creation_input_tokens":811,"cache_read_input_tokens":3583,"input_tokens":1279,"output_tokens":467}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-cache-cumulative · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-cache-cumulative
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.040702823
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_cumul
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.cache_creation.input_tokens811
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
gen_ai.usage.raw{"cache_creation_input_tokens":811,"cache_read_input_tokens":3583,"input_tokens":1279,"output_tokens":467}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-cache-hit · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.034351683
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.cache_creation.input_tokens737
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.raw{"cache_creation_input_tokens":737,"cache_read_input_tokens":6144,"input_tokens":1543,"output_tokens":511}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.03s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-cache-hit · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.034351683
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.cache_creation.input_tokens737
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
gen_ai.usage.raw{"cache_creation_input_tokens":737,"cache_read_input_tokens":6144,"input_tokens":1543,"output_tokens":511}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.03s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-content-off · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-content-off
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.039383044
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":2311,"output_tokens":419}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-content-off · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.039383044
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":2311,"output_tokens":419}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-content-on · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-content-on
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.040384313
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":2311,"output_tokens":419}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-content-on · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.040384313
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":2311,"output_tokens":419}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-early-exit · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/driver.py
code.functionobserve
code.lineno45
duration0.041764609
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":""}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_early
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1913
gen_ai.usage.output_tokens1
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1913,"output_tokens":1}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-early-exit-with · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-early-exit-with
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/driver.py
code.functionobserve
code.lineno45
duration0.03894167
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":""}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_early
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1913
gen_ai.usage.output_tokens1
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1913,"output_tokens":1}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-thinking · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-thinking
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.037632373
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"signature":"dGVzdC1zaWduYXR1cmU=","thinking":"Let me think about the capital of France. The capital is Paris.","type":"thinking"},{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1831,"output_tokens":1439,"output_tokens_details":{"thinking_tokens":1103}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-thinking · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.037632373
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"signature":"dGVzdC1zaWduYXR1cmU=","thinking":"Let me think about the capital of France. The capital is Paris.","type":"thinking"},{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1831,"output_tokens":1439,"output_tokens_details":{"thinking_tokens":1103}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

missing logfire · anthropic/stream-thinking · reasoning_tokensHidden reasoning #
expected 1103, reported nothing
Expected
1103
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.037632373
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"signature":"dGVzdC1zaWduYXR1cmU=","thinking":"Let me think about the capital of France. The capital is Paris.","type":"thinking"},{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1831,"output_tokens":1439,"output_tokens_details":{"thinking_tokens":1103}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.04s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-tool-call · response_model #
expected claude-sonnet-5-5-20260915, reported claude-sonnet-5-5
Expected
claude-sonnet-5-5-20260915
Reported
claude-sonnet-5-5
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-tool-call
Rule
The name of the model that generated the response.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.034653066
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"tool_call","id":"toolu_wt_1","name":"get_weather","arguments":{"city":"Paris"}},{"type":"tool_call","id":"toolu_wt_2","name":"get_time","arguments":{"zone":"Europe/Paris"}}],"finish_reason":"tool_use"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["tool_use"]
gen_ai.response.idmsg_wt_stools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1619,"output_tokens":197}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.03s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/stream-tool-call · finish_reasonsSilent stop #
expected tool_use, reported ["tool_use"]: the right values, recorded as the JSON string ["tool_use"] instead of a string array
Expected
['tool_use']
Reported
["tool_use"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["tool_use"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.modelclaude-sonnet-5-5
gen_ai.systemanthropic
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.034653066
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"tool_call","id":"toolu_wt_1","name":"get_weather","arguments":{"city":"Paris"}},{"type":"tool_call","id":"toolu_wt_2","name":"get_time","arguments":{"zone":"Europe/Paris"}}],"finish_reason":"tool_use"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["tool_use"]
gen_ai.response.idmsg_wt_stools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1619,"output_tokens":197}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'claude-sonnet-5-5' took 0.03s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/thinking · finish_reasonsSilent stop #
expected end_turn, reported ["end_turn"]: the right values, recorded as the JSON string ["end_turn"] instead of a string array
Expected
['end_turn']
Reported
["end_turn"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["end_turn"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"signature":"dGVzdC1zaWduYXR1cmU=","thinking":"Let me think about the capital of France. The capital of France is Paris.","type":"thinking"},{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1627,"output_tokens":1273,"output_tokens_details":{"thinking_tokens":947}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

missing logfire · anthropic/thinking · reasoning_tokensHidden reasoning #
expected 947, reported nothing
Expected
947
Reproduce
spantruth run --subject logfire --scenario anthropic/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"signature":"dGVzdC1zaWduYXR1cmU=","thinking":"Let me think about the capital of France. The capital of France is Paris.","type":"thinking"},{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"end_turn"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["end_turn"]
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1627,"output_tokens":1273,"output_tokens_details":{"thinking_tokens":947}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · anthropic/tool-call · finish_reasonsSilent stop #
expected tool_use, reported ["tool_use"]: the right values, recorded as the JSON string ["tool_use"] instead of a string array
Expected
['tool_use']
Reported
["tool_use"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["tool_use"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario anthropic/tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Message with {request_data[model]!r} logfire.anthropic, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno232
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"tool_call","id":"toolu_wt_1","name":"get_weather","arguments":{"city":"Paris"}},{"type":"tool_call","id":"toolu_wt_2","name":"get_time","arguments":{"zone":"Europe/Paris"}}],"finish_reason":"tool_use"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons["tool_use"]
gen_ai.response.idmsg_wt_tools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.raw{"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":931,"output_tokens":88}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.request.max_tokens":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgMessage with 'claude-sonnet-5-5'
logfire.msg_templateMessage with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"claude-sonnet-5-5"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · azure/async-basic · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario azure/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno263
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-azbasic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.raw{"completion_tokens":277,"prompt_tokens":1213,"total_tokens":1490,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'wt-chat-deployment'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · azure/async-stream · response_model #
expected gpt-5-mini-2026-08-07, reported wt-chat-deployment
Expected
gpt-5-mini-2026-08-07
Reported
wt-chat-deployment
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario azure/async-stream
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno263
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'wt-chat-deployment'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_aread
code.lineno284
duration0.017152262
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.finish_reasons["stop"]
gen_ai.response.id
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.raw{"completion_tokens":433,"prompt_tokens":2341,"total_tokens":2774,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'wt-chat-deployment' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

spantruth.scenario spantruth.driver, status UNSET

missing logfire · azure/async-stream · response_id #
expected chatcmpl-wt-azstream, reported nothing
Expected
chatcmpl-wt-azstream
Reproduce
spantruth run --subject logfire --scenario azure/async-stream
Rule
The unique identifier of the completion.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno263
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'wt-chat-deployment'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_aread
code.lineno284
duration0.017152262
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.finish_reasons["stop"]
gen_ai.response.id
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.raw{"completion_tokens":433,"prompt_tokens":2341,"total_tokens":2774,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'wt-chat-deployment' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · azure/async-stream · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario azure/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno263
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'wt-chat-deployment'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_aread
code.lineno284
duration0.017152262
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.finish_reasons["stop"]
gen_ai.response.id
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.raw{"completion_tokens":433,"prompt_tokens":2341,"total_tokens":2774,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'wt-chat-deployment' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · azure/basic · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario azure/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-azbasic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.raw{"completion_tokens":277,"prompt_tokens":1213,"total_tokens":1490,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'wt-chat-deployment'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · azure/stream · response_model #
expected gpt-5-mini-2026-08-07, reported wt-chat-deployment
Expected
gpt-5-mini-2026-08-07
Reported
wt-chat-deployment
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario azure/stream
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'wt-chat-deployment'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.019742052
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.finish_reasons["stop"]
gen_ai.response.id
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.raw{"completion_tokens":433,"prompt_tokens":2341,"total_tokens":2774,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'wt-chat-deployment' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

spantruth.scenario spantruth.driver, status UNSET

missing logfire · azure/stream · response_id #
expected chatcmpl-wt-azstream, reported nothing
Expected
chatcmpl-wt-azstream
Reproduce
spantruth run --subject logfire --scenario azure/stream
Rule
The unique identifier of the completion.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'wt-chat-deployment'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.019742052
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.finish_reasons["stop"]
gen_ai.response.id
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.raw{"completion_tokens":433,"prompt_tokens":2341,"total_tokens":2774,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'wt-chat-deployment' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · azure/stream · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario azure/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'wt-chat-deployment'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.019742052
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelwt-chat-deployment
gen_ai.response.finish_reasons["stop"]
gen_ai.response.id
gen_ai.response.modelwt-chat-deployment
gen_ai.systemopenai
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.raw{"completion_tokens":433,"prompt_tokens":2341,"total_tokens":2774,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'wt-chat-deployment' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"wt-chat-deployment"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/agent-loop · finish_reasonsSilent stop #
expected tool_calls, reported ["tool_calls"]: call 1 of 3: the right values, recorded as the JSON string ["tool_calls"] instead of a string array; failed on ...
Expected
['tool_calls']
Reported
["tool_calls"]
Read from
gen_ai.response.finish_reasons
Note
call 1 of 3: the right values, recorded as the JSON string ["tool_calls"] instead of a string array; failed on calls 1, 2, 3
Reproduce
spantruth run --subject logfire --scenario openai/agent-loop
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_loop
code.lineno335
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"tool_call","id":"call_wt_w","name":"get_weather","arguments":{"city":"Paris"}}],"finish_reason":"tool_calls"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-wt-loop1
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.raw{"completion_tokens":97,"prompt_tokens":1171,"total_tokens":1268,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_loop
code.lineno335
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]},{"role":"assistant","parts":[{"type":"tool_call","id":"call_wt_w","name":"get_weather","arguments":{"city":"Paris"}}]},{"role":"tool","parts":[{"type":"tool_call_response","id":"call_wt_w","response":"18 C and sunny"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"tool_call","id":"call_wt_t","name":"get_time","arguments":{"zone":"Europe/Paris"}}],"finish_reason":"tool_calls"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-wt-loop2
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]
gen_ai.usage.cache_read.input_tokens1093
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.raw{"completion_tokens":89,"prompt_tokens":1307,"total_tokens":1396,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":1093}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_loop
code.lineno335
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]},{"role":"assistant","parts":[{"type":"tool_call","id":"call_wt_w","name":"get_weather","arguments":{"city":"Paris"}}]},{"role":"tool","parts":[{"type":"tool_call_response","id":"call_wt_w","response":"18 C and sunny"}]},{"role":"assistant","parts":[{"type":"tool_call","id":"call_wt_t","name":"get_time","arguments":{"zone":"Europe/Paris"}}]},{"role":"tool","parts":[{"type":"tool_call_response","id":"call_wt_t","response":"14:05"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"It is 18 C and sunny in Paris, and the time is 14:05."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-loop3
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]
gen_ai.usage.cache_read.input_tokens1279
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.raw{"completion_tokens":211,"prompt_tokens":1459,"total_tokens":1670,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":1279}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/async-basic · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno263
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-basic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.raw{"completion_tokens":263,"prompt_tokens":1187,"total_tokens":1450,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/async-concurrent-streams · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini: call 1 of 2; failed on calls 1, 2
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject logfire --scenario openai/async-concurrent-streams
Rule
The name of the model that generated the response.
Exported spans (5)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno364
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno364
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-nano
gen_ai.response.modelgpt-5-nano
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-nano'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-nano"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.018874247
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-par1
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.raw{"completion_tokens":149,"prompt_tokens":1033,"total_tokens":1182,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":769}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.011195578
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-nano
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-par2
gen_ai.response.modelgpt-5-nano-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.raw{"completion_tokens":181,"prompt_tokens":1747,"total_tokens":1928,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-nano' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-nano"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/async-concurrent-streams · finish_reasonsSilent stop #
expected stop, reported ["stop"]: call 1 of 2: the right values, recorded as the JSON string ["stop"] instead of a string array; failed on calls 1, 2
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
call 1 of 2: the right values, recorded as the JSON string ["stop"] instead of a string array; failed on calls 1, 2
Reproduce
spantruth run --subject logfire --scenario openai/async-concurrent-streams
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (5)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno364
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno364
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-nano
gen_ai.response.modelgpt-5-nano
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-nano'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-nano"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.018874247
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-par1
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.raw{"completion_tokens":149,"prompt_tokens":1033,"total_tokens":1182,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":769}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.011195578
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-nano
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-par2
gen_ai.response.modelgpt-5-nano-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.raw{"completion_tokens":181,"prompt_tokens":1747,"total_tokens":1928,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-nano' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-nano"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/async-stream · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/async-stream
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno263
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_aread
code.lineno284
duration0.0142847
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"completion_tokens":419,"prompt_tokens":2311,"total_tokens":2730,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/async-stream · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno263
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_aread
code.lineno284
duration0.0142847
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"completion_tokens":419,"prompt_tokens":2311,"total_tokens":2730,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/async-stream-early-exit · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/async-stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno263
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno214
duration0.011027097
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital"}]}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.idchatcmpl-wt-early
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/async-stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/async-stream-helper
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno256
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_aread
code.lineno284
duration0.014843991
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-shelper
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2137
gen_ai.usage.output_tokens313
gen_ai.usage.raw{"completion_tokens":313,"prompt_tokens":2137,"total_tokens":2450,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/async-stream-helper · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/async-stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_run_async
code.lineno256
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncTrue
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_aread
code.lineno284
duration0.014843991
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-shelper
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2137
gen_ai.usage.output_tokens313
gen_ai.usage.raw{"completion_tokens":313,"prompt_tokens":2137,"total_tokens":2450,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/basic · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-basic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.raw{"completion_tokens":263,"prompt_tokens":1187,"total_tokens":1450,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/cache-hit · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-cache
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.cache_read.input_tokens4096
gen_ai.usage.input_tokens5379
gen_ai.usage.output_tokens377
gen_ai.usage.raw{"completion_tokens":377,"prompt_tokens":5379,"total_tokens":5756,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":4096}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/cache-write · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/cache-write
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-cwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.systemopenai
gen_ai.usage.cache_creation.input_tokens3181
gen_ai.usage.cache_read.input_tokens2753
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
gen_ai.usage.raw{"completion_tokens":401,"prompt_tokens":6619,"total_tokens":7020,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cache_write_tokens":3181,"cached_tokens":2753}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5.6-luna'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5.6-luna"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/compat-extra-cache-fields · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/compat-extra-cache-fields
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modeldeepseek-flash
gen_ai.response.finish_reasons["stop"]
gen_ai.response.id9f3c2a71-5b8e-4d0a-a6c4-2e17d8b0f5a3
gen_ai.response.modeldeepseek-flash
gen_ai.systemopenai
gen_ai.usage.cache_read.input_tokens1408
gen_ai.usage.input_tokens1931
gen_ai.usage.output_tokens397
gen_ai.usage.raw{"completion_tokens":397,"prompt_tokens":1931,"total_tokens":2328,"prompt_tokens_details":{"cached_tokens":1408},"prompt_cache_hit_tokens":1408,"prompt_cache_miss_tokens":523}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'deepseek-flash'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"deepseek-flash"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/compat-extra-timing-fields · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/compat-extra-timing-fields
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelllama-3.3-70b-versatile
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-f51b2cd2-bef7-417e-964e-a08f0b513c22
gen_ai.response.modelopenai/gpt-oss-20b
gen_ai.systemopenai
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
gen_ai.usage.raw{"completion_tokens":556,"prompt_tokens":18,"total_tokens":574,"queue_time":0.037493756,"prompt_time":0.000680594,"completion_time":0.463333333,"total_time":0.464013927}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'llama-3.3-70b-versatile'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"llama-3.3-70b-versatile"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/compat-no-details · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/compat-no-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-cnodet
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.systemopenai
gen_ai.usage.input_tokens1129
gen_ai.usage.output_tokens241
gen_ai.usage.raw{"completion_tokens":241,"prompt_tokens":1129,"total_tokens":1370}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'qwen3.5-27b'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"qwen3.5-27b"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/compat-null-details · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/compat-null-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-cnull
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.systemopenai
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.raw{"completion_tokens":277,"prompt_tokens":1213,"total_tokens":1490}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'qwen3.5-27b'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"qwen3.5-27b"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/compat-partial-details · finish_reasonsSilent stop #
expected length, reported ["length"]: the right values, recorded as the JSON string ["length"] instead of a string array
Expected
['length']
Reported
["length"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["length"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/compat-partial-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage"}],"finish_reason":"length"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5:0.8b
gen_ai.response.finish_reasons["length"]
gen_ai.response.idchatcmpl-54
gen_ai.response.modelqwen3.5:0.8b
gen_ai.systemopenai
gen_ai.usage.cache_read.input_tokens28
gen_ai.usage.input_tokens32
gen_ai.usage.output_tokens16
gen_ai.usage.raw{"completion_tokens":16,"prompt_tokens":32,"total_tokens":48,"prompt_tokens_details":{"cached_tokens":28}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'qwen3.5:0.8b'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"qwen3.5:0.8b"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/compat-stream-no-details · response_model #
expected Qwen/Qwen3.5-27B-Instruct, reported qwen3.5-27b
Expected
Qwen/Qwen3.5-27B-Instruct
Reported
qwen3.5-27b
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/compat-stream-no-details
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelqwen3.5-27b
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'qwen3.5-27b'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"qwen3.5-27b"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.015170537
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-csnodet
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.systemopenai
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.raw{"completion_tokens":293,"prompt_tokens":1361,"total_tokens":1654}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'qwen3.5-27b' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"qwen3.5-27b"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/compat-stream-no-details · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/compat-stream-no-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelqwen3.5-27b
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'qwen3.5-27b'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"qwen3.5-27b"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.015170537
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-csnodet
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.systemopenai
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.raw{"completion_tokens":293,"prompt_tokens":1361,"total_tokens":1654}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'qwen3.5-27b' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"qwen3.5-27b"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/compat-stream-usage-on-finish · response_model #
expected Qwen/Qwen3.5-27B-Instruct, reported qwen3.5-27b
Expected
Qwen/Qwen3.5-27B-Instruct
Reported
qwen3.5-27b
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/compat-stream-usage-on-finish
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelqwen3.5-27b
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'qwen3.5-27b'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"qwen3.5-27b"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.016320224
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-csfinish
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.systemopenai
gen_ai.usage.cache_read.input_tokens1063
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
gen_ai.usage.raw{"completion_tokens":331,"prompt_tokens":1489,"total_tokens":1820,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":1063}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'qwen3.5-27b' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"qwen3.5-27b"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/compat-stream-usage-on-finish · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/compat-stream-usage-on-finish
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelqwen3.5-27b
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'qwen3.5-27b'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"qwen3.5-27b"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.016320224
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-csfinish
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.systemopenai
gen_ai.usage.cache_read.input_tokens1063
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
gen_ai.usage.raw{"completion_tokens":331,"prompt_tokens":1489,"total_tokens":1820,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":1063}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'qwen3.5-27b' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"qwen3.5-27b"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/content-off · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-basic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.raw{"completion_tokens":263,"prompt_tokens":1187,"total_tokens":1450,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/content-on · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-basic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.raw{"completion_tokens":263,"prompt_tokens":1187,"total_tokens":1450,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

missing logfire · openai/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject logfire --scenario openai/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status ERROR

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.exception.fingerprintbd9dacc8a56b2e4f8cdd5a794881f56517544bb9baa2077e2f11065e3a03fce4
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.level_num17
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/reasoning · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/reasoning
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-reason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.raw{"completion_tokens":2219,"prompt_tokens":1601,"total_tokens":3820,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":1792,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

missing logfire · openai/reasoning · reasoning_tokensHidden reasoning #
expected 1792, reported nothing
Expected
1792
Reproduce
spantruth run --subject logfire --scenario openai/reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-reason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.raw{"completion_tokens":2219,"prompt_tokens":1601,"total_tokens":3820,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":1792,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/retry-429 · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/retry-429
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-retry
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.raw{"completion_tokens":367,"prompt_tokens":2477,"total_tokens":2844,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.013927016
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"completion_tokens":419,"prompt_tokens":2311,"total_tokens":2730,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.013927016
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"completion_tokens":419,"prompt_tokens":2311,"total_tokens":2730,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-cache-hit · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.015385531
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scache
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.raw{"completion_tokens":511,"prompt_tokens":7213,"total_tokens":7724,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":6144}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-cache-hit · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.015385531
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scache
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.raw{"completion_tokens":511,"prompt_tokens":7213,"total_tokens":7724,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":6144}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-cache-write · response_model #
expected gpt-5.6-luna-2026-10-14, reported gpt-5.6-luna
Expected
gpt-5.6-luna-2026-10-14
Reported
gpt-5.6-luna
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream-cache-write
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5.6-luna'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5.6-luna"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.010336417
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.systemopenai
gen_ai.usage.cache_creation.input_tokens3539
gen_ai.usage.cache_read.input_tokens3967
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.raw{"completion_tokens":457,"prompt_tokens":8237,"total_tokens":8694,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cache_write_tokens":3539,"cached_tokens":3967}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5.6-luna' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5.6-luna"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-cache-write · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/stream-cache-write
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5.6-luna'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5.6-luna"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.010336417
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.systemopenai
gen_ai.usage.cache_creation.input_tokens3539
gen_ai.usage.cache_read.input_tokens3967
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.raw{"completion_tokens":457,"prompt_tokens":8237,"total_tokens":8694,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cache_write_tokens":3539,"cached_tokens":3967}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.cache_read.input_tokens":{},"gen_ai.usage.cache_creation.input_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5.6-luna' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5.6-luna"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-content-off · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream-content-off
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.008769079
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"completion_tokens":419,"prompt_tokens":2311,"total_tokens":2730,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-content-off · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/stream-content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.008769079
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"completion_tokens":419,"prompt_tokens":2311,"total_tokens":2730,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-content-on · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream-content-on
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.014197555
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"completion_tokens":419,"prompt_tokens":2311,"total_tokens":2730,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-content-on · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/stream-content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.014197555
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.raw{"completion_tokens":419,"prompt_tokens":2311,"total_tokens":2730,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-early-exit · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/driver.py
code.functioninstrumented
code.lineno233
duration0.193297397
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital"}]}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.idchatcmpl-wt-early
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.19s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}
wrong logfire · openai/stream-early-exit-with · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream-early-exit-with
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/driver.py
code.functioninstrumented
code.lineno233
duration0.200516069
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital"}]}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.idchatcmpl-wt-early
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.20s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}
wrong logfire · openai/stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream-helper
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno219
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.015596812
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-shelper
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2137
gen_ai.usage.output_tokens313
gen_ai.usage.raw{"completion_tokens":313,"prompt_tokens":2137,"total_tokens":2450,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-helper · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.functionrun
code.lineno219
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.015596812
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-shelper
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2137
gen_ai.usage.output_tokens313
gen_ai.usage.raw{"completion_tokens":313,"prompt_tokens":2137,"total_tokens":2450,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-no-usage · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream-no-usage
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.009113857
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-no-usage · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/stream-no-usage
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.009113857
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-reasoning · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream-reasoning
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.015588614
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.raw{"completion_tokens":2459,"prompt_tokens":2089,"total_tokens":4548,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":1931,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-reasoning · finish_reasonsSilent stop #
expected stop, reported ["stop"]: the right values, recorded as the JSON string ["stop"] instead of a string array
Expected
['stop']
Reported
["stop"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["stop"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/stream-reasoning
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.015588614
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.raw{"completion_tokens":2459,"prompt_tokens":2089,"total_tokens":4548,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":1931,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

missing logfire · openai/stream-reasoning · reasoning_tokensHidden reasoning #
expected 1931, reported nothing
Expected
1931
Reproduce
spantruth run --subject logfire --scenario openai/stream-reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.015588614
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["stop"]
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.raw{"completion_tokens":2459,"prompt_tokens":2089,"total_tokens":4548,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":1931,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.02s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-tool-call · response_model #
expected gpt-5-mini-2026-08-07, reported gpt-5-mini
Expected
gpt-5-mini-2026-08-07
Reported
gpt-5-mini
Read from
gen_ai.response.model
Reproduce
spantruth run --subject logfire --scenario openai/stream-tool-call
Rule
The name of the model that generated the response.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.013775003
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"tool_call","id":"call_wt_1","name":"get_weather","arguments":{"city":"Paris"}},{"type":"tool_call","id":"call_wt_2","name":"get_time","arguments":{"zone":"Europe/Paris"}}],"finish_reason":"tool_calls"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-wt-stools
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.raw{"completion_tokens":173,"prompt_tokens":1553,"total_tokens":1726,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/stream-tool-call · finish_reasonsSilent stop #
expected tool_calls, reported ["tool_calls"]: the right values, recorded as the JSON string ["tool_calls"] instead of a string array
Expected
['tool_calls']
Reported
["tool_calls"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["tool_calls"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_read
code.lineno246
duration0.013775003
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"tool_call","id":"call_wt_1","name":"get_weather","arguments":{"city":"Paris"}},{"type":"tool_call","id":"call_wt_2","name":"get_time","arguments":{"zone":"Europe/Paris"}}],"finish_reason":"tool_calls"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-wt-stools
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.raw{"completion_tokens":173,"prompt_tokens":1553,"total_tokens":1726,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"duration":{},"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.id":{},"gen_ai.response.model":{},"gen_ai.response.finish_reasons":{"type":"array"},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"}}}
logfire.level_num9
logfire.msgstreaming response from 'gpt-5-mini' took 0.01s
logfire.msg_templatestreaming response from {request_data[model]!r} took {duration:.2f}s
logfire.span_typelog
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

wrong logfire · openai/tool-call · finish_reasonsSilent stop #
expected tool_calls, reported ["tool_calls"]: the right values, recorded as the JSON string ["tool_calls"] instead of a string array
Expected
['tool_calls']
Reported
["tool_calls"]
Read from
gen_ai.response.finish_reasons
Note
the right values, recorded as the JSON string ["tool_calls"] instead of a string array
Reproduce
spantruth run --subject logfire --scenario openai/tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

Chat Completion with {request_data[model]!r} logfire.openai, status UNSET

asyncFalse
code.filepath/tmp/tmpsy0jtcvv/spantruth/calls.py
code.function_openai_create
code.lineno130
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"tool_call","id":"call_wt_1","name":"get_weather","arguments":{"city":"Paris"}},{"type":"tool_call","id":"call_wt_2","name":"get_time","arguments":{"zone":"Europe/Paris"}}],"finish_reason":"tool_calls"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons["tool_calls"]
gen_ai.response.idchatcmpl-wt-tools
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.raw{"completion_tokens":88,"prompt_tokens":931,"total_tokens":1019,"completion_tokens_details":{"accepted_prediction_tokens":0,"audio_tokens":0,"reasoning_tokens":0,"rejected_prediction_tokens":0},"prompt_tokens_details":{"audio_tokens":0,"cached_tokens":0}}
logfire.json_schema{"type":"object","properties":{"request_data":{"type":"object"},"gen_ai.system":{},"gen_ai.provider.name":{},"gen_ai.request.model":{},"gen_ai.operation.name":{},"gen_ai.tool.definitions":{},"gen_ai.input.messages":{"type":"array"},"async":{},"gen_ai.response.model":{},"gen_ai.response.id":{},"gen_ai.usage.input_tokens":{},"gen_ai.usage.output_tokens":{},"gen_ai.usage.raw":{"type":"object"},"gen_ai.output.messages":{"type":"array"},"gen_ai.response.finish_reasons":{"type":"array"}}}
logfire.msgChat Completion with 'gpt-5-mini'
logfire.msg_templateChat Completion with {request_data[model]!r}
logfire.span_typespan
logfire.tags['LLM']
request_data{"model":"gpt-5-mini"}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/agent-loop · finish_reasonsSilent stop #
expected tool_use, reported nothing: call 1 of 3; failed on calls 1, 2, 3
Expected
['tool_use']
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject mlflow --scenario anthropic/agent-loop
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (8)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1171, "output_tokens": 97, "total_tokens": 1268, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_loop1", "container": null, "content": [{"id": "toolu_wt_w", "caller": null, "input": {"city": "Paris"}, "name": "get_weather", "type": "tool_use", "toolset_name": null}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "tool_use", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 1171, "output_tokens": 97, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-0b92e308db63d29caf292a10f4471f43"

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1307, "output_tokens": 89, "total_tokens": 1396, "cache_read_input_tokens": 1093, "cache_creation_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}, {"role": "assistant", "content": [{"id": "toolu_wt_w", "caller": null, "input": {"city": "Paris"}, "name": "get_weather", "type": "tool_use", "toolset_name": null}]}, {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_wt_w", "content": "18 C and sunny"}]}], "model": "claude-sonnet-5-5", "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_loop2", "container": null, "content": [{"id": "toolu_wt_t", "caller": null, "input": {"zone": "Europe/Paris"}, "name": "get_time", "type": "tool_use", "toolset_name": null}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "tool_use", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 1093, "inference_geo": null, "input_tokens": 214, "output_tokens": 89, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-0b92e308db63d29caf292a10f4471f43"

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1459, "output_tokens": 211, "total_tokens": 1670, "cache_read_input_tokens": 1279, "cache_creation_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}, {"role": "assistant", "content": [{"id": "toolu_wt_w", "caller": null, "input": {"city": "Paris"}, "name": "get_weather", "type": "tool_use", "toolset_name": null}]}, {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_wt_w", "content": "18 C and sunny"}]}, {"role": "assistant", "content": [{"id": "toolu_wt_t", "caller": null, "input": {"zone": "Europe/Paris"}, "name": "get_time", "type": "tool_use", "toolset_name": null}]}, {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_wt_t", "content": "14:05"}]}], "model": "claude-sonnet-5-5", "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_loop3", "container": null, "content": [{"citations": null, "text": "It is 18 C and sunny in Paris, and the time is 14:05.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 1279, "inference_geo": null, "input_tokens": 180, "output_tokens": 211, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-0b92e308db63d29caf292a10f4471f43"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-0b92e308db63d29caf292a10f4471f43"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "toolu_wt_w", "response": "18 C and sunny"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_t", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop2
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "toolu_wt_w", "response": "18 C and sunny"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_t", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "toolu_wt_t", "response": "14:05"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "It is 18 C and sunny in Paris, and the time is 14:05."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop3
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/agent-loop · cache_read_tokensCache-blind tokens #
expected 1093, reported nothing: call 2 of 3; failed on calls 2, 3
Expected
1093
Note
call 2 of 3; failed on calls 2, 3
Reproduce
spantruth run --subject mlflow --scenario anthropic/agent-loop
Rule
Input tokens read from the provider cache.
Exported spans (8)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1171, "output_tokens": 97, "total_tokens": 1268, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_loop1", "container": null, "content": [{"id": "toolu_wt_w", "caller": null, "input": {"city": "Paris"}, "name": "get_weather", "type": "tool_use", "toolset_name": null}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "tool_use", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 1171, "output_tokens": 97, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-0b92e308db63d29caf292a10f4471f43"

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1307, "output_tokens": 89, "total_tokens": 1396, "cache_read_input_tokens": 1093, "cache_creation_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}, {"role": "assistant", "content": [{"id": "toolu_wt_w", "caller": null, "input": {"city": "Paris"}, "name": "get_weather", "type": "tool_use", "toolset_name": null}]}, {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_wt_w", "content": "18 C and sunny"}]}], "model": "claude-sonnet-5-5", "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_loop2", "container": null, "content": [{"id": "toolu_wt_t", "caller": null, "input": {"zone": "Europe/Paris"}, "name": "get_time", "type": "tool_use", "toolset_name": null}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "tool_use", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 1093, "inference_geo": null, "input_tokens": 214, "output_tokens": 89, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-0b92e308db63d29caf292a10f4471f43"

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1459, "output_tokens": 211, "total_tokens": 1670, "cache_read_input_tokens": 1279, "cache_creation_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}, {"role": "assistant", "content": [{"id": "toolu_wt_w", "caller": null, "input": {"city": "Paris"}, "name": "get_weather", "type": "tool_use", "toolset_name": null}]}, {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_wt_w", "content": "18 C and sunny"}]}, {"role": "assistant", "content": [{"id": "toolu_wt_t", "caller": null, "input": {"zone": "Europe/Paris"}, "name": "get_time", "type": "tool_use", "toolset_name": null}]}, {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_wt_t", "content": "14:05"}]}], "model": "claude-sonnet-5-5", "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_loop3", "container": null, "content": [{"citations": null, "text": "It is 18 C and sunny in Paris, and the time is 14:05.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 1279, "inference_geo": null, "input_tokens": 180, "output_tokens": 211, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-0b92e308db63d29caf292a10f4471f43"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-0b92e308db63d29caf292a10f4471f43"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "toolu_wt_w", "response": "18 C and sunny"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_t", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop2
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "toolu_wt_w", "response": "18 C and sunny"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_t", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "toolu_wt_t", "response": "14:05"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "It is 18 C and sunny in Paris, and the time is 14:05."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop3
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-basic · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1187, "output_tokens": 263, "total_tokens": 1450, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_basic", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 1187, "output_tokens": 263, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e0ab2723440b9b78309eb72ff83d9dc1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e0ab2723440b9b78309eb72ff83d9dc1"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-concurrent-streams · response_model #
expected claude-sonnet-5-5-20260915, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
claude-sonnet-5-5-20260915
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-concurrent-streams
Rule
The name of the model that generated the response.
Exported spans (6)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f76589d30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-haiku-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-haiku-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f765996a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

chat claude-haiku-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-haiku-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-concurrent-streams · response_id #
expected msg_wt_par1, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
msg_wt_par1
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-concurrent-streams
Rule
The unique identifier of the completion.
Exported spans (6)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f76589d30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-haiku-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-haiku-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f765996a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

chat claude-haiku-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-haiku-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-concurrent-streams · finish_reasonsSilent stop #
expected end_turn, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
['end_turn']
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-concurrent-streams
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f76589d30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-haiku-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-haiku-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f765996a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

chat claude-haiku-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-haiku-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-concurrent-streams · input_tokensVanishing tokens #
expected 1033, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
1033
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-concurrent-streams
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (6)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f76589d30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-haiku-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-haiku-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f765996a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

chat claude-haiku-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-haiku-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-concurrent-streams · output_tokensVanishing tokens #
expected 149, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
149
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-concurrent-streams
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (6)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f76589d30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-haiku-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-haiku-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f765996a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

chat claude-haiku-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-haiku-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-concurrent-streams · cache_read_tokensCache-blind tokens #
expected 769, reported nothing: call 1 of 2
Expected
769
Note
call 1 of 2
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-concurrent-streams
Rule
Input tokens read from the provider cache.
Exported spans (6)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f76589d30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-haiku-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-haiku-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x780f765996a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-017988eadd4947e85e21618c899db98b"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

chat claude-haiku-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-haiku-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-stream · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream
Rule
The name of the model that generated the response.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x703da34e2c00>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-a1efd486f7ffba51008357b4d8adae41"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-a1efd486f7ffba51008357b4d8adae41"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-stream · response_id #
expected msg_wt_stream, reported nothing
Expected
msg_wt_stream
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream
Rule
The unique identifier of the completion.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x703da34e2c00>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-a1efd486f7ffba51008357b4d8adae41"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-a1efd486f7ffba51008357b4d8adae41"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-stream · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x703da34e2c00>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-a1efd486f7ffba51008357b4d8adae41"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-a1efd486f7ffba51008357b4d8adae41"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-stream · input_tokensVanishing tokens #
expected 2311, reported nothing
Expected
2311
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x703da34e2c00>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-a1efd486f7ffba51008357b4d8adae41"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-a1efd486f7ffba51008357b4d8adae41"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-stream · output_tokensVanishing tokens #
expected 419, reported nothing
Expected
419
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x703da34e2c00>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-a1efd486f7ffba51008357b4d8adae41"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-a1efd486f7ffba51008357b4d8adae41"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · anthropic/async-stream-dropped · error.statusFalse OK #
expected ERROR, reported OK
Expected
ERROR
Reported
['OK']
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream-dropped
Rule
Span status SHOULD follow Recording Errors: an operation that ended in an error sets the status to Error.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x7b3a81492600>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e09e8830128cb7de5591878815ad58fd"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e09e8830128cb7de5591878815ad58fd"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x7b3a81492600>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e09e8830128cb7de5591878815ad58fd"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e09e8830128cb7de5591878815ad58fd"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-stream-early-exit · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x77e7b7c3cdd0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-f994a494d09ac9bf2275f611073f2f53"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-f994a494d09ac9bf2275f611073f2f53"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-stream-early-exit · response_id #
expected msg_wt_early, reported nothing
Expected
msg_wt_early
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x77e7b7c3cdd0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-f994a494d09ac9bf2275f611073f2f53"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-f994a494d09ac9bf2275f611073f2f53"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-stream-early-exit · input_tokensVanishing tokens #
expected 1913, reported nothing
Expected
1913
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream-early-exit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x77e7b7c3cdd0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-f994a494d09ac9bf2275f611073f2f53"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-f994a494d09ac9bf2275f611073f2f53"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · anthropic/async-stream-error-event · error.statusFalse OK #
expected ERROR, reported OK
Expected
ERROR
Reported
['OK']
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream-error-event
Rule
Span status SHOULD follow Recording Errors: an operation that ended in an error sets the status to Error.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x753191b8e060>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-18a3718bf0081c28b662f9b4d74400b3"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-18a3718bf0081c28b662f9b4d74400b3"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/async-stream-error-event · error.typeFalse OK #
Reproduce
spantruth run --subject mlflow --scenario anthropic/async-stream-error-event
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (4)

AsyncMessages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.AsyncStream object at 0x753191b8e060>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-18a3718bf0081c28b662f9b4d74400b3"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-18a3718bf0081c28b662f9b4d74400b3"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/basic · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject mlflow --scenario anthropic/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1187, "output_tokens": 263, "total_tokens": 1450, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_basic", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 1187, "output_tokens": 263, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-601823121ecac068026bc8fae04a998c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-601823121ecac068026bc8fae04a998c"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/cache-1h · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.0146 on the wire, $0.0165 from the spans (+12.9%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 6288, "output_tokens": 389, "total_tokens": 6677, "cache_read_input_tokens": 2861, "cache_creation_input_tokens": 2120, "cache_creation_input_tokens_above_1hr": 1663}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_cache1h", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": {"ephemeral_1h_input_tokens": 1663, "ephemeral_5m_input_tokens": 457}, "cache_creation_input_tokens": 2120, "cache_read_input_tokens": 2861, "inference_geo": null, "input_tokens": 1307, "output_tokens": 389, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-cee68c6d056d9ad23712a1b9d559b169"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-cee68c6d056d9ad23712a1b9d559b169"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/cache-1h · cache_read_tokensCache-blind tokens #
expected 2861, reported nothing
Expected
2861
Cost
$0.0146 on the wire, $0.0165 from the spans (+12.9%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/cache-1h
Rule
Input tokens read from the provider cache.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 6288, "output_tokens": 389, "total_tokens": 6677, "cache_read_input_tokens": 2861, "cache_creation_input_tokens": 2120, "cache_creation_input_tokens_above_1hr": 1663}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_cache1h", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": {"ephemeral_1h_input_tokens": 1663, "ephemeral_5m_input_tokens": 457}, "cache_creation_input_tokens": 2120, "cache_read_input_tokens": 2861, "inference_geo": null, "input_tokens": 1307, "output_tokens": 389, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-cee68c6d056d9ad23712a1b9d559b169"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-cee68c6d056d9ad23712a1b9d559b169"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/cache-1h · cache_write_tokensCache-blind tokens #
expected 2120, reported nothing
Expected
2120
Cost
$0.0146 on the wire, $0.0165 from the spans (+12.9%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/cache-1h
Rule
Input tokens written to the provider cache.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 6288, "output_tokens": 389, "total_tokens": 6677, "cache_read_input_tokens": 2861, "cache_creation_input_tokens": 2120, "cache_creation_input_tokens_above_1hr": 1663}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_cache1h", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": {"ephemeral_1h_input_tokens": 1663, "ephemeral_5m_input_tokens": 457}, "cache_creation_input_tokens": 2120, "cache_read_input_tokens": 2861, "inference_geo": null, "input_tokens": 1307, "output_tokens": 389, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-cee68c6d056d9ad23712a1b9d559b169"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-cee68c6d056d9ad23712a1b9d559b169"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/cache-hit · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.00785 on the wire, $0.0154 from the spans (+95.8%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5802, "output_tokens": 377, "total_tokens": 6179, "cache_read_input_tokens": 4096, "cache_creation_input_tokens": 519}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_cache", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 519, "cache_read_input_tokens": 4096, "inference_geo": null, "input_tokens": 1187, "output_tokens": 377, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-da53c4315a0bd31aaf788ecfc93a5079"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-da53c4315a0bd31aaf788ecfc93a5079"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/cache-hit · cache_read_tokensCache-blind tokens #
expected 4096, reported nothing
Expected
4096
Cost
$0.00785 on the wire, $0.0154 from the spans (+95.8%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/cache-hit
Rule
Input tokens read from the provider cache.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5802, "output_tokens": 377, "total_tokens": 6179, "cache_read_input_tokens": 4096, "cache_creation_input_tokens": 519}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_cache", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 519, "cache_read_input_tokens": 4096, "inference_geo": null, "input_tokens": 1187, "output_tokens": 377, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-da53c4315a0bd31aaf788ecfc93a5079"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-da53c4315a0bd31aaf788ecfc93a5079"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/cache-hit · cache_write_tokensCache-blind tokens #
expected 519, reported nothing
Expected
519
Cost
$0.00785 on the wire, $0.0154 from the spans (+95.8%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/cache-hit
Rule
Input tokens written to the provider cache.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5802, "output_tokens": 377, "total_tokens": 6179, "cache_read_input_tokens": 4096, "cache_creation_input_tokens": 519}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_cache", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 519, "cache_read_input_tokens": 4096, "inference_geo": null, "input_tokens": 1187, "output_tokens": 377, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-da53c4315a0bd31aaf788ecfc93a5079"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-da53c4315a0bd31aaf788ecfc93a5079"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/content-off · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject mlflow --scenario anthropic/content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1187, "output_tokens": 263, "total_tokens": 1450, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_basic", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 1187, "output_tokens": 263, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-20cd22be9fa7cb9ddb63b7b93ff486a2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-20cd22be9fa7cb9ddb63b7b93ff486a2"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/content-on · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject mlflow --scenario anthropic/content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1187, "output_tokens": 263, "total_tokens": 1450, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_basic", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 1187, "output_tokens": 263, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-dfe8c57e796ce6d09f0d26c7cae7163c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-dfe8c57e796ce6d09f0d26c7cae7163c"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject mlflow --scenario anthropic/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (4)

Messages.create mlflow.tracing.provider, status ERROR

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel40
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4efa06866bb7560ff0fa6b85de4ef740"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4efa06866bb7560ff0fa6b85de4ef740"

chat claude-sonnet-5-5 mlflow.tracing.provider, status ERROR

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/retry-429 · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject mlflow --scenario anthropic/retry-429
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 2477, "output_tokens": 367, "total_tokens": 2844, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_retry", "container": null, "content": [{"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 2477, "output_tokens": 367, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-2a03a826165d39761df65228aede09fc"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-2a03a826165d39761df65228aede09fc"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_retry
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream
Rule
The name of the model that generated the response.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7876af1b9790>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-6137d397f6cd7fdf9aba720524df4cb7"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-6137d397f6cd7fdf9aba720524df4cb7"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream · response_id #
expected msg_wt_stream, reported nothing
Expected
msg_wt_stream
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream
Rule
The unique identifier of the completion.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7876af1b9790>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-6137d397f6cd7fdf9aba720524df4cb7"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-6137d397f6cd7fdf9aba720524df4cb7"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7876af1b9790>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-6137d397f6cd7fdf9aba720524df4cb7"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-6137d397f6cd7fdf9aba720524df4cb7"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream · input_tokensVanishing tokens #
expected 2311, reported nothing
Expected
2311
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7876af1b9790>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-6137d397f6cd7fdf9aba720524df4cb7"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-6137d397f6cd7fdf9aba720524df4cb7"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream · output_tokensVanishing tokens #
expected 419, reported nothing
Expected
419
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7876af1b9790>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-6137d397f6cd7fdf9aba720524df4cb7"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-6137d397f6cd7fdf9aba720524df4cb7"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-1h · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Cost
$0.0175 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-1h
Rule
The name of the model that generated the response.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7b98c0d3db20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-1h · response_id #
expected msg_wt_scache1h, reported nothing
Expected
msg_wt_scache1h
Cost
$0.0175 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-1h
Rule
The unique identifier of the completion.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7b98c0d3db20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-1h · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.0175 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-1h
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7b98c0d3db20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-1h · input_tokensVanishing tokens #
expected 7160, reported nothing
Expected
7160
Cost
$0.0175 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-1h
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7b98c0d3db20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-1h · output_tokensVanishing tokens #
expected 523, reported nothing
Expected
523
Cost
$0.0175 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-1h
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7b98c0d3db20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-1h · cache_read_tokensCache-blind tokens #
expected 3217, reported nothing
Expected
3217
Cost
$0.0175 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-1h
Rule
Input tokens read from the provider cache.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7b98c0d3db20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-1h · cache_write_tokensCache-blind tokens #
expected 2492, reported nothing
Expected
2492
Cost
$0.0175 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-1h
Rule
Input tokens written to the provider cache.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7b98c0d3db20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-45777f082a4acd971da266f62a504659"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-cumulative · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Cost
$0.00961 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-cumulative
Rule
The name of the model that generated the response.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x78be5de5c4d0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-cumulative · response_id #
expected msg_wt_cumul, reported nothing
Expected
msg_wt_cumul
Cost
$0.00961 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-cumulative
Rule
The unique identifier of the completion.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x78be5de5c4d0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-cumulative · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.00961 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-cumulative
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x78be5de5c4d0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-cumulative · input_tokensVanishing tokens #
expected 5673, reported nothing
Expected
5673
Cost
$0.00961 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-cumulative
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x78be5de5c4d0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-cumulative · output_tokensVanishing tokens #
expected 467, reported nothing
Expected
467
Cost
$0.00961 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-cumulative
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x78be5de5c4d0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-cumulative · cache_read_tokensCache-blind tokens #
expected 3583, reported nothing
Expected
3583
Cost
$0.00961 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-cumulative
Rule
Input tokens read from the provider cache.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x78be5de5c4d0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-cumulative · cache_write_tokensCache-blind tokens #
expected 811, reported nothing
Expected
811
Cost
$0.00961 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-cumulative
Rule
Input tokens written to the provider cache.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x78be5de5c4d0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e9f7eaf67a8cdf159dbc60214c24471d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-hit · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Cost
$0.0107 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x738e9b1b1b20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-hit · response_id #
expected msg_wt_scache, reported nothing
Expected
msg_wt_scache
Cost
$0.0107 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-hit
Rule
The unique identifier of the completion.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x738e9b1b1b20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-hit · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.0107 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x738e9b1b1b20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-hit · input_tokensVanishing tokens #
expected 8424, reported nothing
Expected
8424
Cost
$0.0107 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-hit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x738e9b1b1b20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-hit · output_tokensVanishing tokens #
expected 511, reported nothing
Expected
511
Cost
$0.0107 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-hit
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x738e9b1b1b20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-hit · cache_read_tokensCache-blind tokens #
expected 6144, reported nothing
Expected
6144
Cost
$0.0107 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-hit
Rule
Input tokens read from the provider cache.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x738e9b1b1b20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-cache-hit · cache_write_tokensCache-blind tokens #
expected 737, reported nothing
Expected
737
Cost
$0.0107 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-cache-hit
Rule
Input tokens written to the provider cache.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x738e9b1b1b20>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-50d15d8fbf7aafc8f2850d137f79c98d"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-off · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-off
Rule
The name of the model that generated the response.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x770d988a4e60>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d593da5d0c6ef63c50fd453bc22732b0"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d593da5d0c6ef63c50fd453bc22732b0"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-off · response_id #
expected msg_wt_stream, reported nothing
Expected
msg_wt_stream
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-off
Rule
The unique identifier of the completion.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x770d988a4e60>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d593da5d0c6ef63c50fd453bc22732b0"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d593da5d0c6ef63c50fd453bc22732b0"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-off · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x770d988a4e60>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d593da5d0c6ef63c50fd453bc22732b0"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d593da5d0c6ef63c50fd453bc22732b0"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-off · input_tokensVanishing tokens #
expected 2311, reported nothing
Expected
2311
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-off
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x770d988a4e60>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d593da5d0c6ef63c50fd453bc22732b0"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d593da5d0c6ef63c50fd453bc22732b0"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-off · output_tokensVanishing tokens #
expected 419, reported nothing
Expected
419
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-off
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x770d988a4e60>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d593da5d0c6ef63c50fd453bc22732b0"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d593da5d0c6ef63c50fd453bc22732b0"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-on · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-on
Rule
The name of the model that generated the response.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x70df45dd9f70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-on · response_id #
expected msg_wt_stream, reported nothing
Expected
msg_wt_stream
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-on
Rule
The unique identifier of the completion.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x70df45dd9f70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-on · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x70df45dd9f70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-on · input_tokensVanishing tokens #
expected 2311, reported nothing
Expected
2311
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-on
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x70df45dd9f70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-on · output_tokensVanishing tokens #
expected 419, reported nothing
Expected
419
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-on
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x70df45dd9f70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-content-on · content.output_matches #
expected The capital of France is Paris., reported nothing: no completion text with content on: none, always on: autolog has no content option
Expected
The capital of France is Paris.
Note
no completion text with content on: none, always on: autolog has no content option
Cost
$0.00881 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-content-on
Rule
Opt-In content SHOULD be populated if the user configures the instrumentation to do so, so with the library's content switch on, the completion text is recorded, and it equals the text the application read. Instrumentations MAY give users a way to filter or truncate output messages; no scenario sets such an option, so the text is compared whole. `gen_ai.output.messages` and the other conventions' output names are read.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x70df45dd9f70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-13300a10266fb67642fb0b897c5d9502"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · anthropic/stream-dropped · error.statusFalse OK #
expected ERROR, reported OK
Expected
ERROR
Reported
['OK']
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-dropped
Rule
Span status SHOULD follow Recording Errors: an operation that ended in an error sets the status to Error.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x741e30c45070>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-ef91bfd90eac732f13a5113f44a3be05"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-ef91bfd90eac732f13a5113f44a3be05"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x741e30c45070>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-ef91bfd90eac732f13a5113f44a3be05"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-ef91bfd90eac732f13a5113f44a3be05"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-early-exit · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7405ab417e00>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5943a81bcf0a5fa4644073138695a40b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5943a81bcf0a5fa4644073138695a40b"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-early-exit · response_id #
expected msg_wt_early, reported nothing
Expected
msg_wt_early
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7405ab417e00>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5943a81bcf0a5fa4644073138695a40b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5943a81bcf0a5fa4644073138695a40b"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-early-exit · input_tokensVanishing tokens #
expected 1913, reported nothing
Expected
1913
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-early-exit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7405ab417e00>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5943a81bcf0a5fa4644073138695a40b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5943a81bcf0a5fa4644073138695a40b"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-early-exit-with · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-early-exit-with
Rule
The name of the model that generated the response.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x75c3201104a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8c68758a231663fe7125187961aafeaa"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8c68758a231663fe7125187961aafeaa"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-early-exit-with · response_id #
expected msg_wt_early, reported nothing
Expected
msg_wt_early
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-early-exit-with
Rule
The unique identifier of the completion.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x75c3201104a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8c68758a231663fe7125187961aafeaa"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8c68758a231663fe7125187961aafeaa"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-early-exit-with · input_tokensVanishing tokens #
expected 1913, reported nothing
Expected
1913
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-early-exit-with
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x75c3201104a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8c68758a231663fe7125187961aafeaa"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8c68758a231663fe7125187961aafeaa"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · anthropic/stream-error-event · error.statusFalse OK #
expected ERROR, reported OK
Expected
ERROR
Reported
['OK']
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-error-event
Rule
Span status SHOULD follow Recording Errors: an operation that ended in an error sets the status to Error.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7253abc20ef0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-57d11e9fe3115fc7a6d9d0855fbb4f3f"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-57d11e9fe3115fc7a6d9d0855fbb4f3f"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-error-event · error.typeFalse OK #
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-error-event
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7253abc20ef0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-57d11e9fe3115fc7a6d9d0855fbb4f3f"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-57d11e9fe3115fc7a6d9d0855fbb4f3f"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-thinking · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Cost
$0.0181 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-thinking
Rule
The name of the model that generated the response.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7903eb7f5070>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-thinking · response_id #
expected msg_wt_sthink, reported nothing
Expected
msg_wt_sthink
Cost
$0.0181 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-thinking
Rule
The unique identifier of the completion.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7903eb7f5070>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-thinking · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Cost
$0.0181 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7903eb7f5070>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-thinking · input_tokensVanishing tokens #
expected 1831, reported nothing
Expected
1831
Cost
$0.0181 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-thinking
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7903eb7f5070>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-thinking · output_tokensVanishing tokens #
expected 1439, reported nothing
Expected
1439
Cost
$0.0181 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-thinking
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7903eb7f5070>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-thinking · reasoning_tokensHidden reasoning #
expected 1103, reported nothing
Expected
1103
Cost
$0.0181 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7903eb7f5070>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b1c84a6a06920faf4b214f6f84f8d1f2"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-tool-call · response_model #
expected claude-sonnet-5-5-20260915, reported nothing
Expected
claude-sonnet-5-5-20260915
Cost
$0.00521 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-tool-call
Rule
The name of the model that generated the response.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true, "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7f40de589ac0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-3f55fd4d2562149f7adb93f7ecf2139c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-3f55fd4d2562149f7adb93f7ecf2139c"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-tool-call · response_id #
expected msg_wt_stools, reported nothing
Expected
msg_wt_stools
Cost
$0.00521 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-tool-call
Rule
The unique identifier of the completion.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true, "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7f40de589ac0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-3f55fd4d2562149f7adb93f7ecf2139c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-3f55fd4d2562149f7adb93f7ecf2139c"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-tool-call · finish_reasonsSilent stop #
expected tool_use, reported nothing
Expected
['tool_use']
Cost
$0.00521 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true, "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7f40de589ac0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-3f55fd4d2562149f7adb93f7ecf2139c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-3f55fd4d2562149f7adb93f7ecf2139c"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-tool-call · input_tokensVanishing tokens #
expected 1619, reported nothing
Expected
1619
Cost
$0.00521 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-tool-call
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true, "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7f40de589ac0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-3f55fd4d2562149f7adb93f7ecf2139c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-3f55fd4d2562149f7adb93f7ecf2139c"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/stream-tool-call · output_tokensVanishing tokens #
expected 197, reported nothing
Expected
197
Cost
$0.00521 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario anthropic/stream-tool-call
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "stream": true, "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs"<anthropic.Stream object at 0x7f40de589ac0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-3f55fd4d2562149f7adb93f7ecf2139c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-3f55fd4d2562149f7adb93f7ecf2139c"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.tool.definitions[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/thinking · finish_reasonsSilent stop #
expected end_turn, reported nothing
Expected
['end_turn']
Reproduce
spantruth run --subject mlflow --scenario anthropic/thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1627, "output_tokens": 1273, "total_tokens": 2900, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_thinking", "container": null, "content": [{"signature": "dGVzdC1zaWduYXR1cmU=", "thinking": "Let me think about the capital of France. The capital of France is Paris.", "type": "thinking"}, {"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 1627, "output_tokens": 1273, "output_tokens_details": {"thinking_tokens": 947}, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-cc92514a18e7517e01852bb66e8f0189"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-cc92514a18e7517e01852bb66e8f0189"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "{\"signature\": \"dGVzdC1zaWduYXR1cmU=\", \"thinking\": \"Let me think about the capital of France. The capital of France is Paris.\", \"type\": \"thinking\"}"}, {"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/thinking · reasoning_tokensHidden reasoning #
expected 947, reported nothing
Expected
947
Reproduce
spantruth run --subject mlflow --scenario anthropic/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1627, "output_tokens": 1273, "total_tokens": 2900, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0}
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_thinking", "container": null, "content": [{"signature": "dGVzdC1zaWduYXR1cmU=", "thinking": "Let me think about the capital of France. The capital of France is Paris.", "type": "thinking"}, {"citations": null, "text": "The capital of France is Paris.", "type": "text"}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "end_turn", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 1627, "output_tokens": 1273, "output_tokens_details": {"thinking_tokens": 947}, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-cc92514a18e7517e01852bb66e8f0189"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-cc92514a18e7517e01852bb66e8f0189"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "{\"signature\": \"dGVzdC1zaWduYXR1cmU=\", \"thinking\": \"Let me think about the capital of France. The capital of France is Paris.\", \"type\": \"thinking\"}"}, {"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · anthropic/tool-call · finish_reasonsSilent stop #
expected tool_use, reported nothing
Expected
['tool_use']
Reproduce
spantruth run --subject mlflow --scenario anthropic/tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Messages.create mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 931, "output_tokens": 88, "total_tokens": 1019, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "description": null, "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "description": null, "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"claude-sonnet-5-5"
mlflow.llm.provider"anthropic"
mlflow.message.format"anthropic"
mlflow.spanInputs{"max_tokens": 1024, "messages": [{"role": "user", "content": "What is the capital of France?"}], "model": "claude-sonnet-5-5", "tools": [{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "msg_wt_tools", "container": null, "content": [{"id": "toolu_wt_1", "caller": null, "input": {"city": "Paris"}, "name": "get_weather", "type": "tool_use", "toolset_name": null}, {"id": "toolu_wt_2", "caller": null, "input": {"zone": "Europe/Paris"}, "name": "get_time", "type": "tool_use", "toolset_name": null}], "diagnostics": null, "model": "claude-sonnet-5-5-20260915", "role": "assistant", "stop_details": null, "stop_reason": "tool_use", "stop_sequence": null, "type": "message", "usage": {"cache_creation": null, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 0, "inference_geo": null, "input_tokens": 931, "output_tokens": 88, "output_tokens_details": null, "server_tool_use": null, "service_tier": null, "speed": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-89c72c95cce9a42289f4f353352e1265"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-89c72c95cce9a42289f4f353352e1265"

chat claude-sonnet-5-5 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "toolu_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_tools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · azure/async-basic · request_model #
expected wt-chat-deployment, reported gpt-5-mini-2026-08-07
Expected
wt-chat-deployment
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario azure/async-basic
Rule
The model name the request asked for.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1213, "output_tokens": 277, "total_tokens": 1490, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "wt-chat-deployment", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-azbasic", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}, "content_filter_results": {"hate": {"filtered": false, "severity": "safe"}, "self_harm": {"filtered": false, "severity": "safe"}, "sexual": {"filtered": false, "severity": "safe"}, "violence": {"filtered": false, "severity": "safe"}}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 277, "prompt_tokens": 1213, "total_tokens": 1490, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}, "prompt_filter_results": [{"prompt_index": 0, "content_filter_results": {"hate": {"filtered": false, "severity": "safe"}, "self_harm": {"filtered": false, "severity": "safe"}, "sexual": {"filtered": false, "severity": "safe"}, "violence": {"filtered": false, "severity": "safe"}}}]}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-dd88db450cad4af6e39a8fa6cbb71c29"
model"wt-chat-deployment"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-dd88db450cad4af6e39a8fa6cbb71c29"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-azbasic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
model"wt-chat-deployment"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · azure/async-stream · request_model #
expected wt-chat-deployment, reported gpt-5-mini-2026-08-07
Expected
wt-chat-deployment
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario azure/async-stream
Rule
The model name the request asked for.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 2341, "output_tokens": 433, "total_tokens": 2774, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "wt-chat-deployment", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-azstream", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 433, "prompt_tokens": 2341, "total_tokens": 2774, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-04e0b55246c297fed07b5b6b1e273109"
model"wt-chat-deployment"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-04e0b55246c297fed07b5b6b1e273109"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-azstream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
model"wt-chat-deployment"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · azure/basic · request_model #
expected wt-chat-deployment, reported gpt-5-mini-2026-08-07
Expected
wt-chat-deployment
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario azure/basic
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1213, "output_tokens": 277, "total_tokens": 1490, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "wt-chat-deployment", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-azbasic", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}, "content_filter_results": {"hate": {"filtered": false, "severity": "safe"}, "self_harm": {"filtered": false, "severity": "safe"}, "sexual": {"filtered": false, "severity": "safe"}, "violence": {"filtered": false, "severity": "safe"}}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 277, "prompt_tokens": 1213, "total_tokens": 1490, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}, "prompt_filter_results": [{"prompt_index": 0, "content_filter_results": {"hate": {"filtered": false, "severity": "safe"}, "self_harm": {"filtered": false, "severity": "safe"}, "sexual": {"filtered": false, "severity": "safe"}, "violence": {"filtered": false, "severity": "safe"}}}]}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-3348436491e40dcb1087a1464c7aecfb"
model"wt-chat-deployment"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-3348436491e40dcb1087a1464c7aecfb"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-azbasic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
model"wt-chat-deployment"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · azure/stream · request_model #
expected wt-chat-deployment, reported gpt-5-mini-2026-08-07
Expected
wt-chat-deployment
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario azure/stream
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 2341, "output_tokens": 433, "total_tokens": 2774, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "wt-chat-deployment", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-azstream", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 433, "prompt_tokens": 2341, "total_tokens": 2774, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-eb4b13978b3813dfec1415b22d0c5ea7"
model"wt-chat-deployment"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-eb4b13978b3813dfec1415b22d0c5ea7"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-azstream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
model"wt-chat-deployment"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/async-basic · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Cost
$0.00104 on the wire, $0.00207 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/async-basic
Rule
The name of the model that generated the response.
Exported spans (6)

AsyncModels._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:54:22 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

AsyncModels.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:54:22 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/async-basic · response_id #
expected wt-gemini-basic, reported nothing
Expected
wt-gemini-basic
Cost
$0.00104 on the wire, $0.00207 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/async-basic
Rule
The unique identifier of the completion.
Exported spans (6)

AsyncModels._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:54:22 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

AsyncModels.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:54:22 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/async-basic · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Cost
$0.00104 on the wire, $0.00207 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

AsyncModels._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:54:22 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

AsyncModels.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:54:22 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · gemini/async-basic · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: generate_content gemini-3.5-flash-lite, generate_content gemini-3.5-flash-lite
Expected
1
Reported
2
Note
usage on 2 spans: generate_content gemini-3.5-flash-lite, generate_content gemini-3.5-flash-lite
Cost
$0.00104 on the wire, $0.00207 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/async-basic
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (6)

AsyncModels._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:54:22 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

AsyncModels.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:54:22 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-753fbfcb750c458f94456078681ca3a2"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/async-stream · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
$0.00178 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/async-stream
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-7d860c6958abfe7f5be0ca8fc95b6343"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/async-stream-dropped · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/async-stream-dropped
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-44e37b61e87cfca2dbbfe42ff0e01807"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/async-stream-early-exit · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/async-stream-early-exit
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d107b92d477605167200f638fda31676"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/basic · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Cost
$0.00104 on the wire, $0.00207 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/basic
Rule
The name of the model that generated the response.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:52:52 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:52:52 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/basic · response_id #
expected wt-gemini-basic, reported nothing
Expected
wt-gemini-basic
Cost
$0.00104 on the wire, $0.00207 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/basic
Rule
The unique identifier of the completion.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:52:52 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:52:52 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/basic · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Cost
$0.00104 on the wire, $0.00207 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:52:52 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:52:52 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · gemini/basic · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: generate_content gemini-3.5-flash-lite, generate_content gemini-3.5-flash-lite
Expected
1
Reported
2
Note
usage on 2 spans: generate_content gemini-3.5-flash-lite, generate_content gemini-3.5-flash-lite
Cost
$0.00104 on the wire, $0.00207 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/basic
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:52:52 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1193, "output_tokens": 271, "total_tokens": 1464}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:52:52 GMT", "content-type": "application/json", "content-length": "407", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-basic", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 271, "candidates_tokens_details": null, "prompt_token_count": 1193, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1193}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 1464, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-050053d4edcbd451e4c2134e3f7f70f1"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/cache-hit · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Cost
$0.00148 on the wire, $0.00517 from the spans (+250%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/cache-hit
Rule
The name of the model that generated the response.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5417, "output_tokens": 383, "total_tokens": 5800, "cache_read_input_tokens": 4099}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:33 GMT", "content-type": "application/json", "content-length": "506", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-cache", "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 4099}], "cached_content_token_count": 4099, "candidates_token_count": 383, "candidates_tokens_details": null, "prompt_token_count": 5417, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 5417}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 5800, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5417, "output_tokens": 383, "total_tokens": 5800, "cache_read_input_tokens": 4099}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:33 GMT", "content-type": "application/json", "content-length": "506", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-cache", "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 4099}], "cached_content_token_count": 4099, "candidates_token_count": 383, "candidates_tokens_details": null, "prompt_token_count": 5417, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 5417}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 5800, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/cache-hit · response_id #
expected wt-gemini-cache, reported nothing
Expected
wt-gemini-cache
Cost
$0.00148 on the wire, $0.00517 from the spans (+250%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/cache-hit
Rule
The unique identifier of the completion.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5417, "output_tokens": 383, "total_tokens": 5800, "cache_read_input_tokens": 4099}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:33 GMT", "content-type": "application/json", "content-length": "506", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-cache", "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 4099}], "cached_content_token_count": 4099, "candidates_token_count": 383, "candidates_tokens_details": null, "prompt_token_count": 5417, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 5417}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 5800, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5417, "output_tokens": 383, "total_tokens": 5800, "cache_read_input_tokens": 4099}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:33 GMT", "content-type": "application/json", "content-length": "506", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-cache", "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 4099}], "cached_content_token_count": 4099, "candidates_token_count": 383, "candidates_tokens_details": null, "prompt_token_count": 5417, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 5417}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 5800, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/cache-hit · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Cost
$0.00148 on the wire, $0.00517 from the spans (+250%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5417, "output_tokens": 383, "total_tokens": 5800, "cache_read_input_tokens": 4099}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:33 GMT", "content-type": "application/json", "content-length": "506", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-cache", "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 4099}], "cached_content_token_count": 4099, "candidates_token_count": 383, "candidates_tokens_details": null, "prompt_token_count": 5417, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 5417}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 5800, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5417, "output_tokens": 383, "total_tokens": 5800, "cache_read_input_tokens": 4099}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:33 GMT", "content-type": "application/json", "content-length": "506", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-cache", "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 4099}], "cached_content_token_count": 4099, "candidates_token_count": 383, "candidates_tokens_details": null, "prompt_token_count": 5417, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 5417}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 5800, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/cache-hit · cache_read_tokensCache-blind tokens #
expected 4099, reported nothing
Expected
4099
Cost
$0.00148 on the wire, $0.00517 from the spans (+250%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/cache-hit
Rule
Input tokens read from the provider cache.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5417, "output_tokens": 383, "total_tokens": 5800, "cache_read_input_tokens": 4099}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:33 GMT", "content-type": "application/json", "content-length": "506", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-cache", "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 4099}], "cached_content_token_count": 4099, "candidates_token_count": 383, "candidates_tokens_details": null, "prompt_token_count": 5417, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 5417}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 5800, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5417, "output_tokens": 383, "total_tokens": 5800, "cache_read_input_tokens": 4099}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:33 GMT", "content-type": "application/json", "content-length": "506", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-cache", "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 4099}], "cached_content_token_count": 4099, "candidates_token_count": 383, "candidates_tokens_details": null, "prompt_token_count": 5417, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 5417}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 5800, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · gemini/cache-hit · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: generate_content gemini-3.5-flash-lite, generate_content gemini-3.5-flash-lite
Expected
1
Reported
2
Note
usage on 2 spans: generate_content gemini-3.5-flash-lite, generate_content gemini-3.5-flash-lite
Cost
$0.00148 on the wire, $0.00517 from the spans (+250%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/cache-hit
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5417, "output_tokens": 383, "total_tokens": 5800, "cache_read_input_tokens": 4099}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:33 GMT", "content-type": "application/json", "content-length": "506", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-cache", "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 4099}], "cached_content_token_count": 4099, "candidates_token_count": 383, "candidates_tokens_details": null, "prompt_token_count": 5417, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 5417}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 5800, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5417, "output_tokens": 383, "total_tokens": 5800, "cache_read_input_tokens": 4099}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:33 GMT", "content-type": "application/json", "content-length": "506", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-cache", "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 4099}], "cached_content_token_count": 4099, "candidates_token_count": 383, "candidates_tokens_details": null, "prompt_token_count": 5417, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 5417}], "thoughts_token_count": null, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 5800, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-bbb58ee53c41d52b140bf5635e8a7f87"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject mlflow --scenario gemini/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status ERROR

mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel40
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-9640457879238a6b8a88cad285da9eea"

Models.generate_content mlflow.tracing.provider, status ERROR

mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel40
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-9640457879238a6b8a88cad285da9eea"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9640457879238a6b8a88cad285da9eea"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status ERROR

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status ERROR

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/stream · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
$0.00178 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/stream
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-665a05bc81b9cd8189460364044a7bb7"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/stream-cache-hit · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
$0.00182 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/stream-cache-hit
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-83f41abe3e25dbc12b103bde6c243016"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/stream-dropped · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/stream-dropped
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-225af9fc4fe2106e97bb600806f11b56"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/stream-early-exit · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/stream-early-exit
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-103f45f9292b35734306c7bdf9c709fa"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/stream-thinking · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
$0.00641 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/stream-thinking
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (2)

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c2cb45b93393c7008787007ae4132b42"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/thinking · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Cost
$0.00578 on the wire, $0.0116 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/thinking
Rule
The name of the model that generated the response.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1609, "output_tokens": 2118, "total_tokens": 3727}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:16 GMT", "content-type": "application/json", "content-length": "435", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-think", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 241, "candidates_tokens_details": null, "prompt_token_count": 1609, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1609}], "thoughts_token_count": 1877, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 3727, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1609, "output_tokens": 2118, "total_tokens": 3727}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:16 GMT", "content-type": "application/json", "content-length": "435", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-think", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 241, "candidates_tokens_details": null, "prompt_token_count": 1609, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1609}], "thoughts_token_count": 1877, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 3727, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/thinking · response_id #
expected wt-gemini-think, reported nothing
Expected
wt-gemini-think
Cost
$0.00578 on the wire, $0.0116 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/thinking
Rule
The unique identifier of the completion.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1609, "output_tokens": 2118, "total_tokens": 3727}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:16 GMT", "content-type": "application/json", "content-length": "435", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-think", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 241, "candidates_tokens_details": null, "prompt_token_count": 1609, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1609}], "thoughts_token_count": 1877, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 3727, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1609, "output_tokens": 2118, "total_tokens": 3727}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:16 GMT", "content-type": "application/json", "content-length": "435", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-think", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 241, "candidates_tokens_details": null, "prompt_token_count": 1609, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1609}], "thoughts_token_count": 1877, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 3727, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/thinking · finish_reasonsSilent stop #
expected STOP, reported nothing
Expected
['STOP']
Cost
$0.00578 on the wire, $0.0116 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1609, "output_tokens": 2118, "total_tokens": 3727}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:16 GMT", "content-type": "application/json", "content-length": "435", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-think", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 241, "candidates_tokens_details": null, "prompt_token_count": 1609, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1609}], "thoughts_token_count": 1877, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 3727, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1609, "output_tokens": 2118, "total_tokens": 3727}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:16 GMT", "content-type": "application/json", "content-length": "435", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-think", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 241, "candidates_tokens_details": null, "prompt_token_count": 1609, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1609}], "thoughts_token_count": 1877, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 3727, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · gemini/thinking · reasoning_tokensHidden reasoning #
expected 1877, reported nothing
Expected
1877
Cost
$0.00578 on the wire, $0.0116 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1609, "output_tokens": 2118, "total_tokens": 3727}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:16 GMT", "content-type": "application/json", "content-length": "435", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-think", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 241, "candidates_tokens_details": null, "prompt_token_count": 1609, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1609}], "thoughts_token_count": 1877, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 3727, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1609, "output_tokens": 2118, "total_tokens": 3727}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:16 GMT", "content-type": "application/json", "content-length": "435", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-think", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 241, "candidates_tokens_details": null, "prompt_token_count": 1609, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1609}], "thoughts_token_count": 1877, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 3727, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · gemini/thinking · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: generate_content gemini-3.5-flash-lite, generate_content gemini-3.5-flash-lite
Expected
1
Reported
2
Note
usage on 2 spans: generate_content gemini-3.5-flash-lite, generate_content gemini-3.5-flash-lite
Cost
$0.00578 on the wire, $0.0116 from the spans (+100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario gemini/thinking
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (6)

Models._generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1609, "output_tokens": 2118, "total_tokens": 3727}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?", "config": null}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:16 GMT", "content-type": "application/json", "content-length": "435", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-think", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 241, "candidates_tokens_details": null, "prompt_token_count": 1609, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1609}], "thoughts_token_count": 1877, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 3727, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": null, "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

Models.generate_content mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1609, "output_tokens": 2118, "total_tokens": 3727}
mlflow.llm.model"gemini-3.5-flash-lite"
mlflow.llm.provider"gemini"
mlflow.message.format"gemini"
mlflow.spanInputs{"model": "gemini-3.5-flash-lite", "contents": "What is the capital of France?"}
mlflow.spanLogLevel20
mlflow.spanOutputs{"sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:53:16 GMT", "content-type": "application/json", "content-length": "435", "x-request-id": "req_spantruth"}, "body": null}, "candidates": [{"content": {"parts": [{"media_resolution": null, "code_execution_result": null, "executable_code": null, "file_data": null, "function_call": null, "function_response": null, "inline_data": null, "text": "The capital of France is Paris.", "thought": null, "thought_signature": null, "video_metadata": null, "tool_call": null, "tool_response": null, "part_metadata": null, "audio_transcription": null, "media_processing": null, "speech_metadata": null, "document_metadata": null, "spreadsheet_metadata": null, "audio_metadata": null}], "role": "model"}, "citation_metadata": null, "finish_message": null, "token_count": null, "finish_reason": "STOP", "grounding_metadata": null, "avg_logprobs": null, "index": 0, "logprobs_result": null, "safety_ratings": null, "url_context_metadata": null, "continuation_token": null}], "create_time": null, "model_version": "gemini-3.5-flash-lite", "prompt_feedback": null, "response_id": "wt-gemini-think", "usage_metadata": {"cache_tokens_details": null, "cached_content_token_count": null, "candidates_token_count": 241, "candidates_tokens_details": null, "prompt_token_count": 1609, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1609}], "thoughts_token_count": 1877, "tool_use_prompt_token_count": null, "tool_use_prompt_tokens_details": null, "total_token_count": 3727, "traffic_type": null}, "model_status": null, "automatic_function_calling_history": [], "parsed": null}
mlflow.spanType"LLM"
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-74be976dd5ff7fbd2a669ae74ce59f98"

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118

generate_content gemini-3.5-flash-lite mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}]}]
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens2118

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/agent-loop · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07: call 1 of 3; failed on calls 1, 2, 3
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject mlflow --scenario openai/agent-loop
Rule
The model name the request asked for.
Exported spans (8)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1171, "output_tokens": 97, "total_tokens": 1268, "cache_read_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "tools": [{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-loop1", "choices": [{"finish_reason": "tool_calls", "index": 0, "logprobs": null, "message": {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_w", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}]}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 97, "prompt_tokens": 1171, "total_tokens": 1268, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4c39dbead7ada0784f7c75870d648e25"
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1307, "output_tokens": 89, "total_tokens": 1396, "cache_read_input_tokens": 1093}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}, {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_w", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}]}, {"role": "tool", "tool_call_id": "call_wt_w", "content": "18 C and sunny"}], "tools": [{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-loop2", "choices": [{"finish_reason": "tool_calls", "index": 0, "logprobs": null, "message": {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_t", "function": {"arguments": "{\"zone\":\"Europe/Paris\"}", "name": "get_time"}, "type": "function"}]}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 89, "prompt_tokens": 1307, "total_tokens": 1396, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 1093, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4c39dbead7ada0784f7c75870d648e25"
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1459, "output_tokens": 211, "total_tokens": 1670, "cache_read_input_tokens": 1279}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}, {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_w", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}]}, {"role": "tool", "tool_call_id": "call_wt_w", "content": "18 C and sunny"}, {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_t", "function": {"arguments": "{\"zone\":\"Europe/Paris\"}", "name": "get_time"}, "type": "function"}]}, {"role": "tool", "tool_call_id": "call_wt_t", "content": "14:05"}], "tools": [{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-loop3", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "It is 18 C and sunny in Paris, and the time is 14:05.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 211, "prompt_tokens": 1459, "total_tokens": 1670, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 1279, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4c39dbead7ada0784f7c75870d648e25"
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4c39dbead7ada0784f7c75870d648e25"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}], "finish_reason": "tool_calls"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['tool_calls']
gen_ai.response.idchatcmpl-wt-loop1
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "call_wt_w", "response": "18 C and sunny"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_t", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": "tool_calls"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['tool_calls']
gen_ai.response.idchatcmpl-wt-loop2
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "call_wt_w", "response": "18 C and sunny"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_t", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "call_wt_t", "response": "14:05"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "It is 18 C and sunny in Paris, and the time is 14:05."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-loop3
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/agent-loop · cache_read_tokensCache-blind tokens #
expected 1093, reported nothing: call 2 of 3; failed on calls 2, 3
Expected
1093
Note
call 2 of 3; failed on calls 2, 3
Reproduce
spantruth run --subject mlflow --scenario openai/agent-loop
Rule
Input tokens read from the provider cache.
Exported spans (8)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1171, "output_tokens": 97, "total_tokens": 1268, "cache_read_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "tools": [{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-loop1", "choices": [{"finish_reason": "tool_calls", "index": 0, "logprobs": null, "message": {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_w", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}]}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 97, "prompt_tokens": 1171, "total_tokens": 1268, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4c39dbead7ada0784f7c75870d648e25"
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1307, "output_tokens": 89, "total_tokens": 1396, "cache_read_input_tokens": 1093}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}, {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_w", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}]}, {"role": "tool", "tool_call_id": "call_wt_w", "content": "18 C and sunny"}], "tools": [{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-loop2", "choices": [{"finish_reason": "tool_calls", "index": 0, "logprobs": null, "message": {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_t", "function": {"arguments": "{\"zone\":\"Europe/Paris\"}", "name": "get_time"}, "type": "function"}]}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 89, "prompt_tokens": 1307, "total_tokens": 1396, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 1093, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4c39dbead7ada0784f7c75870d648e25"
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1459, "output_tokens": 211, "total_tokens": 1670, "cache_read_input_tokens": 1279}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}, {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_w", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}]}, {"role": "tool", "tool_call_id": "call_wt_w", "content": "18 C and sunny"}, {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_t", "function": {"arguments": "{\"zone\":\"Europe/Paris\"}", "name": "get_time"}, "type": "function"}]}, {"role": "tool", "tool_call_id": "call_wt_t", "content": "14:05"}], "tools": [{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-loop3", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "It is 18 C and sunny in Paris, and the time is 14:05.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 211, "prompt_tokens": 1459, "total_tokens": 1670, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 1279, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4c39dbead7ada0784f7c75870d648e25"
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4c39dbead7ada0784f7c75870d648e25"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}], "finish_reason": "tool_calls"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['tool_calls']
gen_ai.response.idchatcmpl-wt-loop1
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "call_wt_w", "response": "18 C and sunny"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_t", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": "tool_calls"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['tool_calls']
gen_ai.response.idchatcmpl-wt-loop2
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "call_wt_w", "response": "18 C and sunny"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_t", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}]}, {"role": "tool", "parts": [{"type": "tool_call_response", "id": "call_wt_t", "response": "14:05"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "It is 18 C and sunny in Paris, and the time is 14:05."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-loop3
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/async-basic · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/async-basic
Rule
The model name the request asked for.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1187, "output_tokens": 263, "total_tokens": 1450, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-basic", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 263, "prompt_tokens": 1187, "total_tokens": 1450, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-02f01ea20b7a5b572a353d62562714b2"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-02f01ea20b7a5b572a353d62562714b2"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-basic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/async-concurrent-streams · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07: call 1 of 2
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Note
call 1 of 2
Reproduce
spantruth run --subject mlflow --scenario openai/async-concurrent-streams
Rule
The model name the request asked for.
Exported spans (6)

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1033, "output_tokens": 149, "total_tokens": 1182, "cache_read_input_tokens": 769}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-par1", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 149, "prompt_tokens": 1033, "total_tokens": 1182, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 769, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9644ae077185c30fb5695400f328961c"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1747, "output_tokens": 181, "total_tokens": 1928, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-nano-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-nano", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-par2", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-nano-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 181, "prompt_tokens": 1747, "total_tokens": 1928, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9644ae077185c30fb5695400f328961c"
model"gpt-5-nano"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9644ae077185c30fb5695400f328961c"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-par1
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

chat gpt-5-nano-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-nano-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-par2
gen_ai.response.modelgpt-5-nano-2026-08-07
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
model"gpt-5-nano"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/async-concurrent-streams · cache_read_tokensCache-blind tokens #
expected 769, reported nothing: call 1 of 2
Expected
769
Note
call 1 of 2
Reproduce
spantruth run --subject mlflow --scenario openai/async-concurrent-streams
Rule
Input tokens read from the provider cache.
Exported spans (6)

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1033, "output_tokens": 149, "total_tokens": 1182, "cache_read_input_tokens": 769}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-par1", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 149, "prompt_tokens": 1033, "total_tokens": 1182, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 769, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9644ae077185c30fb5695400f328961c"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1747, "output_tokens": 181, "total_tokens": 1928, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-nano-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-nano", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-par2", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-nano-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 181, "prompt_tokens": 1747, "total_tokens": 1928, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9644ae077185c30fb5695400f328961c"
model"gpt-5-nano"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9644ae077185c30fb5695400f328961c"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-par1
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

chat gpt-5-nano-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-nano-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-par2
gen_ai.response.modelgpt-5-nano-2026-08-07
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
model"gpt-5-nano"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

inconclusive mlflow · openai/async-concurrent-streams · span.recordedGhost span #
call 2 of 2: 1 LLM span(s) record no request model of any call, and the calls ran at the same time, so those spans are not graded
Note
call 2 of 2: 1 LLM span(s) record no request model of any call, and the calls ran at the same time, so those spans are not graded
Reproduce
spantruth run --subject mlflow --scenario openai/async-concurrent-streams
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (6)

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1033, "output_tokens": 149, "total_tokens": 1182, "cache_read_input_tokens": 769}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-par1", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 149, "prompt_tokens": 1033, "total_tokens": 1182, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 769, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9644ae077185c30fb5695400f328961c"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1747, "output_tokens": 181, "total_tokens": 1928, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-nano-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-nano", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-par2", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-nano-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 181, "prompt_tokens": 1747, "total_tokens": 1928, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9644ae077185c30fb5695400f328961c"
model"gpt-5-nano"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9644ae077185c30fb5695400f328961c"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-par1
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

chat gpt-5-nano-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-nano-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-par2
gen_ai.response.modelgpt-5-nano-2026-08-07
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
model"gpt-5-nano"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/async-stream · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/async-stream
Rule
The model name the request asked for.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 2311, "output_tokens": 419, "total_tokens": 2730, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-stream", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 419, "prompt_tokens": 2311, "total_tokens": 2730, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-956d43f68b50fbe5fa6dd06e6c49e904"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-956d43f68b50fbe5fa6dd06e6c49e904"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/async-stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject mlflow --scenario openai/async-stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status ERROR

mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel40
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-7d3f7dc2c18e596b5e03739e512e7eaf"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-7d3f7dc2c18e596b5e03739e512e7eaf"

chat mlflow.tracing.provider, status ERROR

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/async-stream-early-exit · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/async-stream-early-exit
Rule
The model name the request asked for.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status OK

mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-early", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": null}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-c17c99233987dd6d911221937f1515de"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c17c99233987dd6d911221937f1515de"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital"}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-early
gen_ai.response.modelgpt-5-mini-2026-08-07
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/async-stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/async-stream-helper
Rule
The name of the model that generated the response.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
mlflow.llm.model"gpt-5-mini"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}, "extra_headers": {"X-Stainless-Raw-Response": "stream"}}
mlflow.spanLogLevel20
mlflow.spanOutputs"<AsyncAPIResponse [200 OK] type=<class 'openai.types.chat.chat_completion.ChatCompletion'>>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-1dc6a4ae575bf107e4c5b8e03cd242ae"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-1dc6a4ae575bf107e4c5b8e03cd242ae"

chat gpt-5-mini mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/async-stream-helper · response_id #
expected chatcmpl-wt-shelper, reported nothing
Expected
chatcmpl-wt-shelper
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/async-stream-helper
Rule
The unique identifier of the completion.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
mlflow.llm.model"gpt-5-mini"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}, "extra_headers": {"X-Stainless-Raw-Response": "stream"}}
mlflow.spanLogLevel20
mlflow.spanOutputs"<AsyncAPIResponse [200 OK] type=<class 'openai.types.chat.chat_completion.ChatCompletion'>>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-1dc6a4ae575bf107e4c5b8e03cd242ae"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-1dc6a4ae575bf107e4c5b8e03cd242ae"

chat gpt-5-mini mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/async-stream-helper · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/async-stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
mlflow.llm.model"gpt-5-mini"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}, "extra_headers": {"X-Stainless-Raw-Response": "stream"}}
mlflow.spanLogLevel20
mlflow.spanOutputs"<AsyncAPIResponse [200 OK] type=<class 'openai.types.chat.chat_completion.ChatCompletion'>>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-1dc6a4ae575bf107e4c5b8e03cd242ae"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-1dc6a4ae575bf107e4c5b8e03cd242ae"

chat gpt-5-mini mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/async-stream-helper · input_tokensVanishing tokens #
expected 2137, reported nothing
Expected
2137
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/async-stream-helper
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
mlflow.llm.model"gpt-5-mini"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}, "extra_headers": {"X-Stainless-Raw-Response": "stream"}}
mlflow.spanLogLevel20
mlflow.spanOutputs"<AsyncAPIResponse [200 OK] type=<class 'openai.types.chat.chat_completion.ChatCompletion'>>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-1dc6a4ae575bf107e4c5b8e03cd242ae"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-1dc6a4ae575bf107e4c5b8e03cd242ae"

chat gpt-5-mini mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/async-stream-helper · output_tokensVanishing tokens #
expected 313, reported nothing
Expected
313
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/async-stream-helper
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

AsyncCompletions mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
mlflow.llm.model"gpt-5-mini"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}, "extra_headers": {"X-Stainless-Raw-Response": "stream"}}
mlflow.spanLogLevel20
mlflow.spanOutputs"<AsyncAPIResponse [200 OK] type=<class 'openai.types.chat.chat_completion.ChatCompletion'>>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-1dc6a4ae575bf107e4c5b8e03cd242ae"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-1dc6a4ae575bf107e4c5b8e03cd242ae"

chat gpt-5-mini mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/basic · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/basic
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1187, "output_tokens": 263, "total_tokens": 1450, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-basic", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 263, "prompt_tokens": 1187, "total_tokens": 1450, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-35b445f335abf0cd42585928a0de9870"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-35b445f335abf0cd42585928a0de9870"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-basic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/cache-hit · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Cost
$0.00118 on the wire, $0.0021 from the spans (+78.3%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/cache-hit
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5379, "output_tokens": 377, "total_tokens": 5756, "cache_read_input_tokens": 4096}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-cache", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 377, "prompt_tokens": 5379, "total_tokens": 5756, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 4096, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-444ca24bf226048b1199bb20633974e9"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-444ca24bf226048b1199bb20633974e9"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-cache
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens5379
gen_ai.usage.output_tokens377
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/cache-hit · cache_read_tokensCache-blind tokens #
expected 4096, reported nothing
Expected
4096
Cost
$0.00118 on the wire, $0.0021 from the spans (+78.3%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/cache-hit
Rule
Input tokens read from the provider cache.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 5379, "output_tokens": 377, "total_tokens": 5756, "cache_read_input_tokens": 4096}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-cache", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 377, "prompt_tokens": 5379, "total_tokens": 5756, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 4096, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-444ca24bf226048b1199bb20633974e9"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-444ca24bf226048b1199bb20633974e9"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-cache
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens5379
gen_ai.usage.output_tokens377
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/cache-write · request_model #
expected gpt-5.6-luna, reported gpt-5.6-luna-2026-10-14
Expected
gpt-5.6-luna
Reported
gpt-5.6-luna-2026-10-14
Read from
gen_ai.request.model
Cost
$0.00147 on the wire, $0.00181 from the spans (+22.9%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/cache-write
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 6619, "output_tokens": 401, "total_tokens": 7020, "cache_read_input_tokens": 2753}
mlflow.llm.model"gpt-5.6-luna-2026-10-14"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5.6-luna", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-cwrite", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5.6-luna-2026-10-14", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 401, "prompt_tokens": 6619, "total_tokens": 7020, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": 3181, "cached_tokens": 2753, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5ad69e557783855907e3fa134b429f21"
model"gpt-5.6-luna"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5ad69e557783855907e3fa134b429f21"

chat gpt-5.6-luna-2026-10-14 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-cwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
model"gpt-5.6-luna"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/cache-write · cache_read_tokensCache-blind tokens #
expected 2753, reported nothing
Expected
2753
Cost
$0.00147 on the wire, $0.00181 from the spans (+22.9%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/cache-write
Rule
Input tokens read from the provider cache.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 6619, "output_tokens": 401, "total_tokens": 7020, "cache_read_input_tokens": 2753}
mlflow.llm.model"gpt-5.6-luna-2026-10-14"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5.6-luna", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-cwrite", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5.6-luna-2026-10-14", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 401, "prompt_tokens": 6619, "total_tokens": 7020, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": 3181, "cached_tokens": 2753, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5ad69e557783855907e3fa134b429f21"
model"gpt-5.6-luna"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5ad69e557783855907e3fa134b429f21"

chat gpt-5.6-luna-2026-10-14 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-cwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
model"gpt-5.6-luna"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/cache-write · cache_write_tokensCache-blind tokens #
expected 3181, reported nothing
Expected
3181
Cost
$0.00147 on the wire, $0.00181 from the spans (+22.9%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/cache-write
Rule
Input tokens written to the provider cache.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 6619, "output_tokens": 401, "total_tokens": 7020, "cache_read_input_tokens": 2753}
mlflow.llm.model"gpt-5.6-luna-2026-10-14"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5.6-luna", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-cwrite", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5.6-luna-2026-10-14", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 401, "prompt_tokens": 6619, "total_tokens": 7020, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": 3181, "cached_tokens": 2753, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5ad69e557783855907e3fa134b429f21"
model"gpt-5.6-luna"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5ad69e557783855907e3fa134b429f21"

chat gpt-5.6-luna-2026-10-14 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-cwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
model"gpt-5.6-luna"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/compat-extra-cache-fields · cache_read_tokensCache-blind tokens #
expected 1408, reported nothing
Expected
1408
Reproduce
spantruth run --subject mlflow --scenario openai/compat-extra-cache-fields
Rule
Input tokens read from the provider cache.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1931, "output_tokens": 397, "total_tokens": 2328, "cache_read_input_tokens": 1408}
mlflow.llm.model"deepseek-flash"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "deepseek-flash", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "9f3c2a71-5b8e-4d0a-a6c4-2e17d8b0f5a3", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1793084842, "model": "deepseek-flash", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt_deepseek", "usage": {"completion_tokens": 397, "prompt_tokens": 1931, "total_tokens": 2328, "completion_tokens_details": null, "prompt_tokens_details": {"audio_tokens": null, "cache_write_tokens": null, "cached_tokens": 1408, "image_tokens": null, "text_tokens": null}, "prompt_cache_hit_tokens": 1408, "prompt_cache_miss_tokens": 523}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-33f49bf9571b9082a416ed103314183a"
model"deepseek-flash"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-33f49bf9571b9082a416ed103314183a"

chat deepseek-flash mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modeldeepseek-flash
gen_ai.response.finish_reasons['stop']
gen_ai.response.id9f3c2a71-5b8e-4d0a-a6c4-2e17d8b0f5a3
gen_ai.response.modeldeepseek-flash
gen_ai.usage.input_tokens1931
gen_ai.usage.output_tokens397
model"deepseek-flash"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/compat-extra-timing-fields · request_model #
expected llama-3.3-70b-versatile, reported openai/gpt-oss-20b
Expected
llama-3.3-70b-versatile
Reported
openai/gpt-oss-20b
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/compat-extra-timing-fields
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 18, "output_tokens": 556, "total_tokens": 574}
mlflow.llm.model"openai/gpt-oss-20b"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "llama-3.3-70b-versatile", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-f51b2cd2-bef7-417e-964e-a08f0b513c22", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1730241104, "model": "openai/gpt-oss-20b", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_179b0f92c9", "usage": {"completion_tokens": 556, "prompt_tokens": 18, "total_tokens": 574, "completion_tokens_details": null, "prompt_tokens_details": null, "queue_time": 0.037493756, "prompt_time": 0.000680594, "completion_time": 0.463333333, "total_time": 0.464013927}, "x_groq": {"id": "req_01jbd6g2qdfw2adyrt2az8hz4w"}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-376440b7c84b257667c2d7215f5c8e59"
model"llama-3.3-70b-versatile"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-376440b7c84b257667c2d7215f5c8e59"

chat openai/gpt-oss-20b mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelopenai/gpt-oss-20b
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-f51b2cd2-bef7-417e-964e-a08f0b513c22
gen_ai.response.modelopenai/gpt-oss-20b
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
model"llama-3.3-70b-versatile"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/compat-no-details · request_model #
expected qwen3.5-27b, reported Qwen/Qwen3.5-27B-Instruct
Expected
qwen3.5-27b
Reported
Qwen/Qwen3.5-27B-Instruct
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/compat-no-details
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1129, "output_tokens": 241, "total_tokens": 1370}
mlflow.llm.model"Qwen/Qwen3.5-27B-Instruct"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "qwen3.5-27b", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-cnodet", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "Qwen/Qwen3.5-27B-Instruct", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 241, "prompt_tokens": 1129, "total_tokens": 1370, "completion_tokens_details": null, "prompt_tokens_details": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-c1a8956291ba4eff1bbe4db2d2749498"
model"qwen3.5-27b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c1a8956291ba4eff1bbe4db2d2749498"

chat Qwen/Qwen3.5-27B-Instruct mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-cnodet
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1129
gen_ai.usage.output_tokens241
model"qwen3.5-27b"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/compat-null-details · request_model #
expected qwen3.5-27b, reported Qwen/Qwen3.5-27B-Instruct
Expected
qwen3.5-27b
Reported
Qwen/Qwen3.5-27B-Instruct
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/compat-null-details
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1213, "output_tokens": 277, "total_tokens": 1490}
mlflow.llm.model"Qwen/Qwen3.5-27B-Instruct"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "qwen3.5-27b", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-cnull", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "Qwen/Qwen3.5-27B-Instruct", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 277, "prompt_tokens": 1213, "total_tokens": 1490, "completion_tokens_details": null, "prompt_tokens_details": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-a0cec36c7e4cbb947df37f86e35abb07"
model"qwen3.5-27b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-a0cec36c7e4cbb947df37f86e35abb07"

chat Qwen/Qwen3.5-27B-Instruct mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-cnull
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
model"qwen3.5-27b"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/compat-partial-details · cache_read_tokensCache-blind tokens #
expected 28, reported nothing
Expected
28
Reproduce
spantruth run --subject mlflow --scenario openai/compat-partial-details
Rule
Input tokens read from the provider cache.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 32, "output_tokens": 16, "total_tokens": 48, "cache_read_input_tokens": 28}
mlflow.llm.model"qwen3.5:0.8b"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "qwen3.5:0.8b", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-54", "choices": [{"finish_reason": "length", "index": 0, "logprobs": null, "message": {"content": "Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1791831683, "model": "qwen3.5:0.8b", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_ollama", "usage": {"completion_tokens": 16, "prompt_tokens": 32, "total_tokens": 48, "completion_tokens_details": null, "prompt_tokens_details": {"audio_tokens": null, "cache_write_tokens": null, "cached_tokens": 28, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8ac18260dfe0340fde24a87362c4a055"
model"qwen3.5:0.8b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8ac18260dfe0340fde24a87362c4a055"

chat qwen3.5:0.8b mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage"}], "finish_reason": "length"}]
gen_ai.request.modelqwen3.5:0.8b
gen_ai.response.finish_reasons['length']
gen_ai.response.idchatcmpl-54
gen_ai.response.modelqwen3.5:0.8b
gen_ai.usage.input_tokens32
gen_ai.usage.output_tokens16
model"qwen3.5:0.8b"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/compat-stream-no-details · request_model #
expected qwen3.5-27b, reported Qwen/Qwen3.5-27B-Instruct
Expected
qwen3.5-27b
Reported
Qwen/Qwen3.5-27B-Instruct
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/compat-stream-no-details
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1361, "output_tokens": 293, "total_tokens": 1654}
mlflow.llm.model"Qwen/Qwen3.5-27B-Instruct"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "qwen3.5-27b", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-csnodet", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "Qwen/Qwen3.5-27B-Instruct", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 293, "prompt_tokens": 1361, "total_tokens": 1654, "completion_tokens_details": null, "prompt_tokens_details": null}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9be4f2e485232e3ec4e21de30a272613"
model"qwen3.5-27b"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9be4f2e485232e3ec4e21de30a272613"

chat Qwen/Qwen3.5-27B-Instruct mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-csnodet
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
model"qwen3.5-27b"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/compat-stream-usage-on-finish · request_model #
expected qwen3.5-27b, reported Qwen/Qwen3.5-27B-Instruct
Expected
qwen3.5-27b
Reported
Qwen/Qwen3.5-27B-Instruct
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/compat-stream-usage-on-finish
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1489, "output_tokens": 331, "total_tokens": 1820, "cache_read_input_tokens": 1063}
mlflow.llm.model"Qwen/Qwen3.5-27B-Instruct"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "qwen3.5-27b", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-csfinish", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "Qwen/Qwen3.5-27B-Instruct", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 331, "prompt_tokens": 1489, "total_tokens": 1820, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 1063, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-2bccc4a58da28c65d674f501bd93fe49"
model"qwen3.5-27b"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-2bccc4a58da28c65d674f501bd93fe49"

chat Qwen/Qwen3.5-27B-Instruct mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-csfinish
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
model"qwen3.5-27b"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/compat-stream-usage-on-finish · cache_read_tokensCache-blind tokens #
expected 1063, reported nothing
Expected
1063
Reproduce
spantruth run --subject mlflow --scenario openai/compat-stream-usage-on-finish
Rule
Input tokens read from the provider cache.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1489, "output_tokens": 331, "total_tokens": 1820, "cache_read_input_tokens": 1063}
mlflow.llm.model"Qwen/Qwen3.5-27B-Instruct"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "qwen3.5-27b", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-csfinish", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "Qwen/Qwen3.5-27B-Instruct", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 331, "prompt_tokens": 1489, "total_tokens": 1820, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 1063, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-2bccc4a58da28c65d674f501bd93fe49"
model"qwen3.5-27b"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-2bccc4a58da28c65d674f501bd93fe49"

chat Qwen/Qwen3.5-27B-Instruct mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-csfinish
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
model"qwen3.5-27b"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/content-off · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/content-off
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1187, "output_tokens": 263, "total_tokens": 1450, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-basic", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 263, "prompt_tokens": 1187, "total_tokens": 1450, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e7b5b4b57f1f2573ea4d638c0919b52f"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e7b5b4b57f1f2573ea4d638c0919b52f"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-basic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/content-on · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/content-on
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1187, "output_tokens": 263, "total_tokens": 1450, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-basic", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 263, "prompt_tokens": 1187, "total_tokens": 1450, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-b20d70694643dd8c38cceee87cdd136b"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b20d70694643dd8c38cceee87cdd136b"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-basic
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject mlflow --scenario openai/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (4)

Completions mlflow.tracing.provider, status ERROR

mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel40
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-7b6d3d68417b57ca7c0b24e4bd150e7b"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-7b6d3d68417b57ca7c0b24e4bd150e7b"

chat mlflow.tracing.provider, status ERROR

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/reasoning · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/reasoning
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1601, "output_tokens": 2219, "total_tokens": 3820, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-reason", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 2219, "prompt_tokens": 1601, "total_tokens": 3820, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 1792, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-1f46fee56544b119693cd24b1c859ae5"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-1f46fee56544b119693cd24b1c859ae5"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-reason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/reasoning · reasoning_tokensHidden reasoning #
expected 1792, reported nothing
Expected
1792
Reproduce
spantruth run --subject mlflow --scenario openai/reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1601, "output_tokens": 2219, "total_tokens": 3820, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-reason", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 2219, "prompt_tokens": 1601, "total_tokens": 3820, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 1792, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-1f46fee56544b119693cd24b1c859ae5"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-1f46fee56544b119693cd24b1c859ae5"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-reason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/responses-stream-missing-finish-abort · error.typeFalse OK #
Reproduce
spantruth run --subject mlflow --scenario openai/responses-stream-missing-finish-abort
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (4)

Responses mlflow.tracing.provider, status ERROR

mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-6-luna", "input": [{"role": "user", "content": "What is the capital of France?"}], "stream": true}
mlflow.spanLogLevel40
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-999fa4ce2eec84591a6e4134820f20e7"
model"gpt-6-luna"
streamtrue

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-999fa4ce2eec84591a6e4134820f20e7"

chat mlflow.tracing.provider, status ERROR

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
model"gpt-6-luna"
streamtrue

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/retry-429 · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/retry-429
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 2477, "output_tokens": 367, "total_tokens": 2844, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-retry", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 367, "prompt_tokens": 2477, "total_tokens": 2844, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-de9ce19b2bd3f11fe07e1afe4802f406"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-de9ce19b2bd3f11fe07e1afe4802f406"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-retry
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/stream · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/stream
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 2311, "output_tokens": 419, "total_tokens": 2730, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-stream", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 419, "prompt_tokens": 2311, "total_tokens": 2730, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-be3cc4260846d403c5bd69b9f21a29cd"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-be3cc4260846d403c5bd69b9f21a29cd"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/stream-cache-hit · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Cost
$0.00144 on the wire, $0.00283 from the spans (+95.8%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/stream-cache-hit
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 7213, "output_tokens": 511, "total_tokens": 7724, "cache_read_input_tokens": 6144}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-scache", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 511, "prompt_tokens": 7213, "total_tokens": 7724, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 6144, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d2d387d39434bb99c5f786b8a9789437"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d2d387d39434bb99c5f786b8a9789437"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-scache
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/stream-cache-hit · cache_read_tokensCache-blind tokens #
expected 6144, reported nothing
Expected
6144
Cost
$0.00144 on the wire, $0.00283 from the spans (+95.8%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/stream-cache-hit
Rule
Input tokens read from the provider cache.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 7213, "output_tokens": 511, "total_tokens": 7724, "cache_read_input_tokens": 6144}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-scache", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 511, "prompt_tokens": 7213, "total_tokens": 7724, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 6144, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d2d387d39434bb99c5f786b8a9789437"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d2d387d39434bb99c5f786b8a9789437"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-scache
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/stream-cache-write · request_model #
expected gpt-5.6-luna, reported gpt-5.6-luna-2026-10-14
Expected
gpt-5.6-luna
Reported
gpt-5.6-luna-2026-10-14
Read from
gen_ai.request.model
Cost
$0.00166 on the wire, $0.0022 from the spans (+32.4%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/stream-cache-write
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 8237, "output_tokens": 457, "total_tokens": 8694, "cache_read_input_tokens": 3967}
mlflow.llm.model"gpt-5.6-luna-2026-10-14"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5.6-luna", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-scwrite", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5.6-luna-2026-10-14", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 457, "prompt_tokens": 8237, "total_tokens": 8694, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": 3539, "cached_tokens": 3967, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-418d0470e3bc78607940737b127fb90c"
model"gpt-5.6-luna"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-418d0470e3bc78607940737b127fb90c"

chat gpt-5.6-luna-2026-10-14 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
model"gpt-5.6-luna"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/stream-cache-write · cache_read_tokensCache-blind tokens #
expected 3967, reported nothing
Expected
3967
Cost
$0.00166 on the wire, $0.0022 from the spans (+32.4%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/stream-cache-write
Rule
Input tokens read from the provider cache.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 8237, "output_tokens": 457, "total_tokens": 8694, "cache_read_input_tokens": 3967}
mlflow.llm.model"gpt-5.6-luna-2026-10-14"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5.6-luna", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-scwrite", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5.6-luna-2026-10-14", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 457, "prompt_tokens": 8237, "total_tokens": 8694, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": 3539, "cached_tokens": 3967, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-418d0470e3bc78607940737b127fb90c"
model"gpt-5.6-luna"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-418d0470e3bc78607940737b127fb90c"

chat gpt-5.6-luna-2026-10-14 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
model"gpt-5.6-luna"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/stream-cache-write · cache_write_tokensCache-blind tokens #
expected 3539, reported nothing
Expected
3539
Cost
$0.00166 on the wire, $0.0022 from the spans (+32.4%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/stream-cache-write
Rule
Input tokens written to the provider cache.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 8237, "output_tokens": 457, "total_tokens": 8694, "cache_read_input_tokens": 3967}
mlflow.llm.model"gpt-5.6-luna-2026-10-14"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5.6-luna", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-scwrite", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5.6-luna-2026-10-14", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 457, "prompt_tokens": 8237, "total_tokens": 8694, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": 3539, "cached_tokens": 3967, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-418d0470e3bc78607940737b127fb90c"
model"gpt-5.6-luna"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-418d0470e3bc78607940737b127fb90c"

chat gpt-5.6-luna-2026-10-14 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5.6-luna-2026-10-14
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
model"gpt-5.6-luna"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/stream-content-off · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/stream-content-off
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 2311, "output_tokens": 419, "total_tokens": 2730, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-stream", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 419, "prompt_tokens": 2311, "total_tokens": 2730, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-c0aac5b10b5b29cb6b3a0c77a196eec2"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c0aac5b10b5b29cb6b3a0c77a196eec2"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/stream-content-on · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/stream-content-on
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 2311, "output_tokens": 419, "total_tokens": 2730, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-stream", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 419, "prompt_tokens": 2311, "total_tokens": 2730, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-f63739e1b651b32d2da9e00b1e28980a"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-f63739e1b651b32d2da9e00b1e28980a"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-stream
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject mlflow --scenario openai/stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (4)

Completions mlflow.tracing.provider, status ERROR

mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel40
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4ca72f00d12256ede57c3be07f022d57"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4ca72f00d12256ede57c3be07f022d57"

chat mlflow.tracing.provider, status ERROR

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/stream-early-exit · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/stream-early-exit
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-early", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": null}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-55e938d88b9b3ff3f424d11e9503bb89"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-55e938d88b9b3ff3f424d11e9503bb89"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital"}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-early
gen_ai.response.modelgpt-5-mini-2026-08-07
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/stream-early-exit-with · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/stream-early-exit-with
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-early", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": null}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-c2d8c28a39716aa4f5f32bca19b0cccd"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c2d8c28a39716aa4f5f32bca19b0cccd"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital"}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-early
gen_ai.response.modelgpt-5-mini-2026-08-07
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/stream-helper
Rule
The name of the model that generated the response.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
mlflow.llm.model"gpt-5-mini"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}, "extra_headers": {"X-Stainless-Raw-Response": "stream"}}
mlflow.spanLogLevel20
mlflow.spanOutputs"<APIResponse [200 OK] type=<class 'openai.types.chat.chat_completion.ChatCompletion'>>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-51caaa274e6f1911dece5ed773675bfb"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-51caaa274e6f1911dece5ed773675bfb"

chat gpt-5-mini mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/stream-helper · response_id #
expected chatcmpl-wt-shelper, reported nothing
Expected
chatcmpl-wt-shelper
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/stream-helper
Rule
The unique identifier of the completion.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
mlflow.llm.model"gpt-5-mini"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}, "extra_headers": {"X-Stainless-Raw-Response": "stream"}}
mlflow.spanLogLevel20
mlflow.spanOutputs"<APIResponse [200 OK] type=<class 'openai.types.chat.chat_completion.ChatCompletion'>>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-51caaa274e6f1911dece5ed773675bfb"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-51caaa274e6f1911dece5ed773675bfb"

chat gpt-5-mini mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/stream-helper · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
mlflow.llm.model"gpt-5-mini"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}, "extra_headers": {"X-Stainless-Raw-Response": "stream"}}
mlflow.spanLogLevel20
mlflow.spanOutputs"<APIResponse [200 OK] type=<class 'openai.types.chat.chat_completion.ChatCompletion'>>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-51caaa274e6f1911dece5ed773675bfb"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-51caaa274e6f1911dece5ed773675bfb"

chat gpt-5-mini mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/stream-helper · input_tokensVanishing tokens #
expected 2137, reported nothing
Expected
2137
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/stream-helper
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
mlflow.llm.model"gpt-5-mini"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}, "extra_headers": {"X-Stainless-Raw-Response": "stream"}}
mlflow.spanLogLevel20
mlflow.spanOutputs"<APIResponse [200 OK] type=<class 'openai.types.chat.chat_completion.ChatCompletion'>>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-51caaa274e6f1911dece5ed773675bfb"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-51caaa274e6f1911dece5ed773675bfb"

chat gpt-5-mini mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/stream-helper · output_tokensVanishing tokens #
expected 313, reported nothing
Expected
313
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject mlflow --scenario openai/stream-helper
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
mlflow.llm.model"gpt-5-mini"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}, "extra_headers": {"X-Stainless-Raw-Response": "stream"}}
mlflow.spanLogLevel20
mlflow.spanOutputs"<APIResponse [200 OK] type=<class 'openai.types.chat.chat_completion.ChatCompletion'>>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-51caaa274e6f1911dece5ed773675bfb"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-51caaa274e6f1911dece5ed773675bfb"

chat gpt-5-mini mlflow.tracing.provider, status OK

extra_headers{"X-Stainless-Raw-Response": "stream"}
gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/stream-no-usage · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/stream-no-usage
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-nousage", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": null}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-52f03f47f0dfa8517ceae05bd65866a0"
model"gpt-5-mini"
streamtrue

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-52f03f47f0dfa8517ceae05bd65866a0"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini-2026-08-07
model"gpt-5-mini"
streamtrue

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/stream-reasoning · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/stream-reasoning
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 2089, "output_tokens": 2459, "total_tokens": 4548, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-sreason", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 2459, "prompt_tokens": 2089, "total_tokens": 4548, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 1931, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-21c344855caa1595bb46a93b9da04056"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-21c344855caa1595bb46a93b9da04056"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

missing mlflow · openai/stream-reasoning · reasoning_tokensHidden reasoning #
expected 1931, reported nothing
Expected
1931
Reproduce
spantruth run --subject mlflow --scenario openai/stream-reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 2089, "output_tokens": 2459, "total_tokens": 4548, "cache_read_input_tokens": 0}
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-sreason", "choices": [{"finish_reason": "stop", "index": 0, "logprobs": null, "message": {"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": null}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 2459, "prompt_tokens": 2089, "total_tokens": 4548, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 1931, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-21c344855caa1595bb46a93b9da04056"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-21c344855caa1595bb46a93b9da04056"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/stream-tool-call · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/stream-tool-call
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 1553, "output_tokens": 173, "total_tokens": 1726, "cache_read_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "tools": [{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}], "stream": true, "stream_options": {"include_usage": true}}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-stools", "choices": [{"finish_reason": "tool_calls", "index": 0, "logprobs": null, "message": {"content": null, "refusal": null, "role": "assistant", "annotations": null, "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_1", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}, {"id": "call_wt_2", "function": {"arguments": "{\"zone\":\"Europe/Paris\"}", "name": "get_time"}, "type": "function"}]}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": null, "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 173, "prompt_tokens": 1553, "total_tokens": 1726, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-bfae4118c5413e69bc34a163b00b33ab"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-bfae4118c5413e69bc34a163b00b33ab"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "call_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": "tool_calls"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['tool_calls']
gen_ai.response.idchatcmpl-wt-stools
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

spantruth.scenario spantruth.driver, status UNSET

wrong mlflow · openai/tool-call · request_model #
expected gpt-5-mini, reported gpt-5-mini-2026-08-07
Expected
gpt-5-mini
Reported
gpt-5-mini-2026-08-07
Read from
gen_ai.request.model
Reproduce
spantruth run --subject mlflow --scenario openai/tool-call
Rule
The model name the request asked for.
Exported spans (4)

Completions mlflow.tracing.provider, status OK

mlflow.chat.tokenUsage{"input_tokens": 931, "output_tokens": 88, "total_tokens": 1019, "cache_read_input_tokens": 0}
mlflow.chat.tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"properties": {"city": {"type": "string"}}, "type": "object"}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"properties": {"zone": {"type": "string"}}, "type": "object"}}}]
mlflow.llm.model"gpt-5-mini-2026-08-07"
mlflow.message.format"openai"
mlflow.spanInputs{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "What is the capital of France?"}], "tools": [{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]}
mlflow.spanLogLevel20
mlflow.spanOutputs{"id": "chatcmpl-wt-tools", "choices": [{"finish_reason": "tool_calls", "index": 0, "logprobs": null, "message": {"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_1", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}, {"id": "call_wt_2", "function": {"arguments": "{\"zone\":\"Europe/Paris\"}", "name": "get_time"}, "type": "function"}]}}], "created": 1760000000, "model": "gpt-5-mini-2026-08-07", "object": "chat.completion", "metadata": null, "moderation": null, "service_tier": "default", "system_fingerprint": "fp_wt0001", "usage": {"completion_tokens": 88, "prompt_tokens": 931, "total_tokens": 1019, "completion_tokens_details": {"accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 0, "rejected_prediction_tokens": 0, "text_tokens": null}, "prompt_tokens_details": {"audio_tokens": 0, "cache_write_tokens": null, "cached_tokens": 0, "image_tokens": null, "text_tokens": null}}}
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-c01bdde0b07c379d30a7cd389d19eb2b"
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c01bdde0b07c379d30a7cd389d19eb2b"

chat gpt-5-mini-2026-08-07 mlflow.tracing.provider, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "call_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "call_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": "tool_calls"}]
gen_ai.request.modelgpt-5-mini-2026-08-07
gen_ai.response.finish_reasons['tool_calls']
gen_ai.response.idchatcmpl-wt-tools
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
model"gpt-5-mini"
tools[{"type": "function", "function": {"name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}}, {"type": "function", "function": {"name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}}]

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/async-basic · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/async-basic
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--async-basic/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion263
llm.token_count.completion_details.reasoning0
llm.token_count.prompt1187
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total1450
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/async-basic · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--async-basic/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion263
llm.token_count.completion_details.reasoning0
llm.token_count.prompt1187
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total1450
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/async-stream · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/async-stream
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--async-stream/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion419
llm.token_count.completion_details.reasoning0
llm.token_count.prompt2311
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total2730
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783712.299294, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-stream"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 2311, "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0}, "output_tokens": 419, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 2730}, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/async-stream · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--async-stream/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion419
llm.token_count.completion_details.reasoning0
llm.token_count.prompt2311
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total2730
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783712.299294, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-stream"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 2311, "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0}, "output_tokens": 419, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 2730}, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/basic · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/basic
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--basic/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion263
llm.token_count.completion_details.reasoning0
llm.token_count.prompt1187
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total1450
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/basic · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--basic/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion263
llm.token_count.completion_details.reasoning0
llm.token_count.prompt1187
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total1450
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/cache-hit · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/cache-hit
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--cache-hit/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion377
llm.token_count.completion_details.reasoning0
llm.token_count.prompt5379
llm.token_count.prompt_details.cache_read4096
llm.token_count.prompt_details.cache_write0
llm.token_count.total5756
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/cache-hit · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--cache-hit/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion377
llm.token_count.completion_details.reasoning0
llm.token_count.prompt5379
llm.token_count.prompt_details.cache_read4096
llm.token_count.prompt_details.cache_write0
llm.token_count.total5756
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/cache-write · request_model #
expected gpt-5.6-luna, reported nothing
Expected
gpt-5.6-luna
Reproduce
spantruth run --subject openai-agents --scenario openai/cache-write
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--cache-write/v1/"}
llm.model_namegpt-5.6-luna
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion401
llm.token_count.completion_details.reasoning0
llm.token_count.prompt6619
llm.token_count.prompt_details.cache_read2753
llm.token_count.prompt_details.cache_write3181
llm.token_count.total7020
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/cache-write · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/cache-write
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--cache-write/v1/"}
llm.model_namegpt-5.6-luna
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion401
llm.token_count.completion_details.reasoning0
llm.token_count.prompt6619
llm.token_count.prompt_details.cache_read2753
llm.token_count.prompt_details.cache_write3181
llm.token_count.total7020
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/reasoning · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/reasoning
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--reasoning/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion2219
llm.token_count.completion_details.reasoning1792
llm.token_count.prompt1601
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total3820
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/reasoning · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/reasoning
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--reasoning/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion2219
llm.token_count.completion_details.reasoning1792
llm.token_count.prompt1601
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total3820
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/retry-429 · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/retry-429
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--retry-429/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion367
llm.token_count.completion_details.reasoning0
llm.token_count.prompt2477
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total2844
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/retry-429 · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/retry-429
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--retry-429/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.roleassistant
llm.systemopenai
llm.token_count.completion367
llm.token_count.completion_details.reasoning0
llm.token_count.prompt2477
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total2844
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": "The capital of France is Paris.", "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/stream
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion419
llm.token_count.completion_details.reasoning0
llm.token_count.prompt2311
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total2730
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783630.7263327, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-stream"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 2311, "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0}, "output_tokens": 419, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 2730}, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion419
llm.token_count.completion_details.reasoning0
llm.token_count.prompt2311
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total2730
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783630.7263327, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-stream"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 2311, "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0}, "output_tokens": 419, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 2730}, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream-cache-hit · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/stream-cache-hit
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream-cache-hit/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion511
llm.token_count.completion_details.reasoning0
llm.token_count.prompt7213
llm.token_count.prompt_details.cache_read6144
llm.token_count.prompt_details.cache_write0
llm.token_count.total7724
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783642.5826833, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-scache"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 7213, "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 6144}, "output_tokens": 511, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 7724}, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream-cache-hit · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream-cache-hit/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion511
llm.token_count.completion_details.reasoning0
llm.token_count.prompt7213
llm.token_count.prompt_details.cache_read6144
llm.token_count.prompt_details.cache_write0
llm.token_count.total7724
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783642.5826833, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-scache"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 7213, "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 6144}, "output_tokens": 511, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 7724}, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream-cache-write · request_model #
expected gpt-5.6-luna, reported nothing
Expected
gpt-5.6-luna
Reproduce
spantruth run --subject openai-agents --scenario openai/stream-cache-write
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream-cache-write/v1/"}
llm.model_namegpt-5.6-luna
llm.systemopenai
llm.token_count.completion457
llm.token_count.completion_details.reasoning0
llm.token_count.prompt8237
llm.token_count.prompt_details.cache_read3967
llm.token_count.prompt_details.cache_write3539
llm.token_count.total8694
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783654.682252, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5.6-luna", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5.6-luna", "response_id": "chatcmpl-wt-scwrite"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 8237, "input_tokens_details": {"cache_write_tokens": 3539, "cached_tokens": 3967}, "output_tokens": 457, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 8694}, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream-cache-write · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/stream-cache-write
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream-cache-write/v1/"}
llm.model_namegpt-5.6-luna
llm.systemopenai
llm.token_count.completion457
llm.token_count.completion_details.reasoning0
llm.token_count.prompt8237
llm.token_count.prompt_details.cache_read3967
llm.token_count.prompt_details.cache_write3539
llm.token_count.total8694
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783654.682252, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5.6-luna", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5.6-luna", "response_id": "chatcmpl-wt-scwrite"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 8237, "input_tokens_details": {"cache_write_tokens": 3539, "cached_tokens": 3967}, "output_tokens": 457, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 8694}, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream-no-usage · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/stream-no-usage
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream-no-usage/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion0
llm.token_count.completion_details.reasoning0
llm.token_count.prompt0
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total0
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783660.6344357, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-nousage"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": null, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream-no-usage · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/stream-no-usage
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream-no-usage/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion0
llm.token_count.completion_details.reasoning0
llm.token_count.prompt0
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total0
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783660.6344357, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-nousage"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": null, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream-reasoning · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/stream-reasoning
Rule
The model name the request asked for.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream-reasoning/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion2459
llm.token_count.completion_details.reasoning1931
llm.token_count.prompt2089
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total4548
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783700.7105238, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-sreason"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 2089, "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0}, "output_tokens": 2459, "output_tokens_details": {"reasoning_tokens": 1931}, "total_tokens": 4548}, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream-reasoning · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject openai-agents --scenario openai/stream-reasoning
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (6)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream-reasoning/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion2459
llm.token_count.completion_details.reasoning1931
llm.token_count.prompt2089
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total4548
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783700.7105238, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"id": "__fake_id__", "content": [{"annotations": [], "text": "The capital of France is Paris.", "type": "output_text", "logprobs": []}], "role": "assistant", "status": "completed", "type": "message", "phase": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-sreason"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 2089, "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0}, "output_tokens": 2459, "output_tokens_details": {"reasoning_tokens": 1931}, "total_tokens": 4548}, "user": null}]

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream-tool-call · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/stream-tool-call
Rule
The model name the request asked for.
Exported spans (8)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream-tool-call/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion173
llm.token_count.completion_details.reasoning0
llm.token_count.prompt1553
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total1726
llm.tools.0.tool.json_schema{"type": "function", "function": {"name": "get_weather", "description": "", "parameters": {"properties": {"city": {"title": "City", "type": "string"}}, "required": ["city"], "title": "get_weather_args", "type": "object", "additionalProperties": false}, "strict": true}}
llm.tools.1.tool.json_schema{"type": "function", "function": {"name": "get_time", "description": "", "parameters": {"properties": {"zone": {"title": "Zone", "type": "string"}}, "required": ["zone"], "title": "get_time_args", "type": "object", "additionalProperties": false}, "strict": true}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783671.734286, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"arguments": "{\"city\":\"Paris\"}", "call_id": "call_wt_1", "name": "get_weather", "type": "function_call", "id": "__fake_id__", "async_": null, "caller": null, "namespace": null, "status": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-stools"}}, {"arguments": "{\"zone\":\"Europe/Paris\"}", "call_id": "call_wt_2", "name": "get_time", "type": "function_call", "id": "__fake_id__", "async_": null, "caller": null, "namespace": null, "status": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-stools"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 1553, "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0}, "output_tokens": 173, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 1726}, "user": null}]

get_weather openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value{"city":"Paris"}
openinference.span.kindTOOL
output.valueget_weather
tool.description
tool.nameget_weather
tool.parameters{"properties": {"city": {"title": "City", "type": "string"}}, "required": ["city"], "title": "get_weather_args", "type": "object", "additionalProperties": false}

get_time openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value{"zone":"Europe/Paris"}
openinference.span.kindTOOL
output.valueget_time
tool.description
tool.nameget_time
tool.parameters{"properties": {"zone": {"title": "Zone", "type": "string"}}, "required": ["zone"], "title": "get_time_args", "type": "object", "additionalProperties": false}

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/stream-tool-call · finish_reasonsSilent stop #
expected tool_calls, reported nothing
Expected
['tool_calls']
Reproduce
spantruth run --subject openai-agents --scenario openai/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (8)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--stream-tool-call/v1/"}
llm.model_namegpt-5-mini
llm.systemopenai
llm.token_count.completion173
llm.token_count.completion_details.reasoning0
llm.token_count.prompt1553
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total1726
llm.tools.0.tool.json_schema{"type": "function", "function": {"name": "get_weather", "description": "", "parameters": {"properties": {"city": {"title": "City", "type": "string"}}, "required": ["city"], "title": "get_weather_args", "type": "object", "additionalProperties": false}, "strict": true}}
llm.tools.1.tool.json_schema{"type": "function", "function": {"name": "get_time", "description": "", "parameters": {"properties": {"zone": {"title": "Zone", "type": "string"}}, "required": ["zone"], "title": "get_time_args", "type": "object", "additionalProperties": false}, "strict": true}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"id": "__fake_id__", "access_programs": null, "created_at": 1795783671.734286, "error": null, "incomplete_details": null, "instructions": null, "metadata": null, "model": "gpt-5-mini", "object": "response", "output": [{"arguments": "{\"city\":\"Paris\"}", "call_id": "call_wt_1", "name": "get_weather", "type": "function_call", "id": "__fake_id__", "async_": null, "caller": null, "namespace": null, "status": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-stools"}}, {"arguments": "{\"zone\":\"Europe/Paris\"}", "call_id": "call_wt_2", "name": "get_time", "type": "function_call", "id": "__fake_id__", "async_": null, "caller": null, "namespace": null, "status": null, "provider_data": {"model": "gpt-5-mini", "response_id": "chatcmpl-wt-stools"}}], "parallel_tool_calls": false, "temperature": null, "tool_choice": "auto", "tools": [], "top_p": null, "background": null, "completed_at": null, "conversation": null, "max_output_tokens": null, "max_tool_calls": null, "moderation": null, "previous_response_id": null, "prompt": null, "prompt_cache_diagnostics": null, "prompt_cache_key": null, "prompt_cache_options": null, "prompt_cache_retention": null, "reasoning": null, "safety_identifier": null, "service_tier": null, "status": null, "text": null, "tool_usage": null, "top_logprobs": null, "truncation": null, "usage": {"input_tokens": 1553, "input_tokens_details": {"cache_write_tokens": 0, "cached_tokens": 0}, "output_tokens": 173, "output_tokens_details": {"reasoning_tokens": 0}, "total_tokens": 1726}, "user": null}]

get_weather openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value{"city":"Paris"}
openinference.span.kindTOOL
output.valueget_weather
tool.description
tool.nameget_weather
tool.parameters{"properties": {"city": {"title": "City", "type": "string"}}, "required": ["city"], "title": "get_weather_args", "type": "object", "additionalProperties": false}

get_time openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value{"zone":"Europe/Paris"}
openinference.span.kindTOOL
output.valueget_time
tool.description
tool.nameget_time
tool.parameters{"properties": {"zone": {"title": "Zone", "type": "string"}}, "required": ["zone"], "title": "get_time_args", "type": "object", "additionalProperties": false}

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/tool-call · request_model #
expected gpt-5-mini, reported nothing
Expected
gpt-5-mini
Reproduce
spantruth run --subject openai-agents --scenario openai/tool-call
Rule
The model name the request asked for.
Exported spans (8)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--tool-call/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.roleassistant
llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments{"city":"Paris"}
llm.output_messages.0.message.tool_calls.0.tool_call.function.nameget_weather
llm.output_messages.0.message.tool_calls.0.tool_call.idcall_wt_1
llm.output_messages.0.message.tool_calls.1.tool_call.function.arguments{"zone":"Europe/Paris"}
llm.output_messages.0.message.tool_calls.1.tool_call.function.nameget_time
llm.output_messages.0.message.tool_calls.1.tool_call.idcall_wt_2
llm.systemopenai
llm.token_count.completion88
llm.token_count.completion_details.reasoning0
llm.token_count.prompt931
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total1019
llm.tools.0.tool.json_schema{"type": "function", "function": {"name": "get_weather", "description": "", "parameters": {"properties": {"city": {"title": "City", "type": "string"}}, "required": ["city"], "title": "get_weather_args", "type": "object", "additionalProperties": false}, "strict": true}}
llm.tools.1.tool.json_schema{"type": "function", "function": {"name": "get_time", "description": "", "parameters": {"properties": {"zone": {"title": "Zone", "type": "string"}}, "required": ["zone"], "title": "get_time_args", "type": "object", "additionalProperties": false}, "strict": true}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_1", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}, {"id": "call_wt_2", "function": {"arguments": "{\"zone\":\"Europe/Paris\"}", "name": "get_time"}, "type": "function"}]}]

get_weather openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value{"city":"Paris"}
openinference.span.kindTOOL
output.valueget_weather
tool.description
tool.nameget_weather
tool.parameters{"properties": {"city": {"title": "City", "type": "string"}}, "required": ["city"], "title": "get_weather_args", "type": "object", "additionalProperties": false}

get_time openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value{"zone":"Europe/Paris"}
openinference.span.kindTOOL
output.valueget_time
tool.description
tool.nameget_time
tool.parameters{"properties": {"zone": {"title": "Zone", "type": "string"}}, "required": ["zone"], "title": "get_time_args", "type": "object", "additionalProperties": false}

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openai-agents · openai/tool-call · finish_reasonsSilent stop #
expected tool_calls, reported nothing
Expected
['tool_calls']
Reproduce
spantruth run --subject openai-agents --scenario openai/tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (8)

generation openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value[{"role": "user", "content": "What is the capital of France?"}]
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"base_url": "http://127.0.0.1:37565/s/openai--tool-call/v1/"}
llm.model_namegpt-5-mini
llm.output_messages.0.message.roleassistant
llm.output_messages.0.message.tool_calls.0.tool_call.function.arguments{"city":"Paris"}
llm.output_messages.0.message.tool_calls.0.tool_call.function.nameget_weather
llm.output_messages.0.message.tool_calls.0.tool_call.idcall_wt_1
llm.output_messages.0.message.tool_calls.1.tool_call.function.arguments{"zone":"Europe/Paris"}
llm.output_messages.0.message.tool_calls.1.tool_call.function.nameget_time
llm.output_messages.0.message.tool_calls.1.tool_call.idcall_wt_2
llm.systemopenai
llm.token_count.completion88
llm.token_count.completion_details.reasoning0
llm.token_count.prompt931
llm.token_count.prompt_details.cache_read0
llm.token_count.prompt_details.cache_write0
llm.token_count.total1019
llm.tools.0.tool.json_schema{"type": "function", "function": {"name": "get_weather", "description": "", "parameters": {"properties": {"city": {"title": "City", "type": "string"}}, "required": ["city"], "title": "get_weather_args", "type": "object", "additionalProperties": false}, "strict": true}}
llm.tools.1.tool.json_schema{"type": "function", "function": {"name": "get_time", "description": "", "parameters": {"properties": {"zone": {"title": "Zone", "type": "string"}}, "required": ["zone"], "title": "get_time_args", "type": "object", "additionalProperties": false}, "strict": true}}
openinference.span.kindLLM
output.mime_typeapplication/json
output.value[{"content": null, "refusal": null, "role": "assistant", "annotations": [], "audio": null, "function_call": null, "tool_calls": [{"id": "call_wt_1", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}, {"id": "call_wt_2", "function": {"arguments": "{\"zone\":\"Europe/Paris\"}", "name": "get_time"}, "type": "function"}]}]

get_weather openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value{"city":"Paris"}
openinference.span.kindTOOL
output.valueget_weather
tool.description
tool.nameget_weather
tool.parameters{"properties": {"city": {"title": "City", "type": "string"}}, "required": ["city"], "title": "get_weather_args", "type": "object", "additionalProperties": false}

get_time openinference.instrumentation.openai_agents, status OK

input.mime_typeapplication/json
input.value{"zone":"Europe/Paris"}
openinference.span.kindTOOL
output.valueget_time
tool.description
tool.nameget_time
tool.parameters{"properties": {"zone": {"title": "Zone", "type": "string"}}, "required": ["zone"], "title": "get_time_args", "type": "object", "additionalProperties": false}

turn openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

spantruth openinference.instrumentation.openai_agents, status OK

agent.namespantruth
graph.node.idspantruth
openinference.span.kindAGENT

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindCHAIN

Agent workflow openinference.instrumentation.openai_agents, status OK

openinference.span.kindAGENT

spantruth.scenario spantruth.driver, status UNSET

missing openinference · gemini/async-basic · request_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject openinference --scenario gemini/async-basic
Rule
The model name the request asked for.
Exported spans (2)

AsyncGenerateContent openinference.instrumentation.google_genai, status OK

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.finish_reasonSTOP
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion271
llm.token_count.prompt1193
llm.token_count.total1464
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"sdk_http_response":{"headers":{"server":"BaseHTTP/0.6 Python/3.12.16","date":"Fri, 27 Nov 2026 12:55:47 GMT","content-type":"application/json","content-length":"407","x-request-id":"req_spantruth"}},"candidates":[{"content":{"parts":[{"text":"The capital of France is Paris."}],"role":"model"},"finish_reason":"STOP","index":0}],"model_version":"gemini-3.5-flash-lite","response_id":"wt-gemini-basic","usage_metadata":{"candidates_token_count":271,"prompt_token_count":1193,"prompt_tokens_details":[{"modality":"TEXT","token_count":1193}],"total_token_count":1464},"automatic_function_calling_history":[]}

spantruth.scenario spantruth.driver, status UNSET

missing openinference · gemini/async-stream · request_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject openinference --scenario gemini/async-stream
Rule
The model name the request asked for.
Exported spans (2)

AsyncGenerateContentStream openinference.instrumentation.google_genai, status OK

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.finish_reasonSTOP
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion431
llm.token_count.prompt2333
llm.token_count.total2764
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"candidates": [{"content": {"parts": [{"text": "The capital of France is Paris."}], "role": "model"}, "finish_reason": "STOP", "index": 0}], "usage_metadata": {"candidates_token_count": 431, "prompt_token_count": 2333, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 2333}], "total_token_count": 2764}, "model_version": "gemini-3.5-flash-lite", "sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:55:54 GMT", "content-type": "text/event-stream", "transfer-encoding": "chunked", "x-request-id": "req_spantruth"}}, "response_id": "wt-gemini-stream"}

spantruth.scenario spantruth.driver, status UNSET

wrong openinference · gemini/async-stream-early-exit · status.unsetFalse alarm #
expected UNSET, reported ERROR: 1 span(s) set status to Error on a successful operation
Expected
UNSET
Reported
ERROR
Note
1 span(s) set status to Error on a successful operation
Reproduce
spantruth run --subject openinference --scenario gemini/async-stream-early-exit
Rule
Span Status Code MUST be left unset if the instrumented operation has ended without any errors.
Exported spans (2)

AsyncGenerateContentStream openinference.instrumentation.google_genai, status ERROR

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion239
llm.token_count.prompt1949
llm.token_count.total2188
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"candidates": [{"content": {"parts": [{"text": "The capital of France"}], "role": "model"}, "index": 0}], "usage_metadata": {"candidates_token_count": 239, "prompt_token_count": 1949, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1949}], "total_token_count": 2188}, "model_version": "gemini-3.5-flash-lite", "sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:56:01 GMT", "content-type": "text/event-stream", "transfer-encoding": "chunked", "x-request-id": "req_spantruth"}}, "response_id": "wt-gemini-early"}

spantruth.scenario spantruth.driver, status UNSET

missing openinference · gemini/async-stream-early-exit · request_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject openinference --scenario gemini/async-stream-early-exit
Rule
The model name the request asked for.
Exported spans (2)

AsyncGenerateContentStream openinference.instrumentation.google_genai, status ERROR

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion239
llm.token_count.prompt1949
llm.token_count.total2188
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"candidates": [{"content": {"parts": [{"text": "The capital of France"}], "role": "model"}, "index": 0}], "usage_metadata": {"candidates_token_count": 239, "prompt_token_count": 1949, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1949}], "total_token_count": 2188}, "model_version": "gemini-3.5-flash-lite", "sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:56:01 GMT", "content-type": "text/event-stream", "transfer-encoding": "chunked", "x-request-id": "req_spantruth"}}, "response_id": "wt-gemini-early"}

spantruth.scenario spantruth.driver, status UNSET

missing openinference · gemini/basic · request_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject openinference --scenario gemini/basic
Rule
The model name the request asked for.
Exported spans (2)

GenerateContent openinference.instrumentation.google_genai, status OK

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.finish_reasonSTOP
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion271
llm.token_count.prompt1193
llm.token_count.total1464
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"sdk_http_response":{"headers":{"server":"BaseHTTP/0.6 Python/3.12.16","date":"Fri, 27 Nov 2026 12:54:33 GMT","content-type":"application/json","content-length":"407","x-request-id":"req_spantruth"}},"candidates":[{"content":{"parts":[{"text":"The capital of France is Paris."}],"role":"model"},"finish_reason":"STOP","index":0}],"model_version":"gemini-3.5-flash-lite","response_id":"wt-gemini-basic","usage_metadata":{"candidates_token_count":271,"prompt_token_count":1193,"prompt_tokens_details":[{"modality":"TEXT","token_count":1193}],"total_token_count":1464},"automatic_function_calling_history":[]}

spantruth.scenario spantruth.driver, status UNSET

missing openinference · gemini/cache-hit · request_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject openinference --scenario gemini/cache-hit
Rule
The model name the request asked for.
Exported spans (2)

GenerateContent openinference.instrumentation.google_genai, status OK

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.finish_reasonSTOP
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion383
llm.token_count.prompt5417
llm.token_count.prompt_details.cache_read4099
llm.token_count.total5800
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"sdk_http_response":{"headers":{"server":"BaseHTTP/0.6 Python/3.12.16","date":"Fri, 27 Nov 2026 12:55:06 GMT","content-type":"application/json","content-length":"506","x-request-id":"req_spantruth"}},"candidates":[{"content":{"parts":[{"text":"The capital of France is Paris."}],"role":"model"},"finish_reason":"STOP","index":0}],"model_version":"gemini-3.5-flash-lite","response_id":"wt-gemini-cache","usage_metadata":{"cache_tokens_details":[{"modality":"TEXT","token_count":4099}],"cached_content_token_count":4099,"candidates_token_count":383,"prompt_token_count":5417,"prompt_tokens_details":[{"modality":"TEXT","token_count":5417}],"total_token_count":5800},"automatic_function_calling_history":[]}

spantruth.scenario spantruth.driver, status UNSET

missing openinference · gemini/stream · request_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject openinference --scenario gemini/stream
Rule
The model name the request asked for.
Exported spans (2)

GenerateContentStream openinference.instrumentation.google_genai, status OK

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.finish_reasonSTOP
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion431
llm.token_count.prompt2333
llm.token_count.total2764
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"candidates": [{"content": {"parts": [{"text": "The capital of France is Paris."}], "role": "model"}, "finish_reason": "STOP", "index": 0}], "usage_metadata": {"candidates_token_count": 431, "prompt_token_count": 2333, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 2333}], "total_token_count": 2764}, "model_version": "gemini-3.5-flash-lite", "sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:54:39 GMT", "content-type": "text/event-stream", "transfer-encoding": "chunked", "x-request-id": "req_spantruth"}}, "response_id": "wt-gemini-stream"}

spantruth.scenario spantruth.driver, status UNSET

missing openinference · gemini/stream-cache-hit · request_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject openinference --scenario gemini/stream-cache-hit
Rule
The model name the request asked for.
Exported spans (2)

GenerateContentStream openinference.instrumentation.google_genai, status OK

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.finish_reasonSTOP
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion523
llm.token_count.prompt7229
llm.token_count.prompt_details.cache_read6151
llm.token_count.total7752
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"candidates": [{"content": {"parts": [{"text": "The capital of France is Paris."}], "role": "model"}, "finish_reason": "STOP", "index": 0}], "usage_metadata": {"cache_tokens_details": [{"modality": "TEXT", "token_count": 6151}], "cached_content_token_count": 6151, "candidates_token_count": 523, "prompt_token_count": 7229, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 7229}], "total_token_count": 7752}, "model_version": "gemini-3.5-flash-lite", "sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:55:13 GMT", "content-type": "text/event-stream", "transfer-encoding": "chunked", "x-request-id": "req_spantruth"}}, "response_id": "wt-gemini-scache"}

spantruth.scenario spantruth.driver, status UNSET

missing openinference · gemini/stream-early-exit · request_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject openinference --scenario gemini/stream-early-exit
Rule
The model name the request asked for.
Exported spans (2)

GenerateContentStream openinference.instrumentation.google_genai, status UNSET

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion239
llm.token_count.prompt1949
llm.token_count.total2188
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"candidates": [{"content": {"parts": [{"text": "The capital of France"}], "role": "model"}, "index": 0}], "usage_metadata": {"candidates_token_count": 239, "prompt_token_count": 1949, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 1949}], "total_token_count": 2188}, "model_version": "gemini-3.5-flash-lite", "sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:54:46 GMT", "content-type": "text/event-stream", "transfer-encoding": "chunked", "x-request-id": "req_spantruth"}}, "response_id": "wt-gemini-early"}

spantruth.scenario spantruth.driver, status UNSET

missing openinference · gemini/stream-thinking · request_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject openinference --scenario gemini/stream-thinking
Rule
The model name the request asked for.
Exported spans (2)

GenerateContentStream openinference.instrumentation.google_genai, status OK

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.finish_reasonSTOP
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion2316
llm.token_count.completion_details.reasoning1999
llm.token_count.prompt2083
llm.token_count.total4399
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"candidates": [{"content": {"parts": [{"text": "The capital of France is Paris."}], "role": "model"}, "finish_reason": "STOP", "index": 0}], "usage_metadata": {"candidates_token_count": 317, "prompt_token_count": 2083, "prompt_tokens_details": [{"modality": "TEXT", "token_count": 2083}], "thoughts_token_count": 1999, "total_token_count": 4399}, "model_version": "gemini-3.5-flash-lite", "sdk_http_response": {"headers": {"server": "BaseHTTP/0.6 Python/3.12.16", "date": "Fri, 27 Nov 2026 12:55:00 GMT", "content-type": "text/event-stream", "transfer-encoding": "chunked", "x-request-id": "req_spantruth"}}, "response_id": "wt-gemini-sthink"}

spantruth.scenario spantruth.driver, status UNSET

missing openinference · gemini/thinking · request_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject openinference --scenario gemini/thinking
Rule
The model name the request asked for.
Exported spans (2)

GenerateContent openinference.instrumentation.google_genai, status OK

input.mime_typeapplication/json
input.value{"contents": [{"parts": [{"text": "What is the capital of France?"}], "role": "user"}]}
llm.finish_reasonSTOP
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.model_namegemini-3.5-flash-lite
llm.output_messages.0.message.contentThe capital of France is Paris.
llm.output_messages.0.message.rolemodel
llm.providergoogle
llm.token_count.completion2118
llm.token_count.completion_details.reasoning1877
llm.token_count.prompt1609
llm.token_count.total3727
openinference.span.kindLLM
output.mime_typeapplication/json
output.value{"sdk_http_response":{"headers":{"server":"BaseHTTP/0.6 Python/3.12.16","date":"Fri, 27 Nov 2026 12:54:53 GMT","content-type":"application/json","content-length":"435","x-request-id":"req_spantruth"}},"candidates":[{"content":{"parts":[{"text":"The capital of France is Paris."}],"role":"model"},"finish_reason":"STOP","index":0}],"model_version":"gemini-3.5-flash-lite","response_id":"wt-gemini-think","usage_metadata":{"candidates_token_count":241,"prompt_token_count":1609,"prompt_tokens_details":[{"modality":"TEXT","token_count":1609}],"thoughts_token_count":1877,"total_token_count":3727},"automatic_function_calling_history":[]}

spantruth.scenario spantruth.driver, status UNSET

missing openinference · openai/async-stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Upstream
reported The span of an async with_streaming_response stream gets no model, finish reason or token counts. The issue reports the likely cause: on the async path the wrapper calls AsyncAPIResponse.parse() without awaiting it.
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openinference --scenario openai/async-stream-helper
Rule
The name of the model that generated the response.
Exported spans (2)

ChatCompletion openinference.instrumentation.openai, status OK

input.mime_typeapplication/json
input.value{"model": "gpt-5-mini", "stream": true, "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream_options": {"include_usage": true}}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "gpt-5-mini", "stream": true, "stream_options": {"include_usage": true}}
llm.systemopenai
openinference.span.kindLLM
output.value<coroutine object AsyncAPIResponse.parse at 0x7afdb77be2f0>

spantruth.scenario spantruth.driver, status UNSET

missing openinference · openai/async-stream-helper · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Upstream
reported The span of an async with_streaming_response stream gets no model, finish reason or token counts. The issue reports the likely cause: on the async path the wrapper calls AsyncAPIResponse.parse() without awaiting it.
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openinference --scenario openai/async-stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

ChatCompletion openinference.instrumentation.openai, status OK

input.mime_typeapplication/json
input.value{"model": "gpt-5-mini", "stream": true, "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream_options": {"include_usage": true}}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "gpt-5-mini", "stream": true, "stream_options": {"include_usage": true}}
llm.systemopenai
openinference.span.kindLLM
output.value<coroutine object AsyncAPIResponse.parse at 0x7afdb77be2f0>

spantruth.scenario spantruth.driver, status UNSET

missing openinference · openai/async-stream-helper · input_tokensVanishing tokens #
expected 2137, reported nothing
Expected
2137
Upstream
reported The span of an async with_streaming_response stream gets no model, finish reason or token counts. The issue reports the likely cause: on the async path the wrapper calls AsyncAPIResponse.parse() without awaiting it.
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openinference --scenario openai/async-stream-helper
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

ChatCompletion openinference.instrumentation.openai, status OK

input.mime_typeapplication/json
input.value{"model": "gpt-5-mini", "stream": true, "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream_options": {"include_usage": true}}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "gpt-5-mini", "stream": true, "stream_options": {"include_usage": true}}
llm.systemopenai
openinference.span.kindLLM
output.value<coroutine object AsyncAPIResponse.parse at 0x7afdb77be2f0>

spantruth.scenario spantruth.driver, status UNSET

missing openinference · openai/async-stream-helper · output_tokensVanishing tokens #
expected 313, reported nothing
Expected
313
Upstream
reported The span of an async with_streaming_response stream gets no model, finish reason or token counts. The issue reports the likely cause: on the async path the wrapper calls AsyncAPIResponse.parse() without awaiting it.
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openinference --scenario openai/async-stream-helper
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

ChatCompletion openinference.instrumentation.openai, status OK

input.mime_typeapplication/json
input.value{"model": "gpt-5-mini", "stream": true, "messages": [{"role": "user", "content": "What is the capital of France?"}], "stream_options": {"include_usage": true}}
llm.input_messages.0.message.contentWhat is the capital of France?
llm.input_messages.0.message.roleuser
llm.invocation_parameters{"model": "gpt-5-mini", "stream": true, "stream_options": {"include_usage": true}}
llm.systemopenai
openinference.span.kindLLM
output.value<coroutine object AsyncAPIResponse.parse at 0x7afdb77be2f0>

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/agent-loop · input_tokensCache-blind tokens #
expected 1307, reported 214: call 2 of 3: cache reads left out; failed on calls 2, 3
Expected
1307
Reported
214
Read from
gen_ai.usage.input_tokens
Note
call 2 of 3: cache reads left out; failed on calls 2, 3
Reproduce
spantruth run --subject openlit --scenario anthropic/agent-loop
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (7)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--agent-loop/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1268
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}], "finish_reason": "tool_call"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamFalse
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['tool_use']
gen_ai.response.idmsg_wt_loop1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.03196096420288086
gen_ai.tool.args{"city": "Paris"}
gen_ai.tool.call.arguments{"city": "Paris"}
gen_ai.tool.call.idtoolu_wt_w
gen_ai.tool.nameget_weather
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
openlit.agent.version_hashc449fd493e90d352
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--agent-loop/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage303
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}, {"role": "user", "parts": [{"type": "tool_call_response", "id": "toolu_wt_w", "response": "18 C and sunny"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_t", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": "tool_call"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamFalse
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['tool_use']
gen_ai.response.idmsg_wt_loop2
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.047994136810302734
gen_ai.tool.args{"zone": "Europe/Paris"}
gen_ai.tool.call.arguments{"zone": "Europe/Paris"}
gen_ai.tool.call.idtoolu_wt_t
gen_ai.tool.nameget_time
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens1093
gen_ai.usage.cost0
gen_ai.usage.input_tokens214
gen_ai.usage.output_tokens89
openlit.agent.version_hashc449fd493e90d352
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--agent-loop/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage391
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_w", "name": "get_weather", "arguments": {"city": "Paris"}}]}, {"role": "user", "parts": [{"type": "tool_call_response", "id": "toolu_wt_w", "response": "18 C and sunny"}]}, {"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_t", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}]}, {"role": "user", "parts": [{"type": "tool_call_response", "id": "toolu_wt_t", "response": "14:05"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "It is 18 C and sunny in Paris, and the time is 14:05."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamFalse
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_loop3
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.04624009132385254
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens1279
gen_ai.usage.cost0
gen_ai.usage.input_tokens180
gen_ai.usage.output_tokens211
openlit.agent.version_hashc449fd493e90d352
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/async-concurrent-streams · input_tokensCache-blind tokens #
expected 1033, reported 264: call 1 of 2: cache reads left out
Expected
1033
Reported
264
Read from
gen_ai.usage.input_tokens
Note
call 1 of 2: cache reads left out
Reproduce
spantruth run --subject openlit --scenario anthropic/async-concurrent-streams
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (5)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--async-concurrent-streams/v1/messages

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--async-concurrent-streams/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage413
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_par1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0027335711887904574
gen_ai.server.time_to_first_token0.011218786239624023
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens264
gen_ai.usage.output_tokens149
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

chat claude-haiku-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1928
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-haiku-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_par2
gen_ai.response.modelclaude-haiku-5-5-20261001
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0008179800851004464
gen_ai.server.time_to_first_token0.00016736984252929688
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
openlit.agent.version_hash6706f41dcb642201
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/async-concurrent-streams · cache_read_tokensCache-blind tokens #
expected 769, reported 0: call 1 of 2
Expected
769
Reported
0
Read from
gen_ai.usage.cache_read.input_tokens
Note
call 1 of 2
Reproduce
spantruth run --subject openlit --scenario anthropic/async-concurrent-streams
Rule
Input tokens read from the provider cache.
Exported spans (5)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--async-concurrent-streams/v1/messages

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--async-concurrent-streams/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage413
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_par1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0027335711887904574
gen_ai.server.time_to_first_token0.011218786239624023
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens264
gen_ai.usage.output_tokens149
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

chat claude-haiku-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1928
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-haiku-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_par2
gen_ai.response.modelclaude-haiku-5-5-20261001
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0008179800851004464
gen_ai.server.time_to_first_token0.00016736984252929688
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
openlit.agent.version_hash6706f41dcb642201
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

lost openlit · anthropic/async-stream-dropped · span.endedGhost span #
never ended: chat claude-sonnet-5-5
Note
never ended: chat claude-sonnet-5-5
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/async-stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--async-stream-dropped/v1/messages

spantruth.scenario spantruth.driver, status UNSET

lost openlit · anthropic/async-stream-early-exit · span.endedGhost span #
never ended: chat claude-sonnet-5-5
Note
never ended: chat claude-sonnet-5-5
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/async-stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--async-stream-early-exit/v1/messages

spantruth.scenario spantruth.driver, status UNSET

lost openlit · anthropic/async-stream-error-event · span.endedGhost span #
never ended: chat claude-sonnet-5-5
Note
never ended: chat claude-sonnet-5-5
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/async-stream-error-event
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--async-stream-error-event/v1/messages

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/cache-1h · input_tokensCache-blind tokens #
expected 6288, reported 1307: cache reads and writes left out
Expected
6288
Reported
1307
Read from
gen_ai.usage.input_tokens
Note
cache reads and writes left out
Cost
$0.0146 on the wire, $0.012 from the spans (-17.9%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/cache-1h
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--cache-1h/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1696
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamFalse
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.025951623916625977
gen_ai.usage.cache_creation.input_tokens2120
gen_ai.usage.cache_read.input_tokens2861
gen_ai.usage.cost0
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens389
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/cache-1h · metric.input_tokens #
expected 6288, reported 1307: cache reads and writes left out
Expected
6288
Reported
1307
Read from
gen_ai.client.token.usage
Note
cache reads and writes left out
Cost
$0.0146 on the wire, $0.012 from the spans (-17.9%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/cache-1h
Rule
The input token metric is Recommended: it SHOULD be reported when an operation involves the usage of tokens and the count is readily available, and the recorded value SHOULD match the token count returned by the provider, cached tokens included. Read from `gen_ai.client.inference.operation.input_tokens`, `gen_ai.client.inference.usage.input_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `input`. The histograms count tokens per inference operation, so one call is one recording. Graded only for a library that documents token metrics (`[metrics]` in subject.toml); a documented library that emits none is missing.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--cache-1h/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1696
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamFalse
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.025951623916625977
gen_ai.usage.cache_creation.input_tokens2120
gen_ai.usage.cache_read.input_tokens2861
gen_ai.usage.cost0
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens389
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/cache-hit · input_tokensCache-blind tokens #
expected 5802, reported 1187: cache reads and writes left out
Expected
5802
Reported
1187
Read from
gen_ai.usage.input_tokens
Note
cache reads and writes left out
Cost
$0.00785 on the wire, $0.00548 from the spans (-30.2%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/cache-hit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--cache-hit/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1564
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamFalse
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_cache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.025703907012939453
gen_ai.usage.cache_creation.input_tokens519
gen_ai.usage.cache_read.input_tokens4096
gen_ai.usage.cost0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens377
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/cache-hit · metric.input_tokens #
expected 5802, reported 1187: cache reads and writes left out
Expected
5802
Reported
1187
Read from
gen_ai.client.token.usage
Note
cache reads and writes left out
Cost
$0.00785 on the wire, $0.00548 from the spans (-30.2%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/cache-hit
Rule
The input token metric is Recommended: it SHOULD be reported when an operation involves the usage of tokens and the count is readily available, and the recorded value SHOULD match the token count returned by the provider, cached tokens included. Read from `gen_ai.client.inference.operation.input_tokens`, `gen_ai.client.inference.usage.input_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `input`. The histograms count tokens per inference operation, so one call is one recording. Graded only for a library that documents token metrics (`[metrics]` in subject.toml); a documented library that emits none is missing.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--cache-hit/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1564
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamFalse
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_cache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.025703907012939453
gen_ai.usage.cache_creation.input_tokens519
gen_ai.usage.cache_read.input_tokens4096
gen_ai.usage.cost0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens377
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

missing openlit · anthropic/rate-limited · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Reproduce
spantruth run --subject openlit --scenario anthropic/rate-limited
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status ERROR

http.methodPOST
http.status_code429
http.urlhttp://127.0.0.1:37565/s/anthropic--rate-limited/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status ERROR

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/stream-cache-1h · input_tokensCache-blind tokens #
expected 7160, reported 1451: cache reads and writes left out
Expected
7160
Reported
1451
Read from
gen_ai.usage.input_tokens
Note
cache reads and writes left out
Cost
$0.0175 on the wire, $0.00813 from the spans (-53.5%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-cache-1h
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1974
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0026827880314418246
gen_ai.server.time_to_first_token0.01197361946105957
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1451
gen_ai.usage.output_tokens523
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/stream-cache-1h · cache_read_tokensCache-blind tokens #
expected 3217, reported 0
Expected
3217
Reported
0
Read from
gen_ai.usage.cache_read.input_tokens
Cost
$0.0175 on the wire, $0.00813 from the spans (-53.5%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-cache-1h
Rule
Input tokens read from the provider cache.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1974
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0026827880314418246
gen_ai.server.time_to_first_token0.01197361946105957
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1451
gen_ai.usage.output_tokens523
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/stream-cache-1h · cache_write_tokensCache-blind tokens #
expected 2492, reported 0
Expected
2492
Reported
0
Read from
gen_ai.usage.cache_creation.input_tokens
Cost
$0.0175 on the wire, $0.00813 from the spans (-53.5%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-cache-1h
Rule
Input tokens written to the provider cache.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1974
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0026827880314418246
gen_ai.server.time_to_first_token0.01197361946105957
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1451
gen_ai.usage.output_tokens523
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/stream-cache-1h · metric.input_tokens #
expected 7160, reported 1451: cache reads and writes left out
Expected
7160
Reported
1451
Read from
gen_ai.client.token.usage
Note
cache reads and writes left out
Cost
$0.0175 on the wire, $0.00813 from the spans (-53.5%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-cache-1h
Rule
The input token metric is Recommended: it SHOULD be reported when an operation involves the usage of tokens and the count is readily available, and the recorded value SHOULD match the token count returned by the provider, cached tokens included. Read from `gen_ai.client.inference.operation.input_tokens`, `gen_ai.client.inference.usage.input_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `input`. The histograms count tokens per inference operation, so one call is one recording. Graded only for a library that documents token metrics (`[metrics]` in subject.toml); a documented library that emits none is missing.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1974
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0026827880314418246
gen_ai.server.time_to_first_token0.01197361946105957
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1451
gen_ai.usage.output_tokens523
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/stream-cache-cumulative · input_tokensCache-blind tokens #
expected 5673, reported 1279: cache reads and writes left out
Expected
5673
Reported
1279
Read from
gen_ai.usage.input_tokens
Note
cache reads and writes left out
Cost
$0.00961 on the wire, $0.00706 from the spans (-26.6%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-cache-cumulative
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-cache-cumulative/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1746
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_cumul
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0025471619197300504
gen_ai.server.time_to_first_token0.011180639266967773
gen_ai.usage.cache_creation.input_tokens811
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.cost0
gen_ai.usage.input_tokens1279
gen_ai.usage.output_tokens467
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/stream-cache-cumulative · metric.input_tokens #
expected 5673, reported 1279: cache reads and writes left out
Expected
5673
Reported
1279
Read from
gen_ai.client.token.usage
Note
cache reads and writes left out
Cost
$0.00961 on the wire, $0.00706 from the spans (-26.6%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-cache-cumulative
Rule
The input token metric is Recommended: it SHOULD be reported when an operation involves the usage of tokens and the count is readily available, and the recorded value SHOULD match the token count returned by the provider, cached tokens included. Read from `gen_ai.client.inference.operation.input_tokens`, `gen_ai.client.inference.usage.input_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `input`. The histograms count tokens per inference operation, so one call is one recording. Graded only for a library that documents token metrics (`[metrics]` in subject.toml); a documented library that emits none is missing.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-cache-cumulative/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage1746
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_cumul
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0025471619197300504
gen_ai.server.time_to_first_token0.011180639266967773
gen_ai.usage.cache_creation.input_tokens811
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.cost0
gen_ai.usage.input_tokens1279
gen_ai.usage.output_tokens467
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/stream-cache-hit · input_tokensCache-blind tokens #
expected 8424, reported 1543: cache reads and writes left out
Expected
8424
Reported
1543
Read from
gen_ai.usage.input_tokens
Note
cache reads and writes left out
Cost
$0.0107 on the wire, $0.0082 from the spans (-23.1%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-cache-hit
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage2054
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.002461944307599749
gen_ai.server.time_to_first_token0.011376142501831055
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1543
gen_ai.usage.output_tokens511
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/stream-cache-hit · cache_read_tokensCache-blind tokens #
expected 6144, reported 0
Expected
6144
Reported
0
Read from
gen_ai.usage.cache_read.input_tokens
Cost
$0.0107 on the wire, $0.0082 from the spans (-23.1%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-cache-hit
Rule
Input tokens read from the provider cache.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage2054
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.002461944307599749
gen_ai.server.time_to_first_token0.011376142501831055
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1543
gen_ai.usage.output_tokens511
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/stream-cache-hit · cache_write_tokensCache-blind tokens #
expected 737, reported 0
Expected
737
Reported
0
Read from
gen_ai.usage.cache_creation.input_tokens
Cost
$0.0107 on the wire, $0.0082 from the spans (-23.1%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-cache-hit
Rule
Input tokens written to the provider cache.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage2054
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.002461944307599749
gen_ai.server.time_to_first_token0.011376142501831055
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1543
gen_ai.usage.output_tokens511
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · anthropic/stream-cache-hit · metric.input_tokens #
expected 8424, reported 1543: cache reads and writes left out
Expected
8424
Reported
1543
Read from
gen_ai.client.token.usage
Note
cache reads and writes left out
Cost
$0.0107 on the wire, $0.0082 from the spans (-23.1%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-cache-hit
Rule
The input token metric is Recommended: it SHOULD be reported when an operation involves the usage of tokens and the count is readily available, and the recorded value SHOULD match the token count returned by the provider, cached tokens included. Read from `gen_ai.client.inference.operation.input_tokens`, `gen_ai.client.inference.usage.input_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `input`. The histograms count tokens per inference operation, so one call is one recording. Graded only for a library that documents token metrics (`[metrics]` in subject.toml); a documented library that emits none is missing.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage2054
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.002461944307599749
gen_ai.server.time_to_first_token0.011376142501831055
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1543
gen_ai.usage.output_tokens511
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

lost openlit · anthropic/stream-dropped · span.endedGhost span #
never ended: chat claude-sonnet-5-5
Note
never ended: chat claude-sonnet-5-5
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-dropped/v1/messages

spantruth.scenario spantruth.driver, status UNSET

lost openlit · anthropic/stream-early-exit · span.endedGhost span #
never ended: chat claude-sonnet-5-5
Note
never ended: chat claude-sonnet-5-5
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-early-exit/v1/messages

spantruth.scenario spantruth.driver, status UNSET

lost openlit · anthropic/stream-early-exit-with · span.endedGhost span #
never ended: chat claude-sonnet-5-5
Note
never ended: chat claude-sonnet-5-5
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-early-exit-with
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-early-exit-with/v1/messages

spantruth.scenario spantruth.driver, status UNSET

lost openlit · anthropic/stream-error-event · span.endedGhost span #
never ended: chat claude-sonnet-5-5
Note
never ended: chat claude-sonnet-5-5
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-error-event
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-error-event/v1/messages

spantruth.scenario spantruth.driver, status UNSET

missing openlit · anthropic/stream-thinking · reasoning_tokensHidden reasoning #
expected 1103, reported nothing
Expected
1103
Reproduce
spantruth run --subject openlit --scenario anthropic/stream-thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--stream-thinking/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage3270
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0.0014238907740666317
gen_ai.server.time_to_first_token0.011274337768554688
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

missing openlit · anthropic/thinking · reasoning_tokensHidden reasoning #
expected 947, reported nothing
Expected
947
Reproduce
spantruth run --subject openlit --scenario anthropic/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/anthropic--thinking/v1/messages

chat claude-sonnet-5-5 openlit.instrumentation.anthropic, status OK

deployment.environmentdefault
gen_ai.client.token.usage2900
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.stop_sequences[]
gen_ai.request.streamFalse
gen_ai.request.temperature1.0
gen_ai.request.top_k1.0
gen_ai.request.top_p1.0
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.sdk.version0.125.0
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.025917768478393555
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
openlit.agent.version_hash126a1732f5faa9e0
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/async-basic · finish_reasonsSilent stop #
expected STOP, reported FinishReason.STOP
Expected
['STOP']
Reported
['FinishReason.STOP']
Read from
gen_ai.response.finish_reasons
Reproduce
spantruth run --subject openlit --scenario gemini/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage1464
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamFalse
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-basic
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.10697650909423828
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

lost openlit · gemini/async-stream · span.endedGhost span #
never ended: chat gemini-3.5-flash-lite
Note
never ended: chat gemini-3.5-flash-lite
Cost
$0.00178 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/async-stream
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage2764
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-stream
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0.0005339384078979492
gen_ai.server.time_to_first_token0.09701204299926758
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/async-stream · finish_reasonsSilent stop #
expected STOP, reported FinishReason.STOP
Expected
['STOP']
Reported
['FinishReason.STOP']
Read from
gen_ai.response.finish_reasons
Cost
$0.00178 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage2764
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-stream
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0.0005339384078979492
gen_ai.server.time_to_first_token0.09701204299926758
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

lost openlit · gemini/async-stream-dropped · span.endedGhost span #
never ended: chat gemini-3.5-flash-lite
Note
never ended: chat gemini-3.5-flash-lite
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/async-stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost openlit · gemini/async-stream-early-exit · span.endedGhost span #
never ended: chat gemini-3.5-flash-lite
Note
never ended: chat gemini-3.5-flash-lite
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/async-stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/basic · finish_reasonsSilent stop #
expected STOP, reported FinishReason.STOP
Expected
['STOP']
Reported
['FinishReason.STOP']
Read from
gen_ai.response.finish_reasons
Reproduce
spantruth run --subject openlit --scenario gemini/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage1464
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamFalse
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-basic
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.057231903076171875
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1193
gen_ai.usage.output_tokens271
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/cache-hit · finish_reasonsSilent stop #
expected STOP, reported FinishReason.STOP
Expected
['STOP']
Reported
['FinishReason.STOP']
Read from
gen_ai.response.finish_reasons
Reproduce
spantruth run --subject openlit --scenario gemini/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage5800
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamFalse
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-cache
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.059851646423339844
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens4099
gen_ai.usage.cost0
gen_ai.usage.input_tokens5417
gen_ai.usage.output_tokens383
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

missing openlit · gemini/rate-limited · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Reproduce
spantruth run --subject openlit --scenario gemini/rate-limited
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status ERROR

spantruth.scenario spantruth.driver, status UNSET

lost openlit · gemini/stream · span.endedGhost span #
never ended: chat gemini-3.5-flash-lite
Note
never ended: chat gemini-3.5-flash-lite
Cost
$0.00178 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/stream
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage2764
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-stream
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0.0005432367324829102
gen_ai.server.time_to_first_token0.04907059669494629
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/stream · finish_reasonsSilent stop #
expected STOP, reported FinishReason.STOP
Expected
['STOP']
Reported
['FinishReason.STOP']
Read from
gen_ai.response.finish_reasons
Cost
$0.00178 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage2764
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-stream
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0.0005432367324829102
gen_ai.server.time_to_first_token0.04907059669494629
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

lost openlit · gemini/stream-cache-hit · span.endedGhost span #
never ended: chat gemini-3.5-flash-lite
Note
never ended: chat gemini-3.5-flash-lite
Cost
$0.00182 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/stream-cache-hit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage7752
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-scache
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0.0006256103515625
gen_ai.server.time_to_first_token0.05574536323547363
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens6151
gen_ai.usage.cost0
gen_ai.usage.input_tokens7229
gen_ai.usage.output_tokens523
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/stream-cache-hit · finish_reasonsSilent stop #
expected STOP, reported FinishReason.STOP
Expected
['STOP']
Reported
['FinishReason.STOP']
Read from
gen_ai.response.finish_reasons
Cost
$0.00182 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage7752
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-scache
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0.0006256103515625
gen_ai.server.time_to_first_token0.05574536323547363
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens6151
gen_ai.usage.cost0
gen_ai.usage.input_tokens7229
gen_ai.usage.output_tokens523
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

lost openlit · gemini/stream-dropped · span.endedGhost span #
never ended: chat gemini-3.5-flash-lite
Note
never ended: chat gemini-3.5-flash-lite
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost openlit · gemini/stream-early-exit · span.endedGhost span #
never ended: chat gemini-3.5-flash-lite
Note
never ended: chat gemini-3.5-flash-lite
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost openlit · gemini/stream-thinking · span.endedGhost span #
never ended: chat gemini-3.5-flash-lite
Note
never ended: chat gemini-3.5-flash-lite
Cost
$0.00641 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/stream-thinking
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage2400
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-sthink
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0.0005191564559936523
gen_ai.server.time_to_first_token0.05049705505371094
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens317
gen_ai.usage.reasoning_tokens1999
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/stream-thinking · finish_reasonsSilent stop #
expected STOP, reported FinishReason.STOP
Expected
['STOP']
Reported
['FinishReason.STOP']
Read from
gen_ai.response.finish_reasons
Cost
$0.00641 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/stream-thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage2400
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-sthink
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0.0005191564559936523
gen_ai.server.time_to_first_token0.05049705505371094
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens317
gen_ai.usage.reasoning_tokens1999
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/stream-thinking · output_tokensVanishing tokens #
expected 2316, reported 317: reasoning tokens left out of output
Expected
2316
Reported
317
Read from
gen_ai.usage.output_tokens
Note
reasoning tokens left out of output
Cost
$0.00641 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/stream-thinking
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage2400
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-sthink
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0.0005191564559936523
gen_ai.server.time_to_first_token0.05049705505371094
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens317
gen_ai.usage.reasoning_tokens1999
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/stream-thinking · metric.output_tokens #
expected 2316, reported 317: reasoning tokens left out of output
Expected
2316
Reported
317
Read from
gen_ai.client.token.usage
Note
reasoning tokens left out of output
Cost
$0.00641 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/stream-thinking
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage2400
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-sthink
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0.0005191564559936523
gen_ai.server.time_to_first_token0.05049705505371094
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens317
gen_ai.usage.reasoning_tokens1999
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/thinking · finish_reasonsSilent stop #
expected STOP, reported FinishReason.STOP
Expected
['STOP']
Reported
['FinishReason.STOP']
Read from
gen_ai.response.finish_reasons
Cost
$0.00578 on the wire, $0.00109 from the spans (-81.2%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/thinking
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage1850
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamFalse
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-think
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.06112480163574219
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens241
gen_ai.usage.reasoning_tokens1877
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/thinking · output_tokensVanishing tokens #
expected 2118, reported 241: reasoning tokens left out of output
Expected
2118
Reported
241
Read from
gen_ai.usage.output_tokens
Note
reasoning tokens left out of output
Cost
$0.00578 on the wire, $0.00109 from the spans (-81.2%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/thinking
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage1850
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamFalse
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-think
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.06112480163574219
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens241
gen_ai.usage.reasoning_tokens1877
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · gemini/thinking · metric.output_tokens #
expected 2118, reported 241: reasoning tokens left out of output
Expected
2118
Reported
241
Read from
gen_ai.client.token.usage
Note
reasoning tokens left out of output
Cost
$0.00578 on the wire, $0.00109 from the spans (-81.2%), at list price.
Reproduce
spantruth run --subject openlit --scenario gemini/thinking
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

chat gemini-3.5-flash-lite openlit.instrumentation.google_ai_studio, status OK

deployment.environmentdefault
gen_ai.client.token.usage1850
gen_ai.input.messages[]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "FinishReason.STOP"}]
gen_ai.output.typetext
gen_ai.provider.namegemini
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.request.streamFalse
gen_ai.response.finish_reasons['FinishReason.STOP']
gen_ai.response.idwt-gemini-think
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.sdk.version3.6.1
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.06112480163574219
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens241
gen_ai.usage.reasoning_tokens1877
server.addressgenerativelanguage.googleapis.com
server.port443
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

lost openlit · openai/async-stream-dropped · span.endedGhost span #
never ended: chat gpt-5-mini
Note
never ended: chat gpt-5-mini
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario openai/async-stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--async-stream-dropped/v1/chat/completions

spantruth.scenario spantruth.driver, status UNSET

lost openlit · openai/async-stream-early-exit · span.endedGhost span #
never ended: chat gpt-5-mini
Note
never ended: chat gpt-5-mini
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario openai/async-stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--async-stream-early-exit/v1/chat/completions

spantruth.scenario spantruth.driver, status UNSET

lost openlit · openai/async-stream-helper · span.endedGhost span #
never ended: chat gpt-5-mini
Note
never ended: chat gpt-5-mini
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario openai/async-stream-helper
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--async-stream-helper/v1/chat/completions

spantruth.scenario spantruth.driver, status UNSET

missing openlit · openai/reasoning · reasoning_tokensHidden reasoning #
expected 1792, reported nothing
Expected
1792
Reproduce
spantruth run --subject openlit --scenario openai/reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--reasoning/v1/chat/completions

chat gpt-5-mini openlit.instrumentation.openai, status OK

deployment.environmentdefault
gen_ai.client.token.usage3820
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameopenai
gen_ai.request.frequency_penalty0.0
gen_ai.request.modelgpt-5-mini
gen_ai.request.presence_penalty0.0
gen_ai.request.seed0
gen_ai.request.streamFalse
gen_ai.request.temperature1.0
gen_ai.request.top_p1.0
gen_ai.request.user
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-reason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.sdk.version2.54.0
gen_ai.server.time_per_output_token0
gen_ai.server.time_to_first_token0.02146315574645996
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
openai.api.typechat_completions
openai.response.service_tierdefault
openai.response.system_fingerprintfp_wt0001
openlit.agent.version_hash8559be562eb7885f
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

lost openlit · openai/responses-stream-missing-finish-abort · span.endedGhost span #
never ended: chat gpt-6-luna
Note
never ended: chat gpt-6-luna
Reproduce
spantruth run --subject openlit --scenario openai/responses-stream-missing-finish-abort
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--responses-stream-missing-finish-abort/v1/responses

spantruth.scenario spantruth.driver, status UNSET

lost openlit · openai/stream-dropped · span.endedGhost span #
never ended: chat gpt-5-mini
Note
never ended: chat gpt-5-mini
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario openai/stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--stream-dropped/v1/chat/completions

spantruth.scenario spantruth.driver, status UNSET

lost openlit · openai/stream-early-exit · span.endedGhost span #
never ended: chat gpt-5-mini
Note
never ended: chat gpt-5-mini
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario openai/stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--stream-early-exit/v1/chat/completions

spantruth.scenario spantruth.driver, status UNSET

lost openlit · openai/stream-early-exit-with · span.endedGhost span #
never ended: chat gpt-5-mini
Note
never ended: chat gpt-5-mini
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario openai/stream-early-exit-with
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--stream-early-exit-with/v1/chat/completions

spantruth.scenario spantruth.driver, status UNSET

lost openlit · openai/stream-helper · span.endedGhost span #
never ended: chat gpt-5-mini
Note
never ended: chat gpt-5-mini
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openlit --scenario openai/stream-helper
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (2)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--stream-helper/v1/chat/completions

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · openai/stream-no-usage · input_tokensPhantom tokens #
expected nothing, reported 18: estimated: the stream carried no usage
Reported
18
Read from
gen_ai.usage.input_tokens
Note
estimated: the stream carried no usage
Reproduce
spantruth run --subject openlit --scenario openai/stream-no-usage
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--stream-no-usage/v1/chat/completions

chat gpt-5-mini openlit.instrumentation.openai, status OK

deployment.environmentdefault
gen_ai.client.token.usage34
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameopenai
gen_ai.request.frequency_penalty0.0
gen_ai.request.modelgpt-5-mini
gen_ai.request.presence_penalty0.0
gen_ai.request.seed0
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_p1.0
gen_ai.request.user
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.sdk.version2.54.0
gen_ai.server.time_per_output_token0.00028264522552490234
gen_ai.server.time_to_first_token0.004424095153808594
gen_ai.usage.cost0
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens16
openai.api.typechat_completions
openai.response.service_tierdefault
openai.response.system_fingerprintfp_wt0001
openlit.agent.version_hash8559be562eb7885f
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · openai/stream-no-usage · output_tokensPhantom tokens #
expected nothing, reported 16: estimated: the stream carried no usage
Reported
16
Read from
gen_ai.usage.output_tokens
Note
estimated: the stream carried no usage
Reproduce
spantruth run --subject openlit --scenario openai/stream-no-usage
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--stream-no-usage/v1/chat/completions

chat gpt-5-mini openlit.instrumentation.openai, status OK

deployment.environmentdefault
gen_ai.client.token.usage34
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameopenai
gen_ai.request.frequency_penalty0.0
gen_ai.request.modelgpt-5-mini
gen_ai.request.presence_penalty0.0
gen_ai.request.seed0
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_p1.0
gen_ai.request.user
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.sdk.version2.54.0
gen_ai.server.time_per_output_token0.00028264522552490234
gen_ai.server.time_to_first_token0.004424095153808594
gen_ai.usage.cost0
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens16
openai.api.typechat_completions
openai.response.service_tierdefault
openai.response.system_fingerprintfp_wt0001
openlit.agent.version_hash8559be562eb7885f
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · openai/stream-no-usage · metric.input_tokens #
expected nothing, reported 18: estimated: the stream carried no usage
Reported
18
Read from
gen_ai.client.token.usage
Note
estimated: the stream carried no usage
Reproduce
spantruth run --subject openlit --scenario openai/stream-no-usage
Rule
The input token metric is Recommended: it SHOULD be reported when an operation involves the usage of tokens and the count is readily available, and the recorded value SHOULD match the token count returned by the provider, cached tokens included. Read from `gen_ai.client.inference.operation.input_tokens`, `gen_ai.client.inference.usage.input_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `input`. The histograms count tokens per inference operation, so one call is one recording. Graded only for a library that documents token metrics (`[metrics]` in subject.toml); a documented library that emits none is missing.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--stream-no-usage/v1/chat/completions

chat gpt-5-mini openlit.instrumentation.openai, status OK

deployment.environmentdefault
gen_ai.client.token.usage34
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameopenai
gen_ai.request.frequency_penalty0.0
gen_ai.request.modelgpt-5-mini
gen_ai.request.presence_penalty0.0
gen_ai.request.seed0
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_p1.0
gen_ai.request.user
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.sdk.version2.54.0
gen_ai.server.time_per_output_token0.00028264522552490234
gen_ai.server.time_to_first_token0.004424095153808594
gen_ai.usage.cost0
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens16
openai.api.typechat_completions
openai.response.service_tierdefault
openai.response.system_fingerprintfp_wt0001
openlit.agent.version_hash8559be562eb7885f
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openlit · openai/stream-no-usage · metric.output_tokens #
expected nothing, reported 16: estimated: the stream carried no usage
Reported
16
Read from
gen_ai.client.token.usage
Note
estimated: the stream carried no usage
Reproduce
spantruth run --subject openlit --scenario openai/stream-no-usage
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--stream-no-usage/v1/chat/completions

chat gpt-5-mini openlit.instrumentation.openai, status OK

deployment.environmentdefault
gen_ai.client.token.usage34
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameopenai
gen_ai.request.frequency_penalty0.0
gen_ai.request.modelgpt-5-mini
gen_ai.request.presence_penalty0.0
gen_ai.request.seed0
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_p1.0
gen_ai.request.user
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-nousage
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.sdk.version2.54.0
gen_ai.server.time_per_output_token0.00028264522552490234
gen_ai.server.time_to_first_token0.004424095153808594
gen_ai.usage.cost0
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens16
openai.api.typechat_completions
openai.response.service_tierdefault
openai.response.system_fingerprintfp_wt0001
openlit.agent.version_hash8559be562eb7885f
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

missing openlit · openai/stream-reasoning · reasoning_tokensHidden reasoning #
expected 1931, reported nothing
Expected
1931
Reproduce
spantruth run --subject openlit --scenario openai/stream-reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37565/s/openai--stream-reasoning/v1/chat/completions

chat gpt-5-mini openlit.instrumentation.openai, status OK

deployment.environmentdefault
gen_ai.client.token.usage4548
gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.output.typetext
gen_ai.provider.nameopenai
gen_ai.request.frequency_penalty0.0
gen_ai.request.modelgpt-5-mini
gen_ai.request.presence_penalty0.0
gen_ai.request.seed0
gen_ai.request.streamTrue
gen_ai.request.temperature1.0
gen_ai.request.top_p1.0
gen_ai.request.user
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.sdk.version2.54.0
gen_ai.server.time_per_output_token0.0003707408905029297
gen_ai.server.time_to_first_token0.004196643829345703
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cost0
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
openai.api.typechat_completions
openai.response.service_tierdefault
openai.response.system_fingerprintfp_wt0001
openlit.agent.version_hash8559be562eb7885f
server.address127.0.0.1
server.port37565
service.namespantruth
telemetry.sdk.nameopenlit

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/async-concurrent-streams · output_tokensPhantom tokens #
expected 149, reported 150: call 1 of 2; failed on calls 1, 2
Expected
149
Reported
150
Read from
gen_ai.usage.output_tokens
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject openllmetry --scenario anthropic/async-concurrent-streams
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (3)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_par1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens150
gen_ai.usage.total_tokens1183

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-haiku-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_par2
gen_ai.response.modelclaude-haiku-5-5-20261001
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens182
gen_ai.usage.total_tokens1929

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/async-stream · output_tokensPhantom tokens #
expected 419, reported 420
Expected
419
Reported
420
Read from
gen_ai.usage.output_tokens
Upstream
reported message_delta carries the cumulative output count, and the wrapper adds it to message_start's placeholder of 1.
Cost
$0.00881 on the wire, $0.00882 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/async-stream
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens420
gen_ai.usage.total_tokens2731

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/async-stream · metric.output_tokens #
expected 419, reported 420
Expected
419
Reported
420
Read from
gen_ai.client.token.usage
Cost
$0.00881 on the wire, $0.00882 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/async-stream
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens420
gen_ai.usage.total_tokens2731

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · anthropic/async-stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject openllmetry --scenario anthropic/async-stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status ERROR

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

lost openllmetry · anthropic/async-stream-early-exit · span.endedGhost span #
never ended: anthropic.chat
Note
never ended: anthropic.chat
Upstream
reported Fix proposed in https://github.com/traceloop/openllmetry/pull/4539.
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/async-stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · anthropic/async-stream-error-event · error.typeFalse OK #
Reproduce
spantruth run --subject openllmetry --scenario anthropic/async-stream-error-event
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status ERROR

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream · output_tokensPhantom tokens #
expected 419, reported 420
Expected
419
Reported
420
Read from
gen_ai.usage.output_tokens
Upstream
reported message_delta carries the cumulative output count, and the wrapper adds it to message_start's placeholder of 1.
Cost
$0.00881 on the wire, $0.00882 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens420
gen_ai.usage.total_tokens2731

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream · metric.output_tokens #
expected 419, reported 420
Expected
419
Reported
420
Read from
gen_ai.client.token.usage
Cost
$0.00881 on the wire, $0.00882 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens420
gen_ai.usage.total_tokens2731

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-cache-1h · output_tokensPhantom tokens #
expected 523, reported 524
Expected
523
Reported
524
Read from
gen_ai.usage.output_tokens
Upstream
reported message_delta carries the cumulative output count, and the wrapper adds it to message_start's placeholder of 1.
Cost
$0.0175 on the wire, $0.0175 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-cache-1h
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens2492
gen_ai.usage.cache_read.input_tokens3217
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens524
gen_ai.usage.total_tokens7684

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-cache-1h · metric.output_tokens #
expected 523, reported 524
Expected
523
Reported
524
Read from
gen_ai.client.token.usage
Cost
$0.0175 on the wire, $0.0175 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-cache-1h
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens2492
gen_ai.usage.cache_read.input_tokens3217
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens524
gen_ai.usage.total_tokens7684

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-cache-cumulative · output_tokensPhantom tokens #
expected 467, reported 468
Expected
467
Reported
468
Read from
gen_ai.usage.output_tokens
Upstream
reported message_delta carries the cumulative output count, and the wrapper adds it to message_start's placeholder of 1.
Cost
$0.00961 on the wire, $0.00962 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-cache-cumulative
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_cumul
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens811
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens468
gen_ai.usage.total_tokens6141

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-cache-cumulative · metric.output_tokens #
expected 467, reported 468
Expected
467
Reported
468
Read from
gen_ai.client.token.usage
Cost
$0.00961 on the wire, $0.00962 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-cache-cumulative
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_cumul
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens811
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens468
gen_ai.usage.total_tokens6141

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-cache-hit · output_tokensPhantom tokens #
expected 511, reported 512
Expected
511
Reported
512
Read from
gen_ai.usage.output_tokens
Upstream
reported message_delta carries the cumulative output count, and the wrapper adds it to message_start's placeholder of 1.
Cost
$0.0107 on the wire, $0.0107 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-cache-hit
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens737
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens512
gen_ai.usage.total_tokens8936

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-cache-hit · metric.output_tokens #
expected 511, reported 512
Expected
511
Reported
512
Read from
gen_ai.client.token.usage
Cost
$0.0107 on the wire, $0.0107 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-cache-hit
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens737
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens512
gen_ai.usage.total_tokens8936

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-content-off · output_tokensPhantom tokens #
expected 419, reported 420
Expected
419
Reported
420
Read from
gen_ai.usage.output_tokens
Cost
$0.00881 on the wire, $0.00882 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-content-off
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens420
gen_ai.usage.total_tokens2731

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-content-off · metric.output_tokens #
expected 419, reported 420
Expected
419
Reported
420
Read from
gen_ai.client.token.usage
Cost
$0.00881 on the wire, $0.00882 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-content-off
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens420
gen_ai.usage.total_tokens2731

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-content-on · output_tokensPhantom tokens #
expected 419, reported 420
Expected
419
Reported
420
Read from
gen_ai.usage.output_tokens
Cost
$0.00881 on the wire, $0.00882 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-content-on
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens420
gen_ai.usage.total_tokens2731

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-content-on · metric.output_tokens #
expected 419, reported 420
Expected
419
Reported
420
Read from
gen_ai.client.token.usage
Cost
$0.00881 on the wire, $0.00882 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-content-on
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens420
gen_ai.usage.total_tokens2731

spantruth.scenario spantruth.driver, status UNSET

lost openllmetry · anthropic/stream-dropped · span.endedGhost span #
never ended: anthropic.chat
Note
never ended: anthropic.chat
Upstream
reported The async stream ends its span with status ERROR, but without error.type.
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost openllmetry · anthropic/stream-early-exit · span.endedGhost span #
never ended: anthropic.chat
Note
never ended: anthropic.chat
Upstream
reported Fix proposed in https://github.com/traceloop/openllmetry/pull/4539.
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost openllmetry · anthropic/stream-early-exit-with · span.endedGhost span #
never ended: anthropic.chat
Note
never ended: anthropic.chat
Upstream
reported Fix proposed in https://github.com/traceloop/openllmetry/pull/4539.
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-early-exit-with
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost openllmetry · anthropic/stream-error-event · span.endedGhost span #
never ended: anthropic.chat
Note
never ended: anthropic.chat
Upstream
reported The async stream ends its span with status ERROR, but without error.type.
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-error-event
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-thinking · output_tokensPhantom tokens #
expected 1439, reported 1440
Expected
1439
Reported
1440
Read from
gen_ai.usage.output_tokens
Cost
$0.0181 on the wire, $0.0181 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-thinking
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "reasoning", "content": "Let me think about the capital of France. The capital is Paris."}, {"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1440
gen_ai.usage.total_tokens3271

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · anthropic/stream-thinking · reasoning_tokensHidden reasoning #
expected 1103, reported nothing
Expected
1103
Cost
$0.0181 on the wire, $0.0181 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "reasoning", "content": "Let me think about the capital of France. The capital is Paris."}, {"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1440
gen_ai.usage.total_tokens3271

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-thinking · metric.output_tokens #
expected 1439, reported 1440
Expected
1439
Reported
1440
Read from
gen_ai.client.token.usage
Cost
$0.0181 on the wire, $0.0181 from the spans (+0.1%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-thinking
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "reasoning", "content": "Let me think about the capital of France. The capital is Paris."}, {"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1440
gen_ai.usage.total_tokens3271

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-tool-call · output_tokensPhantom tokens #
expected 197, reported 198
Expected
197
Reported
198
Read from
gen_ai.usage.output_tokens
Cost
$0.00521 on the wire, $0.00522 from the spans (+0.2%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-tool-call
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "toolu_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": "tool_call"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['tool_call']
gen_ai.response.idmsg_wt_stools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens198
gen_ai.usage.total_tokens1817

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · anthropic/stream-tool-call · metric.output_tokens #
expected 197, reported 198
Expected
197
Reported
198
Read from
gen_ai.client.token.usage
Cost
$0.00521 on the wire, $0.00522 from the spans (+0.2%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario anthropic/stream-tool-call
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.is_streamingTrue
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "tool_call", "id": "toolu_wt_1", "name": "get_weather", "arguments": {"city": "Paris"}}, {"type": "tool_call", "id": "toolu_wt_2", "name": "get_time", "arguments": {"zone": "Europe/Paris"}}], "finish_reason": "tool_call"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['tool_call']
gen_ai.response.idmsg_wt_stools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.tool.definitions[{"name": "get_weather", "input_schema": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"name": "get_time", "input_schema": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens198
gen_ai.usage.total_tokens1817

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · anthropic/thinking · reasoning_tokensHidden reasoning #
expected 947, reported nothing
Expected
947
Reproduce
spantruth run --subject openllmetry --scenario anthropic/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

anthropic.chat opentelemetry.instrumentation.anthropic, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "reasoning", "content": "Let me think about the capital of France. The capital of France is Paris."}, {"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.total_tokens2900

spantruth.scenario spantruth.driver, status UNSET

lost openllmetry · gemini/async-stream-dropped · span.endedGhost span #
never ended: generate_content gemini-3.5-flash-lite
Note
never ended: generate_content gemini-3.5-flash-lite
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario gemini/async-stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost openllmetry · gemini/async-stream-early-exit · span.endedGhost span #
never ended: generate_content gemini-3.5-flash-lite
Note
never ended: generate_content gemini-3.5-flash-lite
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario gemini/async-stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · gemini/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject openllmetry --scenario gemini/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

generate_content gemini-3.5-flash-lite opentelemetry.instrumentation.google_generativeai, status ERROR

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.provider.namegcp.gen_ai
gen_ai.request.modelgemini-3.5-flash-lite

spantruth.scenario spantruth.driver, status UNSET

lost openllmetry · gemini/stream-dropped · span.endedGhost span #
never ended: generate_content gemini-3.5-flash-lite
Note
never ended: generate_content gemini-3.5-flash-lite
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario gemini/stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost openllmetry · gemini/stream-early-exit · span.endedGhost span #
never ended: generate_content gemini-3.5-flash-lite
Note
never ended: generate_content gemini-3.5-flash-lite
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario gemini/stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · gemini/stream-thinking · output_tokensVanishing tokens #
expected 2316, reported 317: reasoning tokens left out of output
Expected
2316
Reported
317
Read from
gen_ai.usage.output_tokens
Note
reasoning tokens left out of output
Cost
$0.00641 on the wire, $0.00142 from the spans (-77.9%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario gemini/stream-thinking
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

generate_content gemini-3.5-flash-lite opentelemetry.instrumentation.google_generativeai, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": " is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.namegcp.gen_ai
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasons['stop']
gen_ai.response.idwt-gemini-sthink
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens317
gen_ai.usage.total_tokens4399

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · gemini/stream-thinking · reasoning_tokensHidden reasoning #
expected 1999, reported nothing
Expected
1999
Cost
$0.00641 on the wire, $0.00142 from the spans (-77.9%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario gemini/stream-thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

generate_content gemini-3.5-flash-lite opentelemetry.instrumentation.google_generativeai, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": " is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.namegcp.gen_ai
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasons['stop']
gen_ai.response.idwt-gemini-sthink
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens317
gen_ai.usage.total_tokens4399

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · gemini/stream-thinking · metric.output_tokens #
expected 2316, reported 317: reasoning tokens left out of output
Expected
2316
Reported
317
Read from
gen_ai.client.token.usage
Note
reasoning tokens left out of output
Cost
$0.00641 on the wire, $0.00142 from the spans (-77.9%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario gemini/stream-thinking
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

generate_content gemini-3.5-flash-lite opentelemetry.instrumentation.google_generativeai, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": " is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.namegcp.gen_ai
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasons['stop']
gen_ai.response.idwt-gemini-sthink
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens317
gen_ai.usage.total_tokens4399

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · gemini/thinking · output_tokensVanishing tokens #
expected 2118, reported 241: reasoning tokens left out of output
Expected
2118
Reported
241
Read from
gen_ai.usage.output_tokens
Note
reasoning tokens left out of output
Cost
$0.00578 on the wire, $0.00109 from the spans (-81.2%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario gemini/thinking
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

generate_content gemini-3.5-flash-lite opentelemetry.instrumentation.google_generativeai, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.namegcp.gen_ai
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasons['stop']
gen_ai.response.idwt-gemini-think
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens3727

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · gemini/thinking · reasoning_tokensHidden reasoning #
expected 1877, reported nothing
Expected
1877
Cost
$0.00578 on the wire, $0.00109 from the spans (-81.2%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario gemini/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

generate_content gemini-3.5-flash-lite opentelemetry.instrumentation.google_generativeai, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.namegcp.gen_ai
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasons['stop']
gen_ai.response.idwt-gemini-think
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens3727

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · gemini/thinking · metric.output_tokens #
expected 2118, reported 241: reasoning tokens left out of output
Expected
2118
Reported
241
Read from
gen_ai.client.token.usage
Note
reasoning tokens left out of output
Cost
$0.00578 on the wire, $0.00109 from the spans (-81.2%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario gemini/thinking
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

generate_content gemini-3.5-flash-lite opentelemetry.instrumentation.google_generativeai, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"type": "text", "content": "What is the capital of France?"}]}]
gen_ai.operation.namegenerate_content
gen_ai.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital of France is Paris."}], "finish_reason": "stop"}]
gen_ai.provider.namegcp.gen_ai
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasons['stop']
gen_ai.response.idwt-gemini-think
gen_ai.response.modelgemini-3.5-flash-lite
gen_ai.usage.input_tokens1609
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens3727

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · openai/async-stream-dropped · error.statusFalse OK #
expected ERROR, reported OK
Expected
ERROR
Reported
['OK']
Upstream
reported _ensure_cleanup() sets OK and ends the span before the ERROR status is set, so ERROR is dropped.
Reproduce
spantruth run --subject openllmetry --scenario openai/async-stream-dropped
Rule
Span status SHOULD follow Recording Errors: an operation that ended in an error sets the status to Error.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--async-stream-dropped/v1/
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France", "type": "text"}], "finish_reason": ""}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.idchatcmpl-wt-drop
gen_ai.response.modelgpt-5-mini-2026-08-07

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/async-stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject openllmetry --scenario openai/async-stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--async-stream-dropped/v1/
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France", "type": "text"}], "finish_reason": ""}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.idchatcmpl-wt-drop
gen_ai.response.modelgpt-5-mini-2026-08-07

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/async-stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/async-stream-helper
Rule
The name of the model that generated the response.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--async-stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/async-stream-helper · response_id #
expected chatcmpl-wt-shelper, reported nothing
Expected
chatcmpl-wt-shelper
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/async-stream-helper
Rule
The unique identifier of the completion.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--async-stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/async-stream-helper · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/async-stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--async-stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/async-stream-helper · input_tokensVanishing tokens #
expected 2137, reported nothing
Expected
2137
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/async-stream-helper
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--async-stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/async-stream-helper · output_tokensVanishing tokens #
expected 313, reported nothing
Expected
313
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/async-stream-helper
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--async-stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/async-stream-helper · metric.input_tokens #
expected 2137, reported nothing: no token usage metric arrived
Expected
2137
Note
no token usage metric arrived
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/async-stream-helper
Rule
The input token metric is Recommended: it SHOULD be reported when an operation involves the usage of tokens and the count is readily available, and the recorded value SHOULD match the token count returned by the provider, cached tokens included. Read from `gen_ai.client.inference.operation.input_tokens`, `gen_ai.client.inference.usage.input_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `input`. The histograms count tokens per inference operation, so one call is one recording. Graded only for a library that documents token metrics (`[metrics]` in subject.toml); a documented library that emits none is missing.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--async-stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/async-stream-helper · metric.output_tokens #
expected 313, reported nothing: no token usage metric arrived
Expected
313
Note
no token usage metric arrived
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/async-stream-helper
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--async-stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/cache-write · cache_write_tokensCache-blind tokens #
expected 3181, reported nothing
Expected
3181
Cost
$0.00147 on the wire, $0.00131 from the spans (-10.8%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/cache-write
Rule
Input tokens written to the provider cache.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingFalse
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--cache-write/v1/
gen_ai.openai.response.system_fingerprintfp_wt0001
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France is Paris.", "type": "text"}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-cwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.cache_read.input_tokens2753
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
gen_ai.usage.reasoning_tokens0
gen_ai.usage.total_tokens7020
openai.response.service_tierdefault

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · openai/compat-extra-timing-fields · response_model #
expected openai/gpt-oss-20b, reported gpt-oss-20b
Expected
openai/gpt-oss-20b
Reported
gpt-oss-20b
Read from
gen_ai.response.model
Reproduce
spantruth run --subject openllmetry --scenario openai/compat-extra-timing-fields
Rule
The name of the model that generated the response.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingFalse
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--compat-extra-timing-fields/v1/
gen_ai.openai.response.system_fingerprintfp_179b0f92c9
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France is Paris.", "type": "text"}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelllama-3.3-70b-versatile
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-f51b2cd2-bef7-417e-964e-a08f0b513c22
gen_ai.response.modelgpt-oss-20b
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
gen_ai.usage.total_tokens574

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · openai/compat-no-details · response_model #
expected Qwen/Qwen3.5-27B-Instruct, reported Qwen3.5-27B-Instruct
Expected
Qwen/Qwen3.5-27B-Instruct
Reported
Qwen3.5-27B-Instruct
Read from
gen_ai.response.model
Reproduce
spantruth run --subject openllmetry --scenario openai/compat-no-details
Rule
The name of the model that generated the response.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingFalse
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--compat-no-details/v1/
gen_ai.openai.response.system_fingerprintfp_wt0001
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France is Paris.", "type": "text"}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-cnodet
gen_ai.response.modelQwen3.5-27B-Instruct
gen_ai.usage.input_tokens1129
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens1370
openai.response.service_tierdefault

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · openai/compat-null-details · response_model #
expected Qwen/Qwen3.5-27B-Instruct, reported Qwen3.5-27B-Instruct
Expected
Qwen/Qwen3.5-27B-Instruct
Reported
Qwen3.5-27B-Instruct
Read from
gen_ai.response.model
Reproduce
spantruth run --subject openllmetry --scenario openai/compat-null-details
Rule
The name of the model that generated the response.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingFalse
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--compat-null-details/v1/
gen_ai.openai.response.system_fingerprintfp_wt0001
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France is Paris.", "type": "text"}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-cnull
gen_ai.response.modelQwen3.5-27B-Instruct
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
openai.response.service_tierdefault

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · openai/compat-stream-no-details · response_model #
expected Qwen/Qwen3.5-27B-Instruct, reported Qwen3.5-27B-Instruct
Expected
Qwen/Qwen3.5-27B-Instruct
Reported
Qwen3.5-27B-Instruct
Read from
gen_ai.response.model
Reproduce
spantruth run --subject openllmetry --scenario openai/compat-stream-no-details
Rule
The name of the model that generated the response.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--compat-stream-no-details/v1/
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France is Paris.", "type": "text"}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-csnodet
gen_ai.response.modelQwen3.5-27B-Instruct
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.total_tokens1654

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · openai/compat-stream-usage-on-finish · response_model #
expected Qwen/Qwen3.5-27B-Instruct, reported Qwen3.5-27B-Instruct
Expected
Qwen/Qwen3.5-27B-Instruct
Reported
Qwen3.5-27B-Instruct
Read from
gen_ai.response.model
Reproduce
spantruth run --subject openllmetry --scenario openai/compat-stream-usage-on-finish
Rule
The name of the model that generated the response.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--compat-stream-usage-on-finish/v1/
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France is Paris.", "type": "text"}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelqwen3.5-27b
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-csfinish
gen_ai.response.modelQwen3.5-27B-Instruct
gen_ai.usage.cache_read.input_tokens1063
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
gen_ai.usage.total_tokens1820

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/stream-cache-write · cache_write_tokensCache-blind tokens #
expected 3539, reported nothing
Expected
3539
Cost
$0.00166 on the wire, $0.00148 from the spans (-10.7%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-cache-write
Rule
Input tokens written to the provider cache.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-cache-write/v1/
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France is Paris.", "type": "text"}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-scwrite
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.usage.cache_read.input_tokens3967
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694

spantruth.scenario spantruth.driver, status UNSET

wrong openllmetry · openai/stream-dropped · error.statusFalse OK #
expected ERROR, reported OK
Expected
ERROR
Reported
['OK']
Upstream
reported _ensure_cleanup() sets OK and ends the span before the ERROR status is set, so ERROR is dropped.
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-dropped
Rule
Span status SHOULD follow Recording Errors: an operation that ended in an error sets the status to Error.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-dropped/v1/
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France", "type": "text"}], "finish_reason": ""}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.idchatcmpl-wt-drop
gen_ai.response.modelgpt-5-mini-2026-08-07

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-dropped/v1/
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France", "type": "text"}], "finish_reason": ""}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.idchatcmpl-wt-drop
gen_ai.response.modelgpt-5-mini-2026-08-07

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-helper
Rule
The name of the model that generated the response.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/stream-helper · response_id #
expected chatcmpl-wt-shelper, reported nothing
Expected
chatcmpl-wt-shelper
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-helper
Rule
The unique identifier of the completion.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/stream-helper · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/stream-helper · input_tokensVanishing tokens #
expected 2137, reported nothing
Expected
2137
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-helper
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/stream-helper · output_tokensVanishing tokens #
expected 313, reported nothing
Expected
313
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-helper
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/stream-helper · metric.input_tokens #
expected 2137, reported nothing: no token usage metric arrived
Expected
2137
Note
no token usage metric arrived
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-helper
Rule
The input token metric is Recommended: it SHOULD be reported when an operation involves the usage of tokens and the count is readily available, and the recorded value SHOULD match the token count returned by the provider, cached tokens included. Read from `gen_ai.client.inference.operation.input_tokens`, `gen_ai.client.inference.usage.input_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `input`. The histograms count tokens per inference operation, so one call is one recording. Graded only for a library that documents token metrics (`[metrics]` in subject.toml); a documented library that emits none is missing.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/stream-helper · metric.output_tokens #
expected 313, reported nothing: no token usage metric arrived
Expected
313
Note
no token usage metric arrived
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-helper
Rule
The output token metric counts the output tokens of the call, reasoning tokens included, with the same rules as the input token metric. Read from `gen_ai.client.inference.operation.output_tokens`, `gen_ai.client.inference.usage.output_tokens`, or the deprecated `gen_ai.client.token.usage` with `gen_ai.token.type` `output`.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status UNSET

gen_ai.headers{'X-Stainless-Raw-Response': 'stream'}
gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-helper/v1/
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini

spantruth.scenario spantruth.driver, status UNSET

missing openllmetry · openai/stream-reasoning · reasoning_tokensHidden reasoning #
expected 1931, reported nothing
Expected
1931
Reproduce
spantruth run --subject openllmetry --scenario openai/stream-reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

openai.chat opentelemetry.instrumentation.openai.v1, status OK

gen_ai.input.messages[{"role": "user", "parts": [{"content": "What is the capital of France?", "type": "text"}]}]
gen_ai.is_streamingTrue
gen_ai.openai.api_basehttp://127.0.0.1:37565/s/openai--stream-reasoning/v1/
gen_ai.operation.namechat
gen_ai.output.messages[{"role": "assistant", "parts": [{"content": "The capital of France is Paris.", "type": "text"}], "finish_reason": "stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.total_tokens4548

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/agent-loop · tokens.single-reportDouble span #
expected 1, reported 2: call 1 of 3: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5; failed on calls 1, 2, 3
Expected
1
Reported
2
Note
call 1 of 3: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5; failed on calls 1, 2, 3
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/agent-loop
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (7)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasontool_use
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--agent-loop/v1/messages
url.path/s/anthropic--agent-loop/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['tool_call']
gen_ai.response.idmsg_wt_loop1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
server.address127.0.0.1
server.port37565

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasontool_use
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop2
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens1093
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--agent-loop/v1/messages
url.path/s/anthropic--agent-loop/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['tool_call']
gen_ai.response.idmsg_wt_loop2
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens1093
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
server.address127.0.0.1
server.port37565

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_loop3
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens1279
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--agent-loop/v1/messages
url.path/s/anthropic--agent-loop/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_loop3
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens1279
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/async-basic · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.005 on the wire, $0.01 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/async-basic
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--async-basic/v1/messages
url.path/s/anthropic--async-basic/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/async-concurrent-streams · tokens.single-reportDouble span #
expected 1, reported 2: call 1 of 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5; failed on calls 1, 2
Expected
1
Reported
2
Note
call 1 of 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5; failed on calls 1, 2
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/async-concurrent-streams
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (5)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_par1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.109292642
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--async-concurrent-streams/v1/messages
url.path/s/anthropic--async-concurrent-streams/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_par1
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.10357355499991172
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
server.address127.0.0.1
server.port37565

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-haiku-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_par2
gen_ai.response.modelclaude-haiku-5-5-20261001
gen_ai.response.time_to_first_chunk0.048164765
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--async-concurrent-streams/v1/messages
url.path/s/anthropic--async-concurrent-streams/v1/messages
url.schemehttp

chat claude-haiku-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-haiku-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_par2
gen_ai.response.modelclaude-haiku-5-5-20261001
gen_ai.response.time_to_first_chunk0.11074198000005708
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/async-stream · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.00881 on the wire, $0.0176 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/async-stream
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.099876324
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--async-stream/v1/messages
url.path/s/anthropic--async-stream/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.0929368820000036
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/async-stream-early-exit · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/async-stream-early-exit
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_early
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1913
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--async-stream-early-exit/v1/messages
url.path/s/anthropic--async-stream-early-exit/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_early
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.0937267989997963
gen_ai.usage.input_tokens1913
gen_ai.usage.output_tokens1
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/basic · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.005 on the wire, $0.01 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/basic
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--basic/v1/messages
url.path/s/anthropic--basic/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/cache-1h · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.0146 on the wire, $0.0292 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/cache-1h
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
anthropic.usage.cache_creation.ephemeral_1h_input_tokens1663
anthropic.usage.cache_creation.ephemeral_5m_input_tokens457
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens2861
gen_ai.usage.cache_write.input_tokens2120
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--cache-1h/v1/messages
url.path/s/anthropic--cache-1h/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_cache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens2861
gen_ai.usage.cache_write.input_tokens2120
gen_ai.usage.input_tokens6288
gen_ai.usage.output_tokens389
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/cache-hit · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.00785 on the wire, $0.0157 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/cache-hit
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_cache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens4096
gen_ai.usage.cache_write.input_tokens519
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--cache-hit/v1/messages
url.path/s/anthropic--cache-hit/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_cache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens4096
gen_ai.usage.cache_write.input_tokens519
gen_ai.usage.input_tokens5802
gen_ai.usage.output_tokens377
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/content-off · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.005 on the wire, $0.01 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/content-off
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--content-off/v1/messages
url.path/s/anthropic--content-off/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/content-on · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.005 on the wire, $0.01 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/content-on
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--content-on/v1/messages
url.path/s/anthropic--content-on/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.input.messages[{"role":"user","parts":[{"content":"What is the capital of France?","type":"text"}],"name":null}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"content":"The capital of France is Paris.","type":"text"}],"finish_reason":"stop","name":null}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_basic
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/retry-429 · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.00862 on the wire, $0.0172 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/retry-429
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_retry
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
http.request.methodPOST
http.request.resend_count1
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--retry-429/v1/messages
url.path/s/anthropic--retry-429/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_retry
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/stream · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.00881 on the wire, $0.0176 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/stream
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.045084421
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream/v1/messages
url.path/s/anthropic--stream/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.03788524299989149
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/stream-cache-1h · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.0175 on the wire, $0.035 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/stream-cache-1h
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
anthropic.usage.cache_creation.ephemeral_1h_input_tokens1879
anthropic.usage.cache_creation.ephemeral_5m_input_tokens613
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.039357039
gen_ai.usage.cache_read.input_tokens3217
gen_ai.usage.cache_write.input_tokens2492
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-cache-1h/v1/messages
url.path/s/anthropic--stream-cache-1h/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_scache1h
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.03338789000008546
gen_ai.usage.cache_read.input_tokens3217
gen_ai.usage.cache_write.input_tokens2492
gen_ai.usage.input_tokens7160
gen_ai.usage.output_tokens523
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/stream-cache-cumulative · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.00961 on the wire, $0.0192 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/stream-cache-cumulative
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_cumul
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.044871922
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.cache_write.input_tokens811
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-cache-cumulative/v1/messages
url.path/s/anthropic--stream-cache-cumulative/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_cumul
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.03754418399989845
gen_ai.usage.cache_read.input_tokens3583
gen_ai.usage.cache_write.input_tokens811
gen_ai.usage.input_tokens5673
gen_ai.usage.output_tokens467
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/stream-cache-hit · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.0107 on the wire, $0.0213 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/stream-cache-hit
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.043854165
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.cache_write.input_tokens737
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-cache-hit/v1/messages
url.path/s/anthropic--stream-cache-hit/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_scache
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.036997030000065934
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.cache_write.input_tokens737
gen_ai.usage.input_tokens8424
gen_ai.usage.output_tokens511
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/stream-content-off · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.00881 on the wire, $0.0176 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/stream-content-off
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.043917092
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-content-off/v1/messages
url.path/s/anthropic--stream-content-off/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.038220766999984335
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/stream-content-on · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.00881 on the wire, $0.0176 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/stream-content-on
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.043402346
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-content-on/v1/messages
url.path/s/anthropic--stream-content-on/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.input.messages[{"role":"user","parts":[{"content":"What is the capital of France?","type":"text"}],"name":null}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"content":"The capital of France is Paris.","type":"text"}],"finish_reason":"stop","name":null}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_stream
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.036273044000154187
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/stream-early-exit · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/stream-early-exit
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_early
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1913
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-early-exit/v1/messages
url.path/s/anthropic--stream-early-exit/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_early
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.03784291099987058
gen_ai.usage.input_tokens1913
gen_ai.usage.output_tokens1
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/stream-early-exit-with · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/stream-early-exit-with
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_early
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1913
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-early-exit-with/v1/messages
url.path/s/anthropic--stream-early-exit-with/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_early
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.03890451999996003
gen_ai.usage.input_tokens1913
gen_ai.usage.output_tokens1
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/stream-thinking · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.0181 on the wire, $0.0361 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/stream-thinking
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.046003129
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.reasoning.output_tokens1103
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-thinking/v1/messages
url.path/s/anthropic--stream-thinking/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.040220973000032245
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.reasoning.output_tokens1103
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/stream-tool-call · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.00521 on the wire, $0.0104 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/stream-tool-call
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasontool_use
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.idmsg_wt_stools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.043635902
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--stream-tool-call/v1/messages
url.path/s/anthropic--stream-tool-call/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.request.streamTrue
gen_ai.response.finish_reasons['tool_call']
gen_ai.response.idmsg_wt_stools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.time_to_first_chunk0.037622223999960624
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/thinking · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.016 on the wire, $0.032 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/thinking
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasonend_turn
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.reasoning.output_tokens947
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--thinking/v1/messages
url.path/s/anthropic--thinking/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
gen_ai.usage.reasoning.output_tokens947
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

wrong otel-official-sdk-on · anthropic/tool-call · tokens.single-reportDouble span #
expected 1, reported 2: usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Expected
1
Reported
2
Note
usage on 2 spans: anthropic.messages.create, chat claude-sonnet-5-5
Cost
$0.00274 on the wire, $0.00548 from the spans (+100%), at list price.
Reproduce
spantruth run --subject otel-official-sdk-on --scenario anthropic/tool-call
Rule
spantruth rule: one call reports its token usage on one span. Usage on two spans of one call is counted twice by any backend that sums token attributes across spans.
Exported spans (3)

anthropic.messages.create com.anthropic.sdk.python, status OK

anthropic.message.stop_reasontool_use
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_tools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.cache_write.input_tokens0
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
http.request.methodPOST
http.response.status_code200
http.route/v1/messages
server.address127.0.0.1
server.port37565
url.fullhttp://127.0.0.1:37565/s/anthropic--tool-call/v1/messages
url.path/s/anthropic--tool-call/v1/messages
url.schemehttp

chat claude-sonnet-5-5 opentelemetry.instrumentation.genai.anthropic, status UNSET

gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['tool_call']
gen_ai.response.idmsg_wt_tools
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
server.address127.0.0.1
server.port37565

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · anthropic/async-stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject pydantic-ai --scenario anthropic/async-stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (3)

chat claude-sonnet-5-5 pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d19-5894-7381-b6d8-24e8a3d53019
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.04474544799995783
gen_ai.conversation.id01a21d19-5894-7381-b6d8-24e960b585db
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital"}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_drop
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.details.cache_creation_input_tokens0
gen_ai.usage.details.cache_read_input_tokens0
gen_ai.usage.input_tokens1427
gen_ai.usage.output_tokens1
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
operation.cost0.002864
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d19-5894-7381-b6d8-24e8a3d53019
gen_ai.agent.nameagent
gen_ai.aggregated_usage.details.cache_creation_input_tokens0
gen_ai.aggregated_usage.details.cache_read_input_tokens0
gen_ai.aggregated_usage.input_tokens1427
gen_ai.aggregated_usage.output_tokens1
gen_ai.conversation.id01a21d19-5894-7381-b6d8-24e960b585db
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_nameclaude-sonnet-5-5
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · anthropic/async-stream-error-event · error.typeFalse OK #
Reproduce
spantruth run --subject pydantic-ai --scenario anthropic/async-stream-error-event
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (3)

chat claude-sonnet-5-5 pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d19-41da-7526-bedf-6a3207df49c9
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.0382460450000508
gen_ai.conversation.id01a21d19-41da-7526-bedf-6a3310823a6a
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital"}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_overload
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.details.cache_creation_input_tokens0
gen_ai.usage.details.cache_read_input_tokens0
gen_ai.usage.input_tokens1301
gen_ai.usage.output_tokens1
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
operation.cost0.002612
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d19-41da-7526-bedf-6a3207df49c9
gen_ai.agent.nameagent
gen_ai.aggregated_usage.details.cache_creation_input_tokens0
gen_ai.aggregated_usage.details.cache_read_input_tokens0
gen_ai.aggregated_usage.input_tokens1301
gen_ai.aggregated_usage.output_tokens1
gen_ai.conversation.id01a21d19-41da-7526-bedf-6a3310823a6a
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_nameclaude-sonnet-5-5
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · anthropic/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject pydantic-ai --scenario anthropic/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (3)

chat claude-sonnet-5-5 pydantic-ai, status ERROR

gen_ai.agent.call.id01a21d18-3bf2-746a-8c91-1465718cbc7b
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d18-3bf2-746a-8c91-14664752a272
gen_ai.operation.namechat
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.systemanthropic
logfire.json_schema{"type":"object","properties":{"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d18-3bf2-746a-8c91-1465718cbc7b
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d18-3bf2-746a-8c91-14664752a272
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_nameclaude-sonnet-5-5
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · anthropic/stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject pydantic-ai --scenario anthropic/stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (3)

chat claude-sonnet-5-5 pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d18-6bae-7305-b80e-4fd1a940e12c
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.045621645999972316
gen_ai.conversation.id01a21d18-6bae-7305-b80e-4fd2e968fdd3
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital"}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_drop
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.details.cache_creation_input_tokens0
gen_ai.usage.details.cache_read_input_tokens0
gen_ai.usage.input_tokens1427
gen_ai.usage.output_tokens1
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
operation.cost0.002864
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d18-6bae-7305-b80e-4fd1a940e12c
gen_ai.agent.nameagent
gen_ai.aggregated_usage.details.cache_creation_input_tokens0
gen_ai.aggregated_usage.details.cache_read_input_tokens0
gen_ai.aggregated_usage.input_tokens1427
gen_ai.aggregated_usage.output_tokens1
gen_ai.conversation.id01a21d18-6bae-7305-b80e-4fd2e968fdd3
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_nameclaude-sonnet-5-5
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · anthropic/stream-error-event · error.typeFalse OK #
Reproduce
spantruth run --subject pydantic-ai --scenario anthropic/stream-error-event
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (3)

chat claude-sonnet-5-5 pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d17-f0ac-768b-b3f3-15d09931efcc
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.0452313220000633
gen_ai.conversation.id01a21d17-f0ac-768b-b3f3-15d13dc66900
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital"}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_overload
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.details.cache_creation_input_tokens0
gen_ai.usage.details.cache_read_input_tokens0
gen_ai.usage.input_tokens1301
gen_ai.usage.output_tokens1
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
operation.cost0.002612
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d17-f0ac-768b-b3f3-15d09931efcc
gen_ai.agent.nameagent
gen_ai.aggregated_usage.details.cache_creation_input_tokens0
gen_ai.aggregated_usage.details.cache_read_input_tokens0
gen_ai.aggregated_usage.input_tokens1301
gen_ai.aggregated_usage.output_tokens1
gen_ai.conversation.id01a21d17-f0ac-768b-b3f3-15d13dc66900
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_nameclaude-sonnet-5-5
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · anthropic/stream-thinking · reasoning_tokensHidden reasoning #
expected 1103, reported nothing
Expected
1103
Reproduce
spantruth run --subject pydantic-ai --scenario anthropic/stream-thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

chat claude-sonnet-5-5 pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d18-9b69-7416-b3e4-70ad4c929aef
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.04477586699999847
gen_ai.conversation.id01a21d18-9b69-7416-b3e4-70aefae6d676
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"thinking","content":"Let me think about the capital of France. The capital is Paris."},{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.details.cache_creation_input_tokens0
gen_ai.usage.details.cache_read_input_tokens0
gen_ai.usage.details.thinking_tokens1103
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
operation.cost0.018052
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status UNSET

agent_nameagent
final_resultThe capital of France is Paris.
gen_ai.agent.call.id01a21d18-9b69-7416-b3e4-70ad4c929aef
gen_ai.agent.nameagent
gen_ai.aggregated_usage.details.cache_creation_input_tokens0
gen_ai.aggregated_usage.details.cache_read_input_tokens0
gen_ai.aggregated_usage.details.thinking_tokens1103
gen_ai.aggregated_usage.input_tokens1831
gen_ai.aggregated_usage.output_tokens1439
gen_ai.conversation.id01a21d18-9b69-7416-b3e4-70aefae6d676
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_nameclaude-sonnet-5-5
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]},{"role":"assistant","parts":[{"type":"thinking","content":"Let me think about the capital of France. The capital is Paris."},{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · anthropic/thinking · reasoning_tokensHidden reasoning #
expected 947, reported nothing
Expected
947
Reproduce
spantruth run --subject pydantic-ai --scenario anthropic/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

chat claude-sonnet-5-5 pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d18-8356-71d4-a41c-dcca5ed1e8ac
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d18-8356-71d4-a41c-dccba2852bda
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"thinking","content":"Let me think about the capital of France. The capital of France is Paris."},{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['stop']
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.systemanthropic
gen_ai.usage.details.cache_creation_input_tokens0
gen_ai.usage.details.cache_read_input_tokens0
gen_ai.usage.details.thinking_tokens947
gen_ai.usage.input_tokens1627
gen_ai.usage.output_tokens1273
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
operation.cost0.015984
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status UNSET

agent_nameagent
final_resultThe capital of France is Paris.
gen_ai.agent.call.id01a21d18-8356-71d4-a41c-dcca5ed1e8ac
gen_ai.agent.nameagent
gen_ai.aggregated_usage.details.cache_creation_input_tokens0
gen_ai.aggregated_usage.details.cache_read_input_tokens0
gen_ai.aggregated_usage.details.thinking_tokens947
gen_ai.aggregated_usage.input_tokens1627
gen_ai.aggregated_usage.output_tokens1273
gen_ai.conversation.id01a21d18-8356-71d4-a41c-dccba2852bda
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_nameclaude-sonnet-5-5
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]},{"role":"assistant","parts":[{"type":"thinking","content":"Let me think about the capital of France. The capital of France is Paris."},{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · openai/async-stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject pydantic-ai --scenario openai/async-stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (3)

chat gpt-5-mini pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d18-e049-7575-bb9c-7eca2b136765
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.023190195999859498
gen_ai.conversation.id01a21d18-e049-7575-bb9c-7ecb050096c5
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France"}]}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.idchatcmpl-wt-drop
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d18-e049-7575-bb9c-7eca2b136765
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d18-e049-7575-bb9c-7ecb050096c5
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_namegpt-5-mini
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · openai/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject pydantic-ai --scenario openai/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (3)

chat gpt-5-mini pydantic-ai, status ERROR

gen_ai.agent.call.id01a21d16-d4d8-710d-980d-3e410a3e5792
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d16-d4d8-710d-980d-3e42921f5ce9
gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d16-d4d8-710d-980d-3e410a3e5792
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d16-d4d8-710d-980d-3e42921f5ce9
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_namegpt-5-mini
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · openai/reasoning · reasoning_tokensHidden reasoning #
expected 1792, reported nothing
Expected
1792
Reproduce
spantruth run --subject pydantic-ai --scenario openai/reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

chat gpt-5-mini pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d17-0b68-75cd-b956-2ecb7aa1f230
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d17-0b68-75cd-b956-2ecc99d4eaba
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-reason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.details.accepted_prediction_tokens0
gen_ai.usage.details.audio_tokens0
gen_ai.usage.details.reasoning_tokens1792
gen_ai.usage.details.rejected_prediction_tokens0
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status UNSET

agent_nameagent
final_resultThe capital of France is Paris.
gen_ai.agent.call.id01a21d17-0b68-75cd-b956-2ecb7aa1f230
gen_ai.agent.nameagent
gen_ai.aggregated_usage.details.accepted_prediction_tokens0
gen_ai.aggregated_usage.details.audio_tokens0
gen_ai.aggregated_usage.details.reasoning_tokens1792
gen_ai.aggregated_usage.details.rejected_prediction_tokens0
gen_ai.aggregated_usage.input_tokens1601
gen_ai.aggregated_usage.output_tokens2219
gen_ai.conversation.id01a21d17-0b68-75cd-b956-2ecc99d4eaba
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_namegpt-5-mini
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]},{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · openai/responses-stream-missing-finish-abort · error.typeFalse OK #
Reproduce
spantruth run --subject pydantic-ai --scenario openai/responses-stream-missing-finish-abort
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (3)

chat gpt-6-luna pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d19-6b88-77b4-8e63-36d45fb5c1f5
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.10198341900013475
gen_ai.conversation.id01a21d19-6b88-77b4-8e63-36d5fc7c3599
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"Octopuses change"}]}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-6-luna
gen_ai.response.idresp_025c23fff6653590006acbfc0086cc87d18124e70e8d3ff838
gen_ai.response.modelgpt-6-luna
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
operation.cost0.0
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d19-6b88-77b4-8e63-36d45fb5c1f5
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d19-6b88-77b4-8e63-36d5fc7c3599
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_namegpt-6-luna
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · openai/stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject pydantic-ai --scenario openai/stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (3)

chat gpt-5-mini pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d16-f9ee-7231-a985-05470b9729cf
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.022227591000046232
gen_ai.conversation.id01a21d16-f9ee-7231-a985-05484e6b22cd
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France"}]}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.idchatcmpl-wt-drop
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d16-f9ee-7231-a985-05470b9729cf
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d16-f9ee-7231-a985-05484e6b22cd
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_namegpt-5-mini
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]

spantruth.scenario spantruth.driver, status UNSET

missing pydantic-ai · openai/stream-reasoning · reasoning_tokensHidden reasoning #
expected 1931, reported nothing
Expected
1931
Reproduce
spantruth run --subject pydantic-ai --scenario openai/stream-reasoning
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (3)

chat gpt-5-mini pydantic-ai, status UNSET

gen_ai.agent.call.id01a21d17-1ca3-74d0-9890-0d2692408a52
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.02083233000007567
gen_ai.conversation.id01a21d17-1ca3-74d0-9890-0d27ceee5eef
gen_ai.input.messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]}]
gen_ai.operation.namechat
gen_ai.output.messages[{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]
gen_ai.provider.nameopenai
gen_ai.request.modelgpt-5-mini
gen_ai.response.finish_reasons['stop']
gen_ai.response.idchatcmpl-wt-sreason
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.systemopenai
gen_ai.usage.details.accepted_prediction_tokens0
gen_ai.usage.details.audio_tokens0
gen_ai.usage.details.reasoning_tokens1931
gen_ai.usage.details.rejected_prediction_tokens0
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
logfire.json_schema{"type":"object","properties":{"gen_ai.input.messages":{"type":"array"},"gen_ai.output.messages":{"type":"array"},"model_request_parameters":{"type":"object"}}}
model_request_parameters{"function_tools":[],"native_tools":[],"tool_visibility":{},"revealed_tool_names":[],"introduced_tool_names":[],"deferred_capability_ids":[],"deferred_capabilities":[],"output_mode":"text","output_object":null,"output_tools":[],"prompted_output_template":null,"allow_text_output":true,"allow_image_output":false,"instruction_parts":null,"instruction_visibility":null,"thinking":null,"cache":null}
server.address127.0.0.1
server.port37565

invoke_agent agent pydantic-ai, status UNSET

agent_nameagent
final_resultThe capital of France is Paris.
gen_ai.agent.call.id01a21d17-1ca3-74d0-9890-0d2692408a52
gen_ai.agent.nameagent
gen_ai.aggregated_usage.details.accepted_prediction_tokens0
gen_ai.aggregated_usage.details.audio_tokens0
gen_ai.aggregated_usage.details.reasoning_tokens1931
gen_ai.aggregated_usage.details.rejected_prediction_tokens0
gen_ai.aggregated_usage.input_tokens2089
gen_ai.aggregated_usage.output_tokens2459
gen_ai.conversation.id01a21d17-1ca3-74d0-9890-0d27ceee5eef
gen_ai.operation.nameinvoke_agent
logfire.json_schema{"type":"object","properties":{"pydantic_ai.all_messages":{"type":"array"},"final_result":{"type":"object"}}}
logfire.msgagent run
model_namegpt-5-mini
pydantic_ai.all_messages[{"role":"user","parts":[{"type":"text","content":"What is the capital of France?"}]},{"role":"assistant","parts":[{"type":"text","content":"The capital of France is Paris."}],"finish_reason":"stop"}]

spantruth.scenario spantruth.driver, status UNSET

missing sentry · anthropic/async-stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject sentry --scenario anthropic/async-stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

chat claude-sonnet-5-5 sentry_sdk.adapter, status ERROR

gen_ai.operation.namechat
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_drop
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.streamingTrue
gen_ai.systemanthropic
gen_ai.usage.input_tokens1427
gen_ai.usage.input_tokens.cache_write0
gen_ai.usage.input_tokens.cached0
gen_ai.usage.output_tokens1
gen_ai.usage.total_tokens1428
thread.id135212377163648
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · anthropic/async-stream-error-event · error.typeFalse OK #
Reproduce
spantruth run --subject sentry --scenario anthropic/async-stream-error-event
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

chat claude-sonnet-5-5 sentry_sdk.adapter, status ERROR

gen_ai.operation.namechat
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_overload
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.streamingTrue
gen_ai.systemanthropic
gen_ai.usage.input_tokens1301
gen_ai.usage.input_tokens.cache_write0
gen_ai.usage.input_tokens.cached0
gen_ai.usage.output_tokens1
gen_ai.usage.total_tokens1302
thread.id140030967474048
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · anthropic/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject sentry --scenario anthropic/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

chat claude-sonnet-5-5 sentry_sdk.adapter, status ERROR

gen_ai.operation.namechat
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.streamingFalse
gen_ai.systemanthropic
thread.id134943307818880
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · anthropic/stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject sentry --scenario anthropic/stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

chat claude-sonnet-5-5 sentry_sdk.adapter, status ERROR

gen_ai.operation.namechat
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_drop
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.streamingTrue
gen_ai.systemanthropic
gen_ai.usage.input_tokens1427
gen_ai.usage.input_tokens.cache_write0
gen_ai.usage.input_tokens.cached0
gen_ai.usage.output_tokens1
gen_ai.usage.total_tokens1428
thread.id131373968152448
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · anthropic/stream-error-event · error.typeFalse OK #
Reproduce
spantruth run --subject sentry --scenario anthropic/stream-error-event
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

chat claude-sonnet-5-5 sentry_sdk.adapter, status ERROR

gen_ai.operation.namechat
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.idmsg_wt_overload
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.streamingTrue
gen_ai.systemanthropic
gen_ai.usage.input_tokens1301
gen_ai.usage.input_tokens.cache_write0
gen_ai.usage.input_tokens.cached0
gen_ai.usage.output_tokens1
gen_ai.usage.total_tokens1302
thread.id127109202753408
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · anthropic/stream-thinking · reasoning_tokensHidden reasoning #
expected 1103, reported nothing
Expected
1103
Reproduce
spantruth run --subject sentry --scenario anthropic/stream-thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

chat claude-sonnet-5-5 sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_sthink
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.streamingTrue
gen_ai.systemanthropic
gen_ai.usage.input_tokens1831
gen_ai.usage.input_tokens.cache_write0
gen_ai.usage.input_tokens.cached0
gen_ai.usage.output_tokens1439
gen_ai.usage.total_tokens3270
thread.id133125328627584
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · anthropic/thinking · reasoning_tokensHidden reasoning #
expected 947, reported nothing
Expected
947
Reproduce
spantruth run --subject sentry --scenario anthropic/thinking
Rule
Output tokens used for reasoning. For Anthropic, thinking tokens reported in `output_tokens_details` map to this count. OpenInference records them as `llm.token_count.completion_details.reasoning`.
Exported spans (2)

chat claude-sonnet-5-5 sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.max_tokens1024
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.finish_reasons['end_turn']
gen_ai.response.idmsg_wt_thinking
gen_ai.response.modelclaude-sonnet-5-5-20260915
gen_ai.response.streamingFalse
gen_ai.systemanthropic
gen_ai.usage.input_tokens1627
gen_ai.usage.input_tokens.cache_write0
gen_ai.usage.input_tokens.cached0
gen_ai.usage.output_tokens1273
gen_ai.usage.total_tokens2900
thread.id139283409143680
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · azure/async-basic · response_id #
expected chatcmpl-wt-azbasic, reported nothing
Expected
chatcmpl-wt-azbasic
Reproduce
spantruth run --subject sentry --scenario azure/async-basic
Rule
The unique identifier of the completion.
Exported spans (2)

chat wt-chat-deployment sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
thread.id139553704486784
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · azure/async-basic · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario azure/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat wt-chat-deployment sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
thread.id139553704486784
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · azure/async-stream · response_id #
expected chatcmpl-wt-azstream, reported nothing
Expected
chatcmpl-wt-azstream
Reproduce
spantruth run --subject sentry --scenario azure/async-stream
Rule
The unique identifier of the completion.
Exported spans (2)

chat wt-chat-deployment sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.04477913000005174
gen_ai.systemopenai
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.total_tokens2774
thread.id132504177592192
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · azure/async-stream · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario azure/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat wt-chat-deployment sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.04477913000005174
gen_ai.systemopenai
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.total_tokens2774
thread.id132504177592192
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · azure/basic · response_id #
expected chatcmpl-wt-azbasic, reported nothing
Expected
chatcmpl-wt-azbasic
Reproduce
spantruth run --subject sentry --scenario azure/basic
Rule
The unique identifier of the completion.
Exported spans (2)

chat wt-chat-deployment sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
thread.id134924325078912
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · azure/basic · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario azure/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat wt-chat-deployment sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
thread.id134924325078912
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · azure/stream · response_id #
expected chatcmpl-wt-azstream, reported nothing
Expected
chatcmpl-wt-azstream
Reproduce
spantruth run --subject sentry --scenario azure/stream
Rule
The unique identifier of the completion.
Exported spans (2)

chat wt-chat-deployment sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.011517281000124058
gen_ai.systemopenai
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.total_tokens2774
thread.id138660416759680
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · azure/stream · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario azure/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat wt-chat-deployment sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelwt-chat-deployment
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.011517281000124058
gen_ai.systemopenai
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.total_tokens2774
thread.id138660416759680
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/async-stream · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject sentry --scenario gemini/async-stream
Rule
The name of the model that generated the response.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
thread.id129701982259072
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/async-stream · response_id #
expected wt-gemini-stream, reported nothing
Expected
wt-gemini-stream
Reproduce
spantruth run --subject sentry --scenario gemini/async-stream
Rule
The unique identifier of the completion.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
thread.id129701982259072
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/async-stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject sentry --scenario gemini/async-stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status ERROR

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens1439
gen_ai.usage.output_tokens204
gen_ai.usage.total_tokens1643
thread.id130590017832832
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/async-stream-early-exit · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject sentry --scenario gemini/async-stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
thread.id127129389348736
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/async-stream-early-exit · response_id #
expected wt-gemini-early, reported nothing
Expected
wt-gemini-early
Reproduce
spantruth run --subject sentry --scenario gemini/async-stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
thread.id127129389348736
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject sentry --scenario gemini/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status ERROR

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.systemgcp.gemini
thread.id124353287501696
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/stream · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject sentry --scenario gemini/stream
Rule
The name of the model that generated the response.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
thread.id129881853745024
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/stream · response_id #
expected wt-gemini-stream, reported nothing
Expected
wt-gemini-stream
Reproduce
spantruth run --subject sentry --scenario gemini/stream
Rule
The unique identifier of the completion.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
thread.id129881853745024
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/stream-cache-hit · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject sentry --scenario gemini/stream-cache-hit
Rule
The name of the model that generated the response.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens7229
gen_ai.usage.input_tokens.cached6151
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7752
thread.id136713774868352
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/stream-cache-hit · response_id #
expected wt-gemini-scache, reported nothing
Expected
wt-gemini-scache
Reproduce
spantruth run --subject sentry --scenario gemini/stream-cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens7229
gen_ai.usage.input_tokens.cached6151
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7752
thread.id136713774868352
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/stream-dropped · error.typeFalse OK #
Reproduce
spantruth run --subject sentry --scenario gemini/stream-dropped
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status ERROR

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens1439
gen_ai.usage.output_tokens204
gen_ai.usage.total_tokens1643
thread.id126358328956800
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/stream-early-exit · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject sentry --scenario gemini/stream-early-exit
Rule
The name of the model that generated the response.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
thread.id129872198821760
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/stream-early-exit · response_id #
expected wt-gemini-early, reported nothing
Expected
wt-gemini-early
Reproduce
spantruth run --subject sentry --scenario gemini/stream-early-exit
Rule
The unique identifier of the completion.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
thread.id129872198821760
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/stream-thinking · response_model #
expected gemini-3.5-flash-lite, reported nothing
Expected
gemini-3.5-flash-lite
Reproduce
spantruth run --subject sentry --scenario gemini/stream-thinking
Rule
The name of the model that generated the response.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens2316
gen_ai.usage.output_tokens.reasoning1999
gen_ai.usage.total_tokens4399
thread.id128960930248576
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · gemini/stream-thinking · response_id #
expected wt-gemini-sthink, reported nothing
Expected
wt-gemini-sthink
Reproduce
spantruth run --subject sentry --scenario gemini/stream-thinking
Rule
The unique identifier of the completion.
Exported spans (2)

chat gemini-3.5-flash-lite sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.systemgcp.gemini
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens2316
gen_ai.usage.output_tokens.reasoning1999
gen_ai.usage.total_tokens4399
thread.id128960930248576
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/agent-loop · response_id #
expected chatcmpl-wt-loop1, reported nothing: call 1 of 3; failed on calls 1, 2, 3
Expected
chatcmpl-wt-loop1
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject sentry --scenario openai/agent-loop
Rule
The unique identifier of the completion.
Exported spans (4)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.total_tokens1268
thread.id126446165886848
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1307
gen_ai.usage.input_tokens.cached1093
gen_ai.usage.output_tokens89
gen_ai.usage.total_tokens1396
thread.id126446165886848
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1459
gen_ai.usage.input_tokens.cached1279
gen_ai.usage.output_tokens211
gen_ai.usage.total_tokens1670
thread.id126446165886848
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/agent-loop · finish_reasonsSilent stop #
expected tool_calls, reported nothing: call 1 of 3; failed on calls 1, 2, 3
Expected
['tool_calls']
Note
call 1 of 3; failed on calls 1, 2, 3
Reproduce
spantruth run --subject sentry --scenario openai/agent-loop
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (4)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1171
gen_ai.usage.output_tokens97
gen_ai.usage.total_tokens1268
thread.id126446165886848
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1307
gen_ai.usage.input_tokens.cached1093
gen_ai.usage.output_tokens89
gen_ai.usage.total_tokens1396
thread.id126446165886848
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1459
gen_ai.usage.input_tokens.cached1279
gen_ai.usage.output_tokens211
gen_ai.usage.total_tokens1670
thread.id126446165886848
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-basic · response_id #
expected chatcmpl-wt-basic, reported nothing
Expected
chatcmpl-wt-basic
Reproduce
spantruth run --subject sentry --scenario openai/async-basic
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
thread.id125878441392000
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-basic · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/async-basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
thread.id125878441392000
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-concurrent-streams · response_id #
expected chatcmpl-wt-par1, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
chatcmpl-wt-par1
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject sentry --scenario openai/async-concurrent-streams
Rule
The unique identifier of the completion.
Exported spans (3)

chat gpt-5-nano sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-nano
gen_ai.response.modelgpt-5-nano-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.046136227999795665
gen_ai.systemopenai
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.total_tokens1928
thread.id133200440121216
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.049519235999923694
gen_ai.systemopenai
gen_ai.usage.input_tokens1033
gen_ai.usage.input_tokens.cached769
gen_ai.usage.output_tokens149
gen_ai.usage.total_tokens1182
thread.id133200440121216
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-concurrent-streams · finish_reasonsSilent stop #
expected stop, reported nothing: call 1 of 2; failed on calls 1, 2
Expected
['stop']
Note
call 1 of 2; failed on calls 1, 2
Reproduce
spantruth run --subject sentry --scenario openai/async-concurrent-streams
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (3)

chat gpt-5-nano sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-nano
gen_ai.response.modelgpt-5-nano-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.046136227999795665
gen_ai.systemopenai
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.total_tokens1928
thread.id133200440121216
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.049519235999923694
gen_ai.systemopenai
gen_ai.usage.input_tokens1033
gen_ai.usage.input_tokens.cached769
gen_ai.usage.output_tokens149
gen_ai.usage.total_tokens1182
thread.id133200440121216
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-stream · response_id #
expected chatcmpl-wt-stream, reported nothing
Expected
chatcmpl-wt-stream
Reproduce
spantruth run --subject sentry --scenario openai/async-stream
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.0459244779999608
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
thread.id136653762324352
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-stream · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/async-stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.0459244779999608
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
thread.id136653762324352
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

lost sentry · openai/async-stream-dropped · span.endedGhost span #
never ended: gen_ai.chat
Note
never ended: gen_ai.chat
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/async-stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost sentry · openai/async-stream-early-exit · span.endedGhost span #
never ended: gen_ai.chat
Note
never ended: gen_ai.chat
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/async-stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/async-stream-helper
Rule
The name of the model that generated the response.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
gen_ai.systemopenai
thread.id130462825265024
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-stream-helper · response_id #
expected chatcmpl-wt-shelper, reported nothing
Expected
chatcmpl-wt-shelper
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/async-stream-helper
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
gen_ai.systemopenai
thread.id130462825265024
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-stream-helper · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/async-stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
gen_ai.systemopenai
thread.id130462825265024
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-stream-helper · input_tokensVanishing tokens #
expected 2137, reported nothing
Expected
2137
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/async-stream-helper
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
gen_ai.systemopenai
thread.id130462825265024
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/async-stream-helper · output_tokensVanishing tokens #
expected 313, reported nothing
Expected
313
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/async-stream-helper
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
gen_ai.systemopenai
thread.id130462825265024
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/basic · response_id #
expected chatcmpl-wt-basic, reported nothing
Expected
chatcmpl-wt-basic
Reproduce
spantruth run --subject sentry --scenario openai/basic
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
thread.id140111190693760
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/basic · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/basic
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
thread.id140111190693760
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/cache-hit · response_id #
expected chatcmpl-wt-cache, reported nothing
Expected
chatcmpl-wt-cache
Reproduce
spantruth run --subject sentry --scenario openai/cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens5379
gen_ai.usage.input_tokens.cached4096
gen_ai.usage.output_tokens377
gen_ai.usage.total_tokens5756
thread.id123976127162240
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/cache-hit · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens5379
gen_ai.usage.input_tokens.cached4096
gen_ai.usage.output_tokens377
gen_ai.usage.total_tokens5756
thread.id123976127162240
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/cache-write · response_id #
expected chatcmpl-wt-cwrite, reported nothing
Expected
chatcmpl-wt-cwrite
Cost
$0.00147 on the wire, $0.00131 from the spans (-10.8%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/cache-write
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5.6-luna sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens6619
gen_ai.usage.input_tokens.cached2753
gen_ai.usage.output_tokens401
gen_ai.usage.total_tokens7020
thread.id136515648817024
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/cache-write · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Cost
$0.00147 on the wire, $0.00131 from the spans (-10.8%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/cache-write
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5.6-luna sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens6619
gen_ai.usage.input_tokens.cached2753
gen_ai.usage.output_tokens401
gen_ai.usage.total_tokens7020
thread.id136515648817024
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/cache-write · cache_write_tokensCache-blind tokens #
expected 3181, reported nothing
Expected
3181
Cost
$0.00147 on the wire, $0.00131 from the spans (-10.8%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/cache-write
Rule
Input tokens written to the provider cache.
Exported spans (2)

chat gpt-5.6-luna sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens6619
gen_ai.usage.input_tokens.cached2753
gen_ai.usage.output_tokens401
gen_ai.usage.total_tokens7020
thread.id136515648817024
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-extra-cache-fields · response_id #
expected 9f3c2a71-5b8e-4d0a-a6c4-2e17d8b0f5a3, reported nothing
Expected
9f3c2a71-5b8e-4d0a-a6c4-2e17d8b0f5a3
Reproduce
spantruth run --subject sentry --scenario openai/compat-extra-cache-fields
Rule
The unique identifier of the completion.
Exported spans (2)

chat deepseek-flash sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modeldeepseek-flash
gen_ai.response.modeldeepseek-flash
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1931
gen_ai.usage.input_tokens.cached1408
gen_ai.usage.output_tokens397
gen_ai.usage.total_tokens2328
thread.id129105148254080
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-extra-cache-fields · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/compat-extra-cache-fields
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat deepseek-flash sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modeldeepseek-flash
gen_ai.response.modeldeepseek-flash
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1931
gen_ai.usage.input_tokens.cached1408
gen_ai.usage.output_tokens397
gen_ai.usage.total_tokens2328
thread.id129105148254080
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-extra-timing-fields · response_id #
expected chatcmpl-f51b2cd2-bef7-417e-964e-a08f0b513c22, reported nothing
Expected
chatcmpl-f51b2cd2-bef7-417e-964e-a08f0b513c22
Reproduce
spantruth run --subject sentry --scenario openai/compat-extra-timing-fields
Rule
The unique identifier of the completion.
Exported spans (2)

chat llama-3.3-70b-versatile sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelllama-3.3-70b-versatile
gen_ai.response.modelopenai/gpt-oss-20b
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
gen_ai.usage.total_tokens574
thread.id138053651613568
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-extra-timing-fields · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/compat-extra-timing-fields
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat llama-3.3-70b-versatile sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelllama-3.3-70b-versatile
gen_ai.response.modelopenai/gpt-oss-20b
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
gen_ai.usage.total_tokens574
thread.id138053651613568
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-no-details · response_id #
expected chatcmpl-wt-cnodet, reported nothing
Expected
chatcmpl-wt-cnodet
Reproduce
spantruth run --subject sentry --scenario openai/compat-no-details
Rule
The unique identifier of the completion.
Exported spans (2)

chat qwen3.5-27b sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1129
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens1370
thread.id132866607265664
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-no-details · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/compat-no-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat qwen3.5-27b sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1129
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens1370
thread.id132866607265664
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-null-details · response_id #
expected chatcmpl-wt-cnull, reported nothing
Expected
chatcmpl-wt-cnull
Reproduce
spantruth run --subject sentry --scenario openai/compat-null-details
Rule
The unique identifier of the completion.
Exported spans (2)

chat qwen3.5-27b sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
thread.id125100780177280
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-null-details · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/compat-null-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat qwen3.5-27b sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
thread.id125100780177280
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-partial-details · response_id #
expected chatcmpl-54, reported nothing
Expected
chatcmpl-54
Reproduce
spantruth run --subject sentry --scenario openai/compat-partial-details
Rule
The unique identifier of the completion.
Exported spans (2)

chat qwen3.5:0.8b sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelqwen3.5:0.8b
gen_ai.response.modelqwen3.5:0.8b
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens32
gen_ai.usage.input_tokens.cached28
gen_ai.usage.output_tokens16
gen_ai.usage.total_tokens48
thread.id136780747642752
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-partial-details · finish_reasonsSilent stop #
expected length, reported nothing
Expected
['length']
Reproduce
spantruth run --subject sentry --scenario openai/compat-partial-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat qwen3.5:0.8b sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelqwen3.5:0.8b
gen_ai.response.modelqwen3.5:0.8b
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens32
gen_ai.usage.input_tokens.cached28
gen_ai.usage.output_tokens16
gen_ai.usage.total_tokens48
thread.id136780747642752
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-stream-no-details · response_id #
expected chatcmpl-wt-csnodet, reported nothing
Expected
chatcmpl-wt-csnodet
Reproduce
spantruth run --subject sentry --scenario openai/compat-stream-no-details
Rule
The unique identifier of the completion.
Exported spans (2)

chat qwen3.5-27b sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.010364758000150687
gen_ai.systemopenai
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.total_tokens1654
thread.id125111000872832
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-stream-no-details · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/compat-stream-no-details
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat qwen3.5-27b sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.010364758000150687
gen_ai.systemopenai
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.total_tokens1654
thread.id125111000872832
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-stream-usage-on-finish · response_id #
expected chatcmpl-wt-csfinish, reported nothing
Expected
chatcmpl-wt-csfinish
Reproduce
spantruth run --subject sentry --scenario openai/compat-stream-usage-on-finish
Rule
The unique identifier of the completion.
Exported spans (2)

chat qwen3.5-27b sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.010767654000119364
gen_ai.systemopenai
gen_ai.usage.input_tokens1489
gen_ai.usage.input_tokens.cached1063
gen_ai.usage.output_tokens331
gen_ai.usage.total_tokens1820
thread.id133921031616384
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/compat-stream-usage-on-finish · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/compat-stream-usage-on-finish
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat qwen3.5-27b sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.010767654000119364
gen_ai.systemopenai
gen_ai.usage.input_tokens1489
gen_ai.usage.input_tokens.cached1063
gen_ai.usage.output_tokens331
gen_ai.usage.total_tokens1820
thread.id133921031616384
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/content-off · response_id #
expected chatcmpl-wt-basic, reported nothing
Expected
chatcmpl-wt-basic
Reproduce
spantruth run --subject sentry --scenario openai/content-off
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
thread.id140303145650048
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/content-off · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
thread.id140303145650048
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/content-on · response_id #
expected chatcmpl-wt-basic, reported nothing
Expected
chatcmpl-wt-basic
Reproduce
spantruth run --subject sentry --scenario openai/content-on
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "The capital of France is Paris.", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "tool_calls": "None"}
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
thread.id140349937158016
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/content-on · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "The capital of France is Paris.", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "tool_calls": "None"}
gen_ai.systemopenai
gen_ai.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
thread.id140349937158016
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/rate-limited · error.typeFalse OK #
Reproduce
spantruth run --subject sentry --scenario openai/rate-limited
Rule
`error.type` is conditionally required if the operation ended in an error. Any low-cardinality identifier is allowed, so only its presence is graded.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status ERROR

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingFalse
gen_ai.systemopenai
thread.id139520161200000
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/reasoning · response_id #
expected chatcmpl-wt-reason, reported nothing
Expected
chatcmpl-wt-reason
Reproduce
spantruth run --subject sentry --scenario openai/reasoning
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.output_tokens.reasoning1792
gen_ai.usage.total_tokens3820
thread.id130694967592832
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/reasoning · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/reasoning
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.output_tokens.reasoning1792
gen_ai.usage.total_tokens3820
thread.id130694967592832
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

lost sentry · openai/responses-stream-missing-finish-abort · span.endedGhost span #
never ended: gen_ai.responses
Note
never ended: gen_ai.responses
Reproduce
spantruth run --subject sentry --scenario openai/responses-stream-missing-finish-abort
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/retry-429 · response_id #
expected chatcmpl-wt-retry, reported nothing
Expected
chatcmpl-wt-retry
Reproduce
spantruth run --subject sentry --scenario openai/retry-429
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.total_tokens2844
thread.id136783927351168
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/retry-429 · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/retry-429
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.total_tokens2844
thread.id136783927351168
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream · response_id #
expected chatcmpl-wt-stream, reported nothing
Expected
chatcmpl-wt-stream
Reproduce
spantruth run --subject sentry --scenario openai/stream
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.018136593999997785
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
thread.id137014766258048
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/stream
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.018136593999997785
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
thread.id137014766258048
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-cache-hit · response_id #
expected chatcmpl-wt-scache, reported nothing
Expected
chatcmpl-wt-scache
Reproduce
spantruth run --subject sentry --scenario openai/stream-cache-hit
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.014252295999995113
gen_ai.systemopenai
gen_ai.usage.input_tokens7213
gen_ai.usage.input_tokens.cached6144
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens7724
thread.id131327500781440
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-cache-hit · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/stream-cache-hit
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.014252295999995113
gen_ai.systemopenai
gen_ai.usage.input_tokens7213
gen_ai.usage.input_tokens.cached6144
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens7724
thread.id131327500781440
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-cache-write · response_id #
expected chatcmpl-wt-scwrite, reported nothing
Expected
chatcmpl-wt-scwrite
Cost
$0.00166 on the wire, $0.00148 from the spans (-10.7%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-cache-write
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5.6-luna sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.017347506999840334
gen_ai.systemopenai
gen_ai.usage.input_tokens8237
gen_ai.usage.input_tokens.cached3967
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
thread.id140325661308800
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-cache-write · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Cost
$0.00166 on the wire, $0.00148 from the spans (-10.7%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-cache-write
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5.6-luna sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.017347506999840334
gen_ai.systemopenai
gen_ai.usage.input_tokens8237
gen_ai.usage.input_tokens.cached3967
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
thread.id140325661308800
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-cache-write · cache_write_tokensCache-blind tokens #
expected 3539, reported nothing
Expected
3539
Cost
$0.00166 on the wire, $0.00148 from the spans (-10.7%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-cache-write
Rule
Input tokens written to the provider cache.
Exported spans (2)

chat gpt-5.6-luna sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.017347506999840334
gen_ai.systemopenai
gen_ai.usage.input_tokens8237
gen_ai.usage.input_tokens.cached3967
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
thread.id140325661308800
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-content-off · response_id #
expected chatcmpl-wt-stream, reported nothing
Expected
chatcmpl-wt-stream
Reproduce
spantruth run --subject sentry --scenario openai/stream-content-off
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.010492771999906836
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
thread.id136013440767872
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-content-off · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/stream-content-off
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.010492771999906836
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
thread.id136013440767872
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-content-on · response_id #
expected chatcmpl-wt-stream, reported nothing
Expected
chatcmpl-wt-stream
Reproduce
spantruth run --subject sentry --scenario openai/stream-content-on
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_token0.010748893000027238
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
thread.id132295024232320
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-content-on · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/stream-content-on
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_token0.010748893000027238
gen_ai.systemopenai
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
thread.id132295024232320
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

lost sentry · openai/stream-dropped · span.endedGhost span #
never ended: gen_ai.chat
Note
never ended: gen_ai.chat
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-dropped
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost sentry · openai/stream-early-exit · span.endedGhost span #
never ended: gen_ai.chat
Note
never ended: gen_ai.chat
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-early-exit
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

lost sentry · openai/stream-early-exit-with · span.endedGhost span #
never ended: gen_ai.chat
Note
never ended: gen_ai.chat
Cost
Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-early-exit-with
Rule
GenAI spans SHOULD end when the response is fully received or the operation is terminated due to an error or cancellation.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-helper · response_model #
expected gpt-5-mini-2026-08-07, reported nothing
Expected
gpt-5-mini-2026-08-07
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-helper
Rule
The name of the model that generated the response.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
gen_ai.systemopenai
thread.id124849010124672
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-helper · response_id #
expected chatcmpl-wt-shelper, reported nothing
Expected
chatcmpl-wt-shelper
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-helper
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
gen_ai.systemopenai
thread.id124849010124672
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-helper · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-helper
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
gen_ai.systemopenai
thread.id124849010124672
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-helper · input_tokensVanishing tokens #
expected 2137, reported nothing
Expected
2137
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-helper
Rule
Input tokens SHOULD include all types of input tokens, including cached tokens. For Anthropic, whose `input_tokens` excludes them, cache reads and cache writes MUST be added. Gemini's `promptTokenCount` is the total effective prompt size, cached content included (ai.google.dev/api/generate-content#UsageMetadata). OpenInference states the same rule for `llm.token_count.prompt`.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
gen_ai.systemopenai
thread.id124849010124672
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-helper · output_tokensVanishing tokens #
expected 313, reported nothing
Expected
313
Cost
$0.00116 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject sentry --scenario openai/stream-helper
Rule
Output tokens, with reasoning tokens included. For Anthropic, whose `output_tokens` includes thinking tokens, reasoning tokens are part of, not in addition to, output tokens. For Gemini, whose `candidatesTokenCount` excludes `thoughtsTokenCount`, the two are added. OpenInference states the same rule for `llm.token_count.completion`.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
gen_ai.systemopenai
thread.id124849010124672
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-no-usage · response_id #
expected chatcmpl-wt-nousage, reported nothing
Expected
chatcmpl-wt-nousage
Reproduce
spantruth run --subject sentry --scenario openai/stream-no-usage
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.020257327000081204
gen_ai.systemopenai
thread.id125582472365952
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-no-usage · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/stream-no-usage
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.020257327000081204
gen_ai.systemopenai
thread.id125582472365952
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-reasoning · response_id #
expected chatcmpl-wt-sreason, reported nothing
Expected
chatcmpl-wt-sreason
Reproduce
spantruth run --subject sentry --scenario openai/stream-reasoning
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.01594315900001675
gen_ai.systemopenai
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.output_tokens.reasoning1931
gen_ai.usage.total_tokens4548
thread.id125348610082688
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-reasoning · finish_reasonsSilent stop #
expected stop, reported nothing
Expected
['stop']
Reproduce
spantruth run --subject sentry --scenario openai/stream-reasoning
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.01594315900001675
gen_ai.systemopenai
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.output_tokens.reasoning1931
gen_ai.usage.total_tokens4548
thread.id125348610082688
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-tool-call · response_id #
expected chatcmpl-wt-stools, reported nothing
Expected
chatcmpl-wt-stools
Reproduce
spantruth run --subject sentry --scenario openai/stream-tool-call
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.017883675999883053
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.total_tokens1726
thread.id132885329966976
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/stream-tool-call · finish_reasonsSilent stop #
expected tool_calls, reported nothing
Expected
['tool_calls']
Reproduce
spantruth run --subject sentry --scenario openai/stream-tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.time_to_first_token0.017883675999883053
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens1553
gen_ai.usage.output_tokens173
gen_ai.usage.total_tokens1726
thread.id132885329966976
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/tool-call · response_id #
expected chatcmpl-wt-tools, reported nothing
Expected
chatcmpl-wt-tools
Reproduce
spantruth run --subject sentry --scenario openai/tool-call
Rule
The unique identifier of the completion.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.total_tokens1019
thread.id128582335596416
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

missing sentry · openai/tool-call · finish_reasonsSilent stop #
expected tool_calls, reported nothing
Expected
['tool_calls']
Reproduce
spantruth run --subject sentry --scenario openai/tool-call
Rule
One finish reason per choice, as received. A normalized value is accepted too.
Exported spans (2)

chat gpt-5-mini sentry_sdk.adapter, status UNSET

gen_ai.operation.namechat
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.systemopenai
gen_ai.tool.definitions[{"type": "function", "name": "get_weather", "parameters": {"type": "object", "properties": {"city": {"type": "string"}}}}, {"type": "function", "name": "get_time", "parameters": {"type": "object", "properties": {"zone": {"type": "string"}}}}]
gen_ai.usage.input_tokens931
gen_ai.usage.output_tokens88
gen_ai.usage.total_tokens1019
thread.id128582335596416
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

Subjects and versions