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 · latest versions · 2026-11-27T13:06:44+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·inconclusivewrongpass
anthropic/content-on
One call, content capture switched on
missingmissing····wrongmissing·passpasspasspasswrong·inconclusivepasspass
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·inconclusivewrongpass
anthropic/stream-content-on
Stream read to the end, content capture switched on
missingmissing····wrongmissing·passpasswrongpasswrong·inconclusivewrongpass
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·passmissingwrongpasswrongmissingpasswrongpass
anthropic/stream-tool-call
Two parallel tool uses, streamed
missingmissingwrongwrong·wrongwrongmissing·passpasswrongpasswrongpasspasspasspass
anthropic/thinking
Extended thinking
missingmissingmissingmissing··wrongmissing·passmissingmissingpasswrongmissingpasswrongpass
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····missingwrong·missingwrongpassmissing··passpasspass
gemini/async-stream
Stream read to the end (async)
·missing····missingmissing·missinglostpassmissing··missingpasspass
gemini/async-stream-dropped
Connection drops mid-stream (async)
·pass····missingmissing·passlostlostmissing··missingwrongpass
gemini/async-stream-early-exit
App closes the stream after two chunks (async)
·missing····missingmissing·wronglostlostmissing··missinglostpass
gemini/basic
One call
·missing····missingwrong·missingwrongpassmissing··passpasspass
gemini/cache-hit
Context cache hit
·missing····missingwrong·missingwrongpassmissing··passpasspass
gemini/rate-limited
HTTP 429 RESOURCE_EXHAUSTED
·pass····missingmissing·passmissingmissingmissing··missingwrongpass
gemini/stream
Stream read to the end
·missing····missingmissing·missinglostpassmissing··missingpasspass
gemini/stream-cache-hit
Context cache hit, streamed
·missing····missingmissing·missinglostpassmissing··missingpasspass
gemini/stream-dropped
Connection drops mid-stream
·pass····missingmissing·passlostlostmissing··missingwrongpass
gemini/stream-early-exit
App closes the stream after two chunks
·missing····missingmissing·missinglostlostmissing··missinglostpass
gemini/stream-thinking
Thinking tokens, streamed
·missing····missingmissing·missinglostpassmissing··missingwrongpass
gemini/thinking
Thinking tokens
·missing····missingwrong·missingwrongpassmissing··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··inconclusivewrongpass
openai/content-on
One call, content capture switched on
·wrong··pass·wrongwrong·passpasspasspass··inconclusivepasspass
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··inconclusivewrongpass
openai/stream-content-on
Stream read to the end, content capture switched on
·wrong··pass·wrongwrong·passpasspasspass··inconclusivewrongpass
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.
84 cells in 8 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.
39 cells in 8 libraries-100%
ST06 Hidden reasoning
The reasoning tokens that the provider reported do not appear on the span.
29 cells in 9 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.
242 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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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.095652389
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.port37573
url.fullhttp://127.0.0.1:37573/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.048187582
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.port37573
url.fullhttp://127.0.0.1:37573/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.119357641
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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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.053185166
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.port37573
url.fullhttp://127.0.0.1:37573/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.050655187
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.port37573
url.fullhttp://127.0.0.1:37573/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.05104352
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.port37573
url.fullhttp://127.0.0.1:37573/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.052942839
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.port37573
url.fullhttp://127.0.0.1:37573/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.049800397
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.port37573
url.fullhttp://127.0.0.1:37573/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.039913237
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.port37573
url.fullhttp://127.0.0.1:37573/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.039913237
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.port37573
url.fullhttp://127.0.0.1:37573/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.049461924
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.port37573
url.fullhttp://127.0.0.1:37573/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.043766216
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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573
url.fullhttp://127.0.0.1:37573/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_id16492523545596787410
llmobs_trace_id6b0982d800000000f3e16374c8fb1d87
process_id24744
runtime-id3fb40f57f48046f68e78eda2a3093b0a

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_id10206971160869920482
llmobs_trace_id6b0982d80000000007e897b99527090a
process_id24744
runtime-id3fb40f57f48046f68e78eda2a3093b0a

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_id2811361185889365325
llmobs_trace_id6b0982d8000000006876cf8042b80227
process_id24744
runtime-id3fb40f57f48046f68e78eda2a3093b0a

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_id16492523545596787410
llmobs_trace_id6b0982d800000000f3e16374c8fb1d87
process_id24744
runtime-id3fb40f57f48046f68e78eda2a3093b0a

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_id10206971160869920482
llmobs_trace_id6b0982d80000000007e897b99527090a
process_id24744
runtime-id3fb40f57f48046f68e78eda2a3093b0a

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_id2811361185889365325
llmobs_trace_id6b0982d8000000006876cf8042b80227
process_id24744
runtime-id3fb40f57f48046f68e78eda2a3093b0a

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_id16492523545596787410
llmobs_trace_id6b0982d800000000f3e16374c8fb1d87
process_id24744
runtime-id3fb40f57f48046f68e78eda2a3093b0a

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_id10206971160869920482
llmobs_trace_id6b0982d80000000007e897b99527090a
process_id24744
runtime-id3fb40f57f48046f68e78eda2a3093b0a

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_id2811361185889365325
llmobs_trace_id6b0982d8000000006876cf8042b80227
process_id24744
runtime-id3fb40f57f48046f68e78eda2a3093b0a

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_id16204236266657025695
llmobs_trace_id6b0981b2000000009b1f4a8f07e3583c
process_id21649
runtime-idbbf3c0bc0ff04968abaa9818394e8e31

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_id16204236266657025695
llmobs_trace_id6b0981b2000000009b1f4a8f07e3583c
process_id21649
runtime-idbbf3c0bc0ff04968abaa9818394e8e31

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_id16204236266657025695
llmobs_trace_id6b0981b2000000009b1f4a8f07e3583c
process_id21649
runtime-idbbf3c0bc0ff04968abaa9818394e8e31

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_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_id9169098500468863714
llmobs_trace_id6b0982ea000000008ff3441d224a8873
process_id24877
runtime-idca7848e45c8041609b16297dfccaee64

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_id15356906511911452021
llmobs_trace_id6b0982ea000000005ddcd2abfc004c14
process_id24877
runtime-idca7848e45c8041609b16297dfccaee64

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_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_id9169098500468863714
llmobs_trace_id6b0982ea000000008ff3441d224a8873
process_id24877
runtime-idca7848e45c8041609b16297dfccaee64

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_id15356906511911452021
llmobs_trace_id6b0982ea000000005ddcd2abfc004c14
process_id24877
runtime-idca7848e45c8041609b16297dfccaee64

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_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_id9169098500468863714
llmobs_trace_id6b0982ea000000008ff3441d224a8873
process_id24877
runtime-idca7848e45c8041609b16297dfccaee64

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_id15356906511911452021
llmobs_trace_id6b0982ea000000005ddcd2abfc004c14
process_id24877
runtime-idca7848e45c8041609b16297dfccaee64

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_id14036750208257534479
llmobs_trace_id6b0981bb000000000e0c7e80bae73146
process_id21728
runtime-id8b4edbd4db294aaab7a977c1b1ff04ed

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_id14036750208257534479
llmobs_trace_id6b0981bb000000000e0c7e80bae73146
process_id21728
runtime-id8b4edbd4db294aaab7a977c1b1ff04ed

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_id14036750208257534479
llmobs_trace_id6b0981bb000000000e0c7e80bae73146
process_id21728
runtime-id8b4edbd4db294aaab7a977c1b1ff04ed

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_id10844643970836090279
llmobs_trace_id6b0981c300000000957c97971d4ab8a5
process_id21804
runtime-id989fa6c692bf4be59f89b172fbaa8b1f

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_id10844643970836090279
llmobs_trace_id6b0981c300000000957c97971d4ab8a5
process_id21804
runtime-id989fa6c692bf4be59f89b172fbaa8b1f

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_id1882065086351223542
llmobs_trace_id6b0980ee00000000acbf8a3a53d0a54b
process_id19975
runtime-id8b8d8e754d4b4776b581a7141fb104c4

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_id1882065086351223542
llmobs_trace_id6b0980ee00000000acbf8a3a53d0a54b
process_id19975
runtime-id8b8d8e754d4b4776b581a7141fb104c4

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_id1882065086351223542
llmobs_trace_id6b0980ee00000000acbf8a3a53d0a54b
process_id19975
runtime-id8b8d8e754d4b4776b581a7141fb104c4

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_id6755197264122524058
llmobs_trace_id6b09812300000000f8f1b75e52a03649
process_id20435
runtime-id2ac8c24b039b4d63bc8ac727182a8403

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_id6755197264122524058
llmobs_trace_id6b09812300000000f8f1b75e52a03649
process_id20435
runtime-id2ac8c24b039b4d63bc8ac727182a8403

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_id6755197264122524058
llmobs_trace_id6b09812300000000f8f1b75e52a03649
process_id20435
runtime-id2ac8c24b039b4d63bc8ac727182a8403

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_id10854785420752851343
llmobs_trace_id6b09810900000000b154c8ecf06c7e96
process_id20259
runtime-id26023bc139544ae4907304a82f7ed984

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_id10854785420752851343
llmobs_trace_id6b09810900000000b154c8ecf06c7e96
process_id20259
runtime-id26023bc139544ae4907304a82f7ed984

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_id10854785420752851343
llmobs_trace_id6b09810900000000b154c8ecf06c7e96
process_id20259
runtime-id26023bc139544ae4907304a82f7ed984

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_id2836736207692066319
llmobs_trace_id6b0981fd000000008cf31cb7e6f19ee5
process_id22250
runtime-idf86973dd4f1d49ee83ab447f579261ad

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_id2836736207692066319
llmobs_trace_id6b0981fd000000008cf31cb7e6f19ee5
process_id22250
runtime-idf86973dd4f1d49ee83ab447f579261ad

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_id2836736207692066319
llmobs_trace_id6b0981fd000000008cf31cb7e6f19ee5
process_id22250
runtime-idf86973dd4f1d49ee83ab447f579261ad

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_id9451489699965740991
llmobs_trace_id6b09820600000000b6cb27ca1916bed8
process_id22309
runtime-iddb74e9dee32e4143be4d6e85c0759652

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_id9451489699965740991
llmobs_trace_id6b09820600000000b6cb27ca1916bed8
process_id22309
runtime-iddb74e9dee32e4143be4d6e85c0759652

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_id9451489699965740991
llmobs_trace_id6b09820600000000b6cb27ca1916bed8
process_id22309
runtime-iddb74e9dee32e4143be4d6e85c0759652

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_id2739068988614219688
llmobs_trace_id6b0981560000000072ece1db1a7a9e66
process_id20816
runtime-id52c073a288f644dc867f6880d89b2b30

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_id2739068988614219688
llmobs_trace_id6b0981560000000072ece1db1a7a9e66
process_id20816
runtime-id52c073a288f644dc867f6880d89b2b30

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_id2739068988614219688
llmobs_trace_id6b0981560000000072ece1db1a7a9e66
process_id20816
runtime-id52c073a288f644dc867f6880d89b2b30

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_id9935395843940566309
llmobs_trace_id6b0980f70000000077708cc712060809
process_id20051
runtime-idcc17d838fd8540fca527e266000956d7

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_id9935395843940566309
llmobs_trace_id6b0980f70000000077708cc712060809
process_id20051
runtime-idcc17d838fd8540fca527e266000956d7

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_id9935395843940566309
llmobs_trace_id6b0980f70000000077708cc712060809
process_id20051
runtime-idcc17d838fd8540fca527e266000956d7

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_id4465988039820193892
llmobs_trace_id6b09812b00000000689ccca49fed7ba0
process_id20500
runtime-idc172dc6461ad4191bb4e435838870999

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_id4465988039820193892
llmobs_trace_id6b09812b00000000689ccca49fed7ba0
process_id20500
runtime-idc172dc6461ad4191bb4e435838870999

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_id4465988039820193892
llmobs_trace_id6b09812b00000000689ccca49fed7ba0
process_id20500
runtime-idc172dc6461ad4191bb4e435838870999

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_id14926377353446384090
llmobs_trace_id6b09811a000000003cf3d6f6ff2a5ad6
process_id20384
runtime-id6d2a424f0e97411eb7d6bbf338b4e114

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_id14926377353446384090
llmobs_trace_id6b09811a000000003cf3d6f6ff2a5ad6
process_id20384
runtime-id6d2a424f0e97411eb7d6bbf338b4e114

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_id14926377353446384090
llmobs_trace_id6b09811a000000003cf3d6f6ff2a5ad6
process_id20384
runtime-id6d2a424f0e97411eb7d6bbf338b4e114

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_id14642559989991882221
llmobs_trace_id6b09811200000000eda8239383c9b8b1
process_id20322
runtime-idbe1eed607a034202b17f627c41ab58d2

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_id14642559989991882221
llmobs_trace_id6b09811200000000eda8239383c9b8b1
process_id20322
runtime-idbe1eed607a034202b17f627c41ab58d2

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_id14642559989991882221
llmobs_trace_id6b09811200000000eda8239383c9b8b1
process_id20322
runtime-idbe1eed607a034202b17f627c41ab58d2

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_id255396119016182053
llmobs_trace_id6b09820f000000003dd6ef7cb001a876
process_id22387
runtime-idbe1814c0726d45299abb961c6f7e5340

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_id255396119016182053
llmobs_trace_id6b09820f000000003dd6ef7cb001a876
process_id22387
runtime-idbe1814c0726d45299abb961c6f7e5340

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_id255396119016182053
llmobs_trace_id6b09820f000000003dd6ef7cb001a876
process_id22387
runtime-idbe1814c0726d45299abb961c6f7e5340

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_id14009631709273322216
llmobs_trace_id6b098217000000006e833a1fc98be8b9
process_id22443
runtime-id4808e23ce2d14a16a43f960323b7843f

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_id14009631709273322216
llmobs_trace_id6b098217000000006e833a1fc98be8b9
process_id22443
runtime-id4808e23ce2d14a16a43f960323b7843f

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_id14009631709273322216
llmobs_trace_id6b098217000000006e833a1fc98be8b9
process_id22443
runtime-id4808e23ce2d14a16a43f960323b7843f

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_id8128951719145207965
llmobs_trace_id6b09810000000000e630ab73a95b39bb
process_id20187
runtime-id9ed6391b09214d7fb0f9a0db25e6da0f

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_id8128951719145207965
llmobs_trace_id6b09810000000000e630ab73a95b39bb
process_id20187
runtime-id9ed6391b09214d7fb0f9a0db25e6da0f

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_id9469683673391010173
llmobs_trace_id6b098182000000002a82d3c58c6c66c0
process_id21179
runtime-id635a4eff162b41eebeedd1b77f74caf4

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_id9469683673391010173
llmobs_trace_id6b098182000000002a82d3c58c6c66c0
process_id21179
runtime-id635a4eff162b41eebeedd1b77f74caf4

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_id1436892078361964303
llmobs_trace_id6b09817100000000a537012c194700db
process_id21021
runtime-id61faf90aaae04040a2161d93a43e14a2

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_id1436892078361964303
llmobs_trace_id6b09817100000000a537012c194700db
process_id21021
runtime-id61faf90aaae04040a2161d93a43e14a2

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_id1436892078361964303
llmobs_trace_id6b09817100000000a537012c194700db
process_id21021
runtime-id61faf90aaae04040a2161d93a43e14a2

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_id1436892078361964303
llmobs_trace_id6b09817100000000a537012c194700db
process_id21021
runtime-id61faf90aaae04040a2161d93a43e14a2

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_id10738738295158100558
llmobs_trace_id6b09814500000000f185404d85e74f8f
process_id20690
runtime-idf66c915c893b4a3899334d4801af5745

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_id10738738295158100558
llmobs_trace_id6b09814500000000f185404d85e74f8f
process_id20690
runtime-idf66c915c893b4a3899334d4801af5745

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_id10738738295158100558
llmobs_trace_id6b09814500000000f185404d85e74f8f
process_id20690
runtime-idf66c915c893b4a3899334d4801af5745

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_id3748016717435587478
llmobs_trace_id6b098168000000002a0eef542a37d865
process_id20955
runtime-id594b9e83ae2e4dffa7d4e01483ca3809

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_id3748016717435587478
llmobs_trace_id6b098168000000002a0eef542a37d865
process_id20955
runtime-id594b9e83ae2e4dffa7d4e01483ca3809

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_id3748016717435587478
llmobs_trace_id6b098168000000002a0eef542a37d865
process_id20955
runtime-id594b9e83ae2e4dffa7d4e01483ca3809

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_id3748016717435587478
llmobs_trace_id6b098168000000002a0eef542a37d865
process_id20955
runtime-id594b9e83ae2e4dffa7d4e01483ca3809

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_id11340560161256144820
llmobs_trace_id6b09813c0000000066c947af47136212
process_id20623
runtime-ideb3dd8240ae740edb8394e7b5e60d0d6

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_id11340560161256144820
llmobs_trace_id6b09813c0000000066c947af47136212
process_id20623
runtime-ideb3dd8240ae740edb8394e7b5e60d0d6

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_id11340560161256144820
llmobs_trace_id6b09813c0000000066c947af47136212
process_id20623
runtime-ideb3dd8240ae740edb8394e7b5e60d0d6

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_id7861781203425816027
llmobs_trace_id6b09827f00000000406180658ab81c5d
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_id23717
runtime-idbcfc813568bb415695d91f8354b5d17e

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_id7861781203425816027
llmobs_trace_id6b09827f00000000406180658ab81c5d
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_id23717
runtime-idbcfc813568bb415695d91f8354b5d17e

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_id7861781203425816027
llmobs_trace_id6b09827f00000000406180658ab81c5d
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_id23717
runtime-idbcfc813568bb415695d91f8354b5d17e

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_id7861781203425816027
llmobs_trace_id6b09827f00000000406180658ab81c5d
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_id23717
runtime-idbcfc813568bb415695d91f8354b5d17e

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_id7397259736720516142
llmobs_trace_id6b0982870000000087233f21ed389449
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_id23817
runtime-id998e2bf1577c4f01864e49ce34a76c0c

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_id7397259736720516142
llmobs_trace_id6b0982870000000087233f21ed389449
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_id23817
runtime-id998e2bf1577c4f01864e49ce34a76c0c

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_id7397259736720516142
llmobs_trace_id6b0982870000000087233f21ed389449
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_id23817
runtime-id998e2bf1577c4f01864e49ce34a76c0c

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_id7397259736720516142
llmobs_trace_id6b0982870000000087233f21ed389449
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_id23817
runtime-id998e2bf1577c4f01864e49ce34a76c0c

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_id2188444837708297473
llmobs_trace_id6b098256000000002710698e53e81c2c
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_id23102
runtime-idf19f5ca077404a3cb7f6d7255ff74b6b

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_id2188444837708297473
llmobs_trace_id6b098256000000002710698e53e81c2c
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_id23102
runtime-idf19f5ca077404a3cb7f6d7255ff74b6b

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_id2188444837708297473
llmobs_trace_id6b098256000000002710698e53e81c2c
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_id23102
runtime-idf19f5ca077404a3cb7f6d7255ff74b6b

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_id2188444837708297473
llmobs_trace_id6b098256000000002710698e53e81c2c
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_id23102
runtime-idf19f5ca077404a3cb7f6d7255ff74b6b

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_id238020544277153754
llmobs_trace_id6b09825e000000002f522428c1db32a0
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_id23232
runtime-ida46a2ca24dc94d7ab98413378452ac4f

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_id238020544277153754
llmobs_trace_id6b09825e000000002f522428c1db32a0
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_id23232
runtime-ida46a2ca24dc94d7ab98413378452ac4f

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_id238020544277153754
llmobs_trace_id6b09825e000000002f522428c1db32a0
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_id23232
runtime-ida46a2ca24dc94d7ab98413378452ac4f

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_id238020544277153754
llmobs_trace_id6b09825e000000002f522428c1db32a0
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_id23232
runtime-ida46a2ca24dc94d7ab98413378452ac4f

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_id12850043390812125313
llmobs_trace_id6b09826500000000f85d149168f499a8
process_id23325
runtime-ide577e71baf8642118b3cab8f3bc08f4f

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_id12850043390812125313
llmobs_trace_id6b09826500000000f85d149168f499a8
process_id23325
runtime-ide577e71baf8642118b3cab8f3bc08f4f

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_id12850043390812125313
llmobs_trace_id6b09826500000000f85d149168f499a8
process_id23325
runtime-ide577e71baf8642118b3cab8f3bc08f4f

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_id14235471509351928827
llmobs_trace_id6b09826b00000000a79d3643c2065ba4
process_id23386
runtime-id4de7623fb53e4ddaa04e78ff55a4cedc

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_id14235471509351928827
llmobs_trace_id6b09826b00000000a79d3643c2065ba4
process_id23386
runtime-id4de7623fb53e4ddaa04e78ff55a4cedc

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_id14235471509351928827
llmobs_trace_id6b09826b00000000a79d3643c2065ba4
process_id23386
runtime-id4de7623fb53e4ddaa04e78ff55a4cedc

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_id16651123918754250684
llmobs_trace_id6b098271000000001bf549469244f0e5
process_id23481
runtime-idb0d744371cb24156bcc1d21a4c0580e7
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_id16651123918754250684
llmobs_trace_id6b098271000000001bf549469244f0e5
process_id23481
runtime-idb0d744371cb24156bcc1d21a4c0580e7
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_id4407535354057741248
llmobs_trace_id6b09821e000000001197b3b9a103d70b
process_id22506
runtime-id0b46f78ad5f24f7a91dbcf5a81a50edb

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_id4407535354057741248
llmobs_trace_id6b09821e000000001197b3b9a103d70b
process_id22506
runtime-id0b46f78ad5f24f7a91dbcf5a81a50edb

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_id4407535354057741248
llmobs_trace_id6b09821e000000001197b3b9a103d70b
process_id22506
runtime-id0b46f78ad5f24f7a91dbcf5a81a50edb

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_id922364313905936944
llmobs_trace_id6b09823c00000000bbaefcf968d69470
process_id22746
runtime-id6f8ec9adb888424f9ab0d6d2818c9266

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_id922364313905936944
llmobs_trace_id6b09823c00000000bbaefcf968d69470
process_id22746
runtime-id6f8ec9adb888424f9ab0d6d2818c9266

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_id922364313905936944
llmobs_trace_id6b09823c00000000bbaefcf968d69470
process_id22746
runtime-id6f8ec9adb888424f9ab0d6d2818c9266

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_id13120097900827674756
llmobs_trace_id6b09822400000000cd1ed846a1954ffc
process_id22554
runtime-id5de5455a869f4c8b81a9ed14815b5137

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_id13120097900827674756
llmobs_trace_id6b09822400000000cd1ed846a1954ffc
process_id22554
runtime-id5de5455a869f4c8b81a9ed14815b5137

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_id13120097900827674756
llmobs_trace_id6b09822400000000cd1ed846a1954ffc
process_id22554
runtime-id5de5455a869f4c8b81a9ed14815b5137

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_id18106143527472353810
llmobs_trace_id6b09824200000000d573d3111da37743
process_id22810
runtime-id583f1730f96d4e12b742001df2e9d8bb

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_id18106143527472353810
llmobs_trace_id6b09824200000000d573d3111da37743
process_id22810
runtime-id583f1730f96d4e12b742001df2e9d8bb

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_id18106143527472353810
llmobs_trace_id6b09824200000000d573d3111da37743
process_id22810
runtime-id583f1730f96d4e12b742001df2e9d8bb

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_id6452783827706641336
llmobs_trace_id6b09822a00000000adc8a997bf232604
process_id22607
runtime-id86380f1188f34156818119e5b6571d18

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_id6452783827706641336
llmobs_trace_id6b09822a00000000adc8a997bf232604
process_id22607
runtime-id86380f1188f34156818119e5b6571d18

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_id11212462399089289524
llmobs_trace_id6b09823600000000aecebc70981024f2
process_id22698
runtime-id6ed57992323c4ae7a8c01cb4802dbcd4

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_id11212462399089289524
llmobs_trace_id6b09823600000000aecebc70981024f2
process_id22698
runtime-id6ed57992323c4ae7a8c01cb4802dbcd4

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_id11212462399089289524
llmobs_trace_id6b09823600000000aecebc70981024f2
process_id22698
runtime-id6ed57992323c4ae7a8c01cb4802dbcd4

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_id5395646105480607496
llmobs_trace_id6b09823000000000745aa7a18f50085c
process_id22655
runtime-id64d405a8ed9746adb4a6608fa25f9709

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_id5395646105480607496
llmobs_trace_id6b09823000000000745aa7a18f50085c
process_id22655
runtime-id64d405a8ed9746adb4a6608fa25f9709

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_id5395646105480607496
llmobs_trace_id6b09823000000000745aa7a18f50085c
process_id22655
runtime-id64d405a8ed9746adb4a6608fa25f9709

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_id14164867447609872544
llmobs_trace_id6b0982cf0000000078862e1d277787e0
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id10388113808413031296
llmobs_trace_id6b0982cf00000000feb576ac0fa978ef
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id11359191281731685707
llmobs_trace_id6b0982cf0000000088a8ac676a78aff2
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id14164867447609872544
llmobs_trace_id6b0982cf0000000078862e1d277787e0
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id10388113808413031296
llmobs_trace_id6b0982cf00000000feb576ac0fa978ef
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id11359191281731685707
llmobs_trace_id6b0982cf0000000088a8ac676a78aff2
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id14164867447609872544
llmobs_trace_id6b0982cf0000000078862e1d277787e0
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id10388113808413031296
llmobs_trace_id6b0982cf00000000feb576ac0fa978ef
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id11359191281731685707
llmobs_trace_id6b0982cf0000000088a8ac676a78aff2
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id14164867447609872544
llmobs_trace_id6b0982cf0000000078862e1d277787e0
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id10388113808413031296
llmobs_trace_id6b0982cf00000000feb576ac0fa978ef
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id11359191281731685707
llmobs_trace_id6b0982cf0000000088a8ac676a78aff2
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_id24684
runtime-idf4fde09c28414fafbe38c16ef2ba1d2a

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_id16336263130077451547
llmobs_trace_id6b098189000000005ff1c3af4da36a1e
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_id21236
runtime-id64d01f17766c4fe1bd4be2ad8a1f150f

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_id16336263130077451547
llmobs_trace_id6b098189000000005ff1c3af4da36a1e
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_id21236
runtime-id64d01f17766c4fe1bd4be2ad8a1f150f

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_id16336263130077451547
llmobs_trace_id6b098189000000005ff1c3af4da36a1e
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_id21236
runtime-id64d01f17766c4fe1bd4be2ad8a1f150f

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_id16336263130077451547
llmobs_trace_id6b098189000000005ff1c3af4da36a1e
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_id21236
runtime-id64d01f17766c4fe1bd4be2ad8a1f150f

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_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_id5800809069852518416
llmobs_trace_id6b0982e000000000d3beeea9da1a3b3d
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_id24803
runtime-id3ac0af7ed0a447349943d8262bdee5da

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_id13734835532605746088
llmobs_trace_id6b0982e000000000c68eea12e9c89f7a
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_id24803
runtime-id3ac0af7ed0a447349943d8262bdee5da

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_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_id5800809069852518416
llmobs_trace_id6b0982e000000000d3beeea9da1a3b3d
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_id24803
runtime-id3ac0af7ed0a447349943d8262bdee5da

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_id13734835532605746088
llmobs_trace_id6b0982e000000000c68eea12e9c89f7a
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_id24803
runtime-id3ac0af7ed0a447349943d8262bdee5da

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_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_id5800809069852518416
llmobs_trace_id6b0982e000000000d3beeea9da1a3b3d
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_id24803
runtime-id3ac0af7ed0a447349943d8262bdee5da

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_id13734835532605746088
llmobs_trace_id6b0982e000000000c68eea12e9c89f7a
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_id24803
runtime-id3ac0af7ed0a447349943d8262bdee5da

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_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_id5800809069852518416
llmobs_trace_id6b0982e000000000d3beeea9da1a3b3d
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_id24803
runtime-id3ac0af7ed0a447349943d8262bdee5da

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_id13734835532605746088
llmobs_trace_id6b0982e000000000c68eea12e9c89f7a
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_id24803
runtime-id3ac0af7ed0a447349943d8262bdee5da

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_id3857874280242531554
llmobs_trace_id6b0981910000000076dfd79b6cb43f1d
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_id21314
runtime-id46ee7c4fdea3495da43c0a69c1918ec8

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_id3857874280242531554
llmobs_trace_id6b0981910000000076dfd79b6cb43f1d
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_id21314
runtime-id46ee7c4fdea3495da43c0a69c1918ec8

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_id3857874280242531554
llmobs_trace_id6b0981910000000076dfd79b6cb43f1d
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_id21314
runtime-id46ee7c4fdea3495da43c0a69c1918ec8

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_id3857874280242531554
llmobs_trace_id6b0981910000000076dfd79b6cb43f1d
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_id21314
runtime-id46ee7c4fdea3495da43c0a69c1918ec8

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_id15621281930962251311
llmobs_trace_id6b09819900000000f71ff23006547149
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_id21401
runtime-idca00f9e02bb44eada1d3492897628d22

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_id15621281930962251311
llmobs_trace_id6b09819900000000f71ff23006547149
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_id21401
runtime-idca00f9e02bb44eada1d3492897628d22

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_id15621281930962251311
llmobs_trace_id6b09819900000000f71ff23006547149
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_id21401
runtime-idca00f9e02bb44eada1d3492897628d22

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_id13203903324972973942
llmobs_trace_id6b0981a900000000ba9a1bf80676a258
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_id21585
runtime-id120c5ed548ae46a9a97c5ab4b4e41991

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_id13203903324972973942
llmobs_trace_id6b0981a900000000ba9a1bf80676a258
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_id21585
runtime-id120c5ed548ae46a9a97c5ab4b4e41991

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_id13203903324972973942
llmobs_trace_id6b0981a900000000ba9a1bf80676a258
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_id21585
runtime-id120c5ed548ae46a9a97c5ab4b4e41991

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_id13203903324972973942
llmobs_trace_id6b0981a900000000ba9a1bf80676a258
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_id21585
runtime-id120c5ed548ae46a9a97c5ab4b4e41991

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_id14498178248925118211
llmobs_trace_id6b09806f000000008bc415c009a1b52b
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_id18847
runtime-id67bfb4b6c0a64453a95a8c153a61d2aa

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_id14498178248925118211
llmobs_trace_id6b09806f000000008bc415c009a1b52b
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_id18847
runtime-id67bfb4b6c0a64453a95a8c153a61d2aa

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_id14498178248925118211
llmobs_trace_id6b09806f000000008bc415c009a1b52b
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_id18847
runtime-id67bfb4b6c0a64453a95a8c153a61d2aa

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_id14498178248925118211
llmobs_trace_id6b09806f000000008bc415c009a1b52b
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_id18847
runtime-id67bfb4b6c0a64453a95a8c153a61d2aa

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_id8985103319063303444
llmobs_trace_id6b09808700000000698c35807b58f6f6
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_id19046
runtime-id88074c4994c34270aa466312973e89c2

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_id8985103319063303444
llmobs_trace_id6b09808700000000698c35807b58f6f6
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_id19046
runtime-id88074c4994c34270aa466312973e89c2

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_id8985103319063303444
llmobs_trace_id6b09808700000000698c35807b58f6f6
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_id19046
runtime-id88074c4994c34270aa466312973e89c2

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_id8985103319063303444
llmobs_trace_id6b09808700000000698c35807b58f6f6
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_id19046
runtime-id88074c4994c34270aa466312973e89c2

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_id4970422738489013949
llmobs_trace_id6b098097000000006cfb20eaddaecd6c
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_id19175
runtime-idf220dfcb788c4e198edb2fdf0a0b9965

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_id4970422738489013949
llmobs_trace_id6b098097000000006cfb20eaddaecd6c
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_id19175
runtime-idf220dfcb788c4e198edb2fdf0a0b9965

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_id4970422738489013949
llmobs_trace_id6b098097000000006cfb20eaddaecd6c
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_id19175
runtime-idf220dfcb788c4e198edb2fdf0a0b9965

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_id4970422738489013949
llmobs_trace_id6b098097000000006cfb20eaddaecd6c
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_id19175
runtime-idf220dfcb788c4e198edb2fdf0a0b9965

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_id4688482590032192922
llmobs_trace_id6b0982bf0000000089281a566cc04e4d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modeldeepseek-flash
openai.request.providerOpenAI
openai.response.modeldeepseek-flash
process_id24434
runtime-id8151392beb724ef69181d61b81d4e691

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_id4688482590032192922
llmobs_trace_id6b0982bf0000000089281a566cc04e4d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modeldeepseek-flash
openai.request.providerOpenAI
openai.response.modeldeepseek-flash
process_id24434
runtime-id8151392beb724ef69181d61b81d4e691

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_id4688482590032192922
llmobs_trace_id6b0982bf0000000089281a566cc04e4d
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modeldeepseek-flash
openai.request.providerOpenAI
openai.response.modeldeepseek-flash
process_id24434
runtime-id8151392beb724ef69181d61b81d4e691

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_id13027931735259801874
llmobs_trace_id6b0982c700000000bd27fcf5ae52a08a
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_id24623
runtime-id7fe79bccacc5499ab166f6c45fd06a44

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_id13027931735259801874
llmobs_trace_id6b0982c700000000bd27fcf5ae52a08a
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_id24623
runtime-id7fe79bccacc5499ab166f6c45fd06a44

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_id13027931735259801874
llmobs_trace_id6b0982c700000000bd27fcf5ae52a08a
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_id24623
runtime-id7fe79bccacc5499ab166f6c45fd06a44

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_id13027931735259801874
llmobs_trace_id6b0982c700000000bd27fcf5ae52a08a
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_id24623
runtime-id7fe79bccacc5499ab166f6c45fd06a44

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_id3322745482772653076
llmobs_trace_id6b09828f00000000dbfad6a03a6c7706
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_id23920
runtime-id77521be7801449dda159243a1e7d29ff

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_id3322745482772653076
llmobs_trace_id6b09828f00000000dbfad6a03a6c7706
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_id23920
runtime-id77521be7801449dda159243a1e7d29ff

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_id3322745482772653076
llmobs_trace_id6b09828f00000000dbfad6a03a6c7706
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_id23920
runtime-id77521be7801449dda159243a1e7d29ff

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_id3322745482772653076
llmobs_trace_id6b09828f00000000dbfad6a03a6c7706
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_id23920
runtime-id77521be7801449dda159243a1e7d29ff

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_id15460157275030043356
llmobs_trace_id6b09829700000000e7e14820328b9ad0
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_id24000
runtime-id2a56246fd527411fa9579ad202fdfe05

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_id15460157275030043356
llmobs_trace_id6b09829700000000e7e14820328b9ad0
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_id24000
runtime-id2a56246fd527411fa9579ad202fdfe05

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_id15460157275030043356
llmobs_trace_id6b09829700000000e7e14820328b9ad0
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_id24000
runtime-id2a56246fd527411fa9579ad202fdfe05

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_id15460157275030043356
llmobs_trace_id6b09829700000000e7e14820328b9ad0
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_id24000
runtime-id2a56246fd527411fa9579ad202fdfe05

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_id14081452134503696399
llmobs_trace_id6b0982b70000000053087e1f14ecde26
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_id24345
runtime-id67e5524f751e4987b6dfc4a0debb6360

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_id14081452134503696399
llmobs_trace_id6b0982b70000000053087e1f14ecde26
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_id24345
runtime-id67e5524f751e4987b6dfc4a0debb6360

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_id14081452134503696399
llmobs_trace_id6b0982b70000000053087e1f14ecde26
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_id24345
runtime-id67e5524f751e4987b6dfc4a0debb6360

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_id17311697765997157461
llmobs_trace_id6b09829f000000001b83080c3def9b29
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_id24085
runtime-id678986dfdd1448b482ef4791787fd794

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_id17311697765997157461
llmobs_trace_id6b09829f000000001b83080c3def9b29
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_id24085
runtime-id678986dfdd1448b482ef4791787fd794

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_id17311697765997157461
llmobs_trace_id6b09829f000000001b83080c3def9b29
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_id24085
runtime-id678986dfdd1448b482ef4791787fd794

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_id17311697765997157461
llmobs_trace_id6b09829f000000001b83080c3def9b29
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_id24085
runtime-id678986dfdd1448b482ef4791787fd794

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_id5547297500914121745
llmobs_trace_id6b0982a700000000676feffa8d6c3d18
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_id24178
runtime-idc8032cdbfcc44f93b7f07a0499ae2c47

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_id5547297500914121745
llmobs_trace_id6b0982a700000000676feffa8d6c3d18
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_id24178
runtime-idc8032cdbfcc44f93b7f07a0499ae2c47

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_id5547297500914121745
llmobs_trace_id6b0982a700000000676feffa8d6c3d18
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_id24178
runtime-idc8032cdbfcc44f93b7f07a0499ae2c47

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_id5547297500914121745
llmobs_trace_id6b0982a700000000676feffa8d6c3d18
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_id24178
runtime-idc8032cdbfcc44f93b7f07a0499ae2c47

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_id11000207460384606577
llmobs_trace_id6b0981dd000000007f5bc7e7d1e79cf6
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_id22012
runtime-idb4175d2ea5fc441285cb27c86c4db4ee

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_id11000207460384606577
llmobs_trace_id6b0981dd000000007f5bc7e7d1e79cf6
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_id22012
runtime-idb4175d2ea5fc441285cb27c86c4db4ee

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_id11000207460384606577
llmobs_trace_id6b0981dd000000007f5bc7e7d1e79cf6
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_id22012
runtime-idb4175d2ea5fc441285cb27c86c4db4ee

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_id11000207460384606577
llmobs_trace_id6b0981dd000000007f5bc7e7d1e79cf6
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_id22012
runtime-idb4175d2ea5fc441285cb27c86c4db4ee

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_id798223358034876765
llmobs_trace_id6b0981e500000000365a5bd5b1e0264c
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_id22077
runtime-id8ae0cd7f4ac841a591add92893d66c3b

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_id798223358034876765
llmobs_trace_id6b0981e500000000365a5bd5b1e0264c
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_id22077
runtime-id8ae0cd7f4ac841a591add92893d66c3b

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_id798223358034876765
llmobs_trace_id6b0981e500000000365a5bd5b1e0264c
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_id22077
runtime-id8ae0cd7f4ac841a591add92893d66c3b

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_id798223358034876765
llmobs_trace_id6b0981e500000000365a5bd5b1e0264c
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_id22077
runtime-id8ae0cd7f4ac841a591add92893d66c3b

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_id11944237538979556035
llmobs_trace_id6b0980d6000000007608bb618981fe27
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_id19729
runtime-idab7132f4e5094c13b836e6ea9407e1fb

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_id11944237538979556035
llmobs_trace_id6b0980d6000000007608bb618981fe27
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_id19729
runtime-idab7132f4e5094c13b836e6ea9407e1fb

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_id11944237538979556035
llmobs_trace_id6b0980d6000000007608bb618981fe27
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_id19729
runtime-idab7132f4e5094c13b836e6ea9407e1fb

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_id11944237538979556035
llmobs_trace_id6b0980d6000000007608bb618981fe27
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_id19729
runtime-idab7132f4e5094c13b836e6ea9407e1fb

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_id16178253142813584641
llmobs_trace_id6b0980c600000000fa42ac00ff83afcd
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_id19583
runtime-id15632017c64c454a966ca219facec91c

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_id16178253142813584641
llmobs_trace_id6b0980c600000000fa42ac00ff83afcd
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_id19583
runtime-id15632017c64c454a966ca219facec91c

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_id16178253142813584641
llmobs_trace_id6b0980c600000000fa42ac00ff83afcd
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_id19583
runtime-id15632017c64c454a966ca219facec91c

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_id16178253142813584641
llmobs_trace_id6b0980c600000000fa42ac00ff83afcd
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_id19583
runtime-id15632017c64c454a966ca219facec91c

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_id10371781846966384092
llmobs_trace_id6b09807700000000990732867ed6eef0
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_id18916
runtime-ida525ce5076a44eb091285d1b34decb1b

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_id10371781846966384092
llmobs_trace_id6b09807700000000990732867ed6eef0
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_id18916
runtime-ida525ce5076a44eb091285d1b34decb1b

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_id10371781846966384092
llmobs_trace_id6b09807700000000990732867ed6eef0
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_id18916
runtime-ida525ce5076a44eb091285d1b34decb1b

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_id10371781846966384092
llmobs_trace_id6b09807700000000990732867ed6eef0
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_id18916
runtime-ida525ce5076a44eb091285d1b34decb1b

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_id3084838821726491868
llmobs_trace_id6b09808f000000002e09caf45d1b7e29
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_id19109
runtime-idbd5b1e3cb32c422c95c5d84a50293b6d

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_id3084838821726491868
llmobs_trace_id6b09808f000000002e09caf45d1b7e29
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_id19109
runtime-idbd5b1e3cb32c422c95c5d84a50293b6d

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_id3084838821726491868
llmobs_trace_id6b09808f000000002e09caf45d1b7e29
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_id19109
runtime-idbd5b1e3cb32c422c95c5d84a50293b6d

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_id3084838821726491868
llmobs_trace_id6b09808f000000002e09caf45d1b7e29
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_id19109
runtime-idbd5b1e3cb32c422c95c5d84a50293b6d

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_id4650413900982910782
llmobs_trace_id6b09809f00000000fd882d6c10922750
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_id19244
runtime-id5e28244209ac4dd2b212d33694ea9a96

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_id4650413900982910782
llmobs_trace_id6b09809f00000000fd882d6c10922750
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_id19244
runtime-id5e28244209ac4dd2b212d33694ea9a96

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_id4650413900982910782
llmobs_trace_id6b09809f00000000fd882d6c10922750
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_id19244
runtime-id5e28244209ac4dd2b212d33694ea9a96

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_id4650413900982910782
llmobs_trace_id6b09809f00000000fd882d6c10922750
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_id19244
runtime-id5e28244209ac4dd2b212d33694ea9a96

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_id15881953454842849588
llmobs_trace_id6b0981ed0000000076e65f0ab01464b3
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_id22131
runtime-idf6a566d06c4d4f039d1b970d831bcca9

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_id15881953454842849588
llmobs_trace_id6b0981ed0000000076e65f0ab01464b3
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_id22131
runtime-idf6a566d06c4d4f039d1b970d831bcca9

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_id15881953454842849588
llmobs_trace_id6b0981ed0000000076e65f0ab01464b3
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_id22131
runtime-idf6a566d06c4d4f039d1b970d831bcca9

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_id15881953454842849588
llmobs_trace_id6b0981ed0000000076e65f0ab01464b3
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_id22131
runtime-idf6a566d06c4d4f039d1b970d831bcca9

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_id18103336076036524567
llmobs_trace_id6b0981f500000000f428d2ee31b35146
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_id22189
runtime-idbb1767dad6bc450086dca59be2fa9fa1

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_id18103336076036524567
llmobs_trace_id6b0981f500000000f428d2ee31b35146
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_id22189
runtime-idbb1767dad6bc450086dca59be2fa9fa1

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_id18103336076036524567
llmobs_trace_id6b0981f500000000f428d2ee31b35146
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_id22189
runtime-idbb1767dad6bc450086dca59be2fa9fa1

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_id18103336076036524567
llmobs_trace_id6b0981f500000000f428d2ee31b35146
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_id22189
runtime-idbb1767dad6bc450086dca59be2fa9fa1

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_id4374784364598648331
llmobs_trace_id6b09807f0000000078fa85646814326f
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_id18979
runtime-idb6d3de5402594c409508995cf76af273

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_id4374784364598648331
llmobs_trace_id6b09807f0000000078fa85646814326f
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_id18979
runtime-idb6d3de5402594c409508995cf76af273

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_id4374784364598648331
llmobs_trace_id6b09807f0000000078fa85646814326f
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_id18979
runtime-idb6d3de5402594c409508995cf76af273

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_id5269892404811196545
llmobs_trace_id6b098178000000006ff7c638226b4241
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_id21099
runtime-idbc32c49031ee48e6aed085d1e4279804

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_id5269892404811196545
llmobs_trace_id6b098178000000006ff7c638226b4241
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_id21099
runtime-idbc32c49031ee48e6aed085d1e4279804

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_id5269892404811196545
llmobs_trace_id6b098178000000006ff7c638226b4241
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_id21099
runtime-idbc32c49031ee48e6aed085d1e4279804

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_id6670145238039320264
llmobs_trace_id6b0980e6000000006b077db236af4d34
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
process_id19912
runtime-id706979a958b947c5ad6bdd18fca430a7

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_id6670145238039320264
llmobs_trace_id6b0980e6000000006b077db236af4d34
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
process_id19912
runtime-id706979a958b947c5ad6bdd18fca430a7

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_id6670145238039320264
llmobs_trace_id6b0980e6000000006b077db236af4d34
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
process_id19912
runtime-id706979a958b947c5ad6bdd18fca430a7

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_id6670145238039320264
llmobs_trace_id6b0980e6000000006b077db236af4d34
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
process_id19912
runtime-id706979a958b947c5ad6bdd18fca430a7

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_id6670145238039320264
llmobs_trace_id6b0980e6000000006b077db236af4d34
openai.request.endpoint/v1/chat/completions
openai.request.methodPOST
openai.request.modelgpt-5-mini
openai.request.providerOpenAI
process_id19912
runtime-id706979a958b947c5ad6bdd18fca430a7

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_id1181607383339955523
llmobs_trace_id6b0980a700000000cfe053be17e5c692
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_id19302
runtime-id9ebdd0fa7eab41d3aee83a163de52151

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_id1181607383339955523
llmobs_trace_id6b0980a700000000cfe053be17e5c692
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_id19302
runtime-id9ebdd0fa7eab41d3aee83a163de52151

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_id1181607383339955523
llmobs_trace_id6b0980a700000000cfe053be17e5c692
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_id19302
runtime-id9ebdd0fa7eab41d3aee83a163de52151

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_id1181607383339955523
llmobs_trace_id6b0980a700000000cfe053be17e5c692
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_id19302
runtime-id9ebdd0fa7eab41d3aee83a163de52151

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_id1181607383339955523
llmobs_trace_id6b0980a700000000cfe053be17e5c692
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_id19302
runtime-id9ebdd0fa7eab41d3aee83a163de52151

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_id1181607383339955523
llmobs_trace_id6b0980a700000000cfe053be17e5c692
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_id19302
runtime-id9ebdd0fa7eab41d3aee83a163de52151

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_id11383298724900046766
llmobs_trace_id6b0980de000000002d2e2bbcb8257fd5
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_id19850
runtime-id4c6ff68942e5437fbd4c1a58c52040e4

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_id11383298724900046766
llmobs_trace_id6b0980de000000002d2e2bbcb8257fd5
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_id19850
runtime-id4c6ff68942e5437fbd4c1a58c52040e4

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_id11383298724900046766
llmobs_trace_id6b0980de000000002d2e2bbcb8257fd5
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_id19850
runtime-id4c6ff68942e5437fbd4c1a58c52040e4

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_id11383298724900046766
llmobs_trace_id6b0980de000000002d2e2bbcb8257fd5
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_id19850
runtime-id4c6ff68942e5437fbd4c1a58c52040e4

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_id11125017235523324528
llmobs_trace_id6b0980b7000000008a851fc987cacc1b
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_id19444
runtime-idbb9296a8050e4c918e69f9814ceb289a

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_id11125017235523324528
llmobs_trace_id6b0980b7000000008a851fc987cacc1b
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_id19444
runtime-idbb9296a8050e4c918e69f9814ceb289a

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_id11125017235523324528
llmobs_trace_id6b0980b7000000008a851fc987cacc1b
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_id19444
runtime-idbb9296a8050e4c918e69f9814ceb289a

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_id11125017235523324528
llmobs_trace_id6b0980b7000000008a851fc987cacc1b
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_id19444
runtime-idbb9296a8050e4c918e69f9814ceb289a

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_id14638453966259755872
llmobs_trace_id6b0980af00000000278f8be3e8f948ac
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_id19370
runtime-id1fcfea508fd0445c91a446008f0d2eab

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_id14638453966259755872
llmobs_trace_id6b0980af00000000278f8be3e8f948ac
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_id19370
runtime-id1fcfea508fd0445c91a446008f0d2eab

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_id14638453966259755872
llmobs_trace_id6b0980af00000000278f8be3e8f948ac
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_id19370
runtime-id1fcfea508fd0445c91a446008f0d2eab

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_id14638453966259755872
llmobs_trace_id6b0980af00000000278f8be3e8f948ac
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_id19370
runtime-id1fcfea508fd0445c91a446008f0d2eab

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--01a21d21-dc14-7338-92a4-673a7f153725", "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--01a21d21-f2bb-7421-b010-879ddce42fe9", "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--01a21d21-f2bb-7421-b010-879ddce42fe9", "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--01a21d20-48e4-744f-b24d-fd2a29765500", "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--01a21d20-c3ed-7353-bbee-42d659af428a", "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--01a21d20-c3ed-7353-bbee-42d659af428a", "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--01a21d20-c3ed-7353-bbee-42d659af428a", "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--01a21d20-84cd-741e-8be9-8a1bb2ad2ab0", "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--01a21d20-84cd-741e-8be9-8a1bb2ad2ab0", "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--01a21d20-84cd-741e-8be9-8a1bb2ad2ab0", "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--01a21d20-5af8-74a9-80a1-f1ff40133571", "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--01a21d20-5af8-74a9-80a1-f1ff40133571", "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--01a21d21-76b4-71c2-9479-3d8172b0db1c", "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--01a21d21-06e7-7766-9477-cdcfdc5fb018", "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--01a21d21-6075-72eb-9f53-69b4862d283b-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--01a21d21-a42d-72ae-92cf-41dc5e97f2c4", "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--01a21d1f-a07a-762b-a0df-a4a62a182ccc-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--01a21d1f-7301-71d9-be24-2e02b81a30ee", "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-27T13:16:43.222035Z"
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}}

OpenAI-generation langfuse-sdk, status UNSET

langfuse.internal.is_app_rootTrue
langfuse.observation.completion_start_time"2026-11-27T13:16:43.223275Z"
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}}

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-27T13:15:48.799884Z"
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-27T13:16:28.523440Z"
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-27T13:15:25.719779Z"
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-e49220bb-7c9b-4c0c-8d4e-0b826e171f31
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:37573/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 13:19:02 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": 1194.5181, "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_id3aef06b4-ce4e-448f-83fc-1b304a486a91
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-e49220bb-7c9b-4c0c-8d4e-0b826e171f31
Expected
msg_wt_basic
Reported
chatcmpl-e49220bb-7c9b-4c0c-8d4e-0b826e171f31
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-e49220bb-7c9b-4c0c-8d4e-0b826e171f31
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:37573/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 13:19:02 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": 1194.5181, "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_id3aef06b4-ce4e-448f-83fc-1b304a486a91
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-e49220bb-7c9b-4c0c-8d4e-0b826e171f31
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:37573/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 13:19:02 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": 1194.5181, "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_id3aef06b4-ce4e-448f-83fc-1b304a486a91
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-c5b699bb-43cb-47ef-9fd6-b13f8d02386a
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:37573/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 13:16:37 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_idd4db96af-2532-4146-bfdb-c574ea154453
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-c5b699bb-43cb-47ef-9fd6-b13f8d02386a
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:37573/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 13:16:37 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_idd4db96af-2532-4146-bfdb-c574ea154453
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-c5b699bb-43cb-47ef-9fd6-b13f8d02386a
Expected
msg_wt_stream
Reported
chatcmpl-c5b699bb-43cb-47ef-9fd6-b13f8d02386a
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-c5b699bb-43cb-47ef-9fd6-b13f8d02386a
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:37573/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 13:16:37 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_idd4db96af-2532-4146-bfdb-c574ea154453
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-c5b699bb-43cb-47ef-9fd6-b13f8d02386a
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:37573/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 13:16:37 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_idd4db96af-2532-4146-bfdb-c574ea154453
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-87ba7b2e-bec0-4b27-b0f9-2bdb75fc5f84
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:37573/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 13:17:18 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_id15d668d7-3293-4bcd-9797-c276101ce9c2
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-87ba7b2e-bec0-4b27-b0f9-2bdb75fc5f84
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:37573/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 13:17:18 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_id15d668d7-3293-4bcd-9797-c276101ce9c2
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-87ba7b2e-bec0-4b27-b0f9-2bdb75fc5f84
Expected
msg_wt_scache1h
Reported
chatcmpl-87ba7b2e-bec0-4b27-b0f9-2bdb75fc5f84
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-87ba7b2e-bec0-4b27-b0f9-2bdb75fc5f84
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:37573/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 13:17:18 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_id15d668d7-3293-4bcd-9797-c276101ce9c2
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-87ba7b2e-bec0-4b27-b0f9-2bdb75fc5f84
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:37573/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 13:17:18 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_id15d668d7-3293-4bcd-9797-c276101ce9c2
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-87ba7b2e-bec0-4b27-b0f9-2bdb75fc5f84
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:37573/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 13:17:18 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_id15d668d7-3293-4bcd-9797-c276101ce9c2
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-87ba7b2e-bec0-4b27-b0f9-2bdb75fc5f84
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:37573/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 13:17:18 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_id15d668d7-3293-4bcd-9797-c276101ce9c2
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)

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-a52fcdf1-6eb8-4f75-b359-3c43cbdf3b73
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:37573/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 13:17:07 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_id5875913e-213f-4a25-b11d-1dcd4b7c4c77
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

spantruth.scenario spantruth.driver, status UNSET

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)

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-a52fcdf1-6eb8-4f75-b359-3c43cbdf3b73
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:37573/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 13:17:07 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_id5875913e-213f-4a25-b11d-1dcd4b7c4c77
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

spantruth.scenario spantruth.driver, status UNSET

raw_gen_ai_request litellm, status OK

wrong litellm · anthropic/stream-cache-cumulative · response_id #
expected msg_wt_cumul, reported chatcmpl-a52fcdf1-6eb8-4f75-b359-3c43cbdf3b73
Expected
msg_wt_cumul
Reported
chatcmpl-a52fcdf1-6eb8-4f75-b359-3c43cbdf3b73
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)

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-a52fcdf1-6eb8-4f75-b359-3c43cbdf3b73
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:37573/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 13:17:07 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_id5875913e-213f-4a25-b11d-1dcd4b7c4c77
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

spantruth.scenario spantruth.driver, status UNSET

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)

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-a52fcdf1-6eb8-4f75-b359-3c43cbdf3b73
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:37573/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 13:17:07 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_id5875913e-213f-4a25-b11d-1dcd4b7c4c77
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

spantruth.scenario spantruth.driver, status UNSET

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)

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-a52fcdf1-6eb8-4f75-b359-3c43cbdf3b73
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:37573/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 13:17:07 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_id5875913e-213f-4a25-b11d-1dcd4b7c4c77
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

spantruth.scenario spantruth.driver, status UNSET

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)

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-a52fcdf1-6eb8-4f75-b359-3c43cbdf3b73
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:37573/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 13:17:07 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_id5875913e-213f-4a25-b11d-1dcd4b7c4c77
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

spantruth.scenario spantruth.driver, status UNSET

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)

spantruth.scenario spantruth.driver, status UNSET

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-beab8f67-52bd-4e27-96ce-9ccef8be3921
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:37573/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 13:16:56 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_idc86ada3d-7edd-4d58-97d7-c0f3448bb9c9
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

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)

spantruth.scenario spantruth.driver, status UNSET

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-beab8f67-52bd-4e27-96ce-9ccef8be3921
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:37573/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 13:16:56 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_idc86ada3d-7edd-4d58-97d7-c0f3448bb9c9
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

wrong litellm · anthropic/stream-cache-hit · response_id #
expected msg_wt_scache, reported chatcmpl-beab8f67-52bd-4e27-96ce-9ccef8be3921
Expected
msg_wt_scache
Reported
chatcmpl-beab8f67-52bd-4e27-96ce-9ccef8be3921
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)

spantruth.scenario spantruth.driver, status UNSET

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-beab8f67-52bd-4e27-96ce-9ccef8be3921
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:37573/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 13:16:56 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_idc86ada3d-7edd-4d58-97d7-c0f3448bb9c9
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

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)

spantruth.scenario spantruth.driver, status UNSET

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-beab8f67-52bd-4e27-96ce-9ccef8be3921
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:37573/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 13:16:56 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_idc86ada3d-7edd-4d58-97d7-c0f3448bb9c9
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

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)

spantruth.scenario spantruth.driver, status UNSET

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-beab8f67-52bd-4e27-96ce-9ccef8be3921
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:37573/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 13:16:56 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_idc86ada3d-7edd-4d58-97d7-c0f3448bb9c9
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

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)

spantruth.scenario spantruth.driver, status UNSET

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-beab8f67-52bd-4e27-96ce-9ccef8be3921
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:37573/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 13:16:56 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_idc86ada3d-7edd-4d58-97d7-c0f3448bb9c9
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

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-5eab6507078e/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-5eab6507078e/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-5eab6507078e/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-5eab6507078e/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-5eab6507078e/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-5eab6507078e/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-5eab6507078e/lib/python3.12/site-packages/httpx/_client.py", line 153, in __iter__ for chunk in self._stream: ^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-5eab6507078e/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-5eab6507078e/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.idd7e35494-b610-4b4a-a29d-a5b5c21e4763
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_idd7e35494-b610-4b4a-a29d-a5b5c21e4763
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-5eab6507078e/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-5eab6507078e/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-5eab6507078e/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-5eab6507078e/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.id00b01cfa-8437-4a26-917c-b7e3de13b496
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_id00b01cfa-8437-4a26-917c-b7e3de13b496
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-12623e98-970b-4c58-be0e-a2d3b0f341da
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:37573/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 13:18:04 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_id3d0ae8c0-ec9e-463e-9c30-7c446d9fd9e2
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-12623e98-970b-4c58-be0e-a2d3b0f341da
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:37573/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 13:18:04 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_id3d0ae8c0-ec9e-463e-9c30-7c446d9fd9e2
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-12623e98-970b-4c58-be0e-a2d3b0f341da
Expected
msg_wt_sthink
Reported
chatcmpl-12623e98-970b-4c58-be0e-a2d3b0f341da
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-12623e98-970b-4c58-be0e-a2d3b0f341da
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:37573/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 13:18:04 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_id3d0ae8c0-ec9e-463e-9c30-7c446d9fd9e2
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-12623e98-970b-4c58-be0e-a2d3b0f341da
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:37573/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 13:18:04 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_id3d0ae8c0-ec9e-463e-9c30-7c446d9fd9e2
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-12623e98-970b-4c58-be0e-a2d3b0f341da
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:37573/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 13:18:04 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_id3d0ae8c0-ec9e-463e-9c30-7c446d9fd9e2
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-f0b16d4c-ae86-465d-8784-e152cd5d4443
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:37573/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 13:17:41 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_id625dfff9-6291-4213-b4ca-7a71ca2f0e97
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-f0b16d4c-ae86-465d-8784-e152cd5d4443
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:37573/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 13:17:41 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_id625dfff9-6291-4213-b4ca-7a71ca2f0e97
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-f0b16d4c-ae86-465d-8784-e152cd5d4443
Expected
msg_wt_stools
Reported
chatcmpl-f0b16d4c-ae86-465d-8784-e152cd5d4443
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-f0b16d4c-ae86-465d-8784-e152cd5d4443
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:37573/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 13:17:41 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_id625dfff9-6291-4213-b4ca-7a71ca2f0e97
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-f0b16d4c-ae86-465d-8784-e152cd5d4443
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:37573/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 13:17:41 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_id625dfff9-6291-4213-b4ca-7a71ca2f0e97
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:37573/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 13:18:38 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": 956.852, "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_id91a5409c-e44b-4e58-adf8-2ec0ca5a4239
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:37573/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 13:18:38 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": 956.852, "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_id91a5409c-e44b-4e58-adf8-2ec0ca5a4239
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:37573/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 13:15:08 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": 1136.3571, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id38caba11-e8b2-4d4a-9738-3f5c3d2f87f2
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:37573/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 13:15:08 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": 1136.3571, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id38caba11-e8b2-4d4a-9738-3f5c3d2f87f2
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:37573/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 13:15:08 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": 1136.3571, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id38caba11-e8b2-4d4a-9738-3f5c3d2f87f2
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:37573/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 13:15:31 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": 1001.82, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id6a5fc324-7567-4974-8521-ec7f47a48ff4
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:37573/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 13:15:31 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": 1001.82, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id6a5fc324-7567-4974-8521-ec7f47a48ff4
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:37573/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 13:15:31 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": 1001.82, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id6a5fc324-7567-4974-8521-ec7f47a48ff4
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:37573/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 13:15:31 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": 1001.82, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id6a5fc324-7567-4974-8521-ec7f47a48ff4
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:37573/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 13:15:42 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": 1134.782, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id55e832d2-9aa4-44ec-85fd-126239255b9a
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:37573/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 13:15:42 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": 1134.782, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id55e832d2-9aa4-44ec-85fd-126239255b9a
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:37573/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 13:15:42 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": 1134.782, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id55e832d2-9aa4-44ec-85fd-126239255b9a
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:37573/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 13:15:42 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": 1134.782, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id55e832d2-9aa4-44ec-85fd-126239255b9a
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:37573/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 13:15:42 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": 1134.782, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id55e832d2-9aa4-44ec-85fd-126239255b9a
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)

litellm_request litellm, status ERROR

error.messageConnection error.
error.stack_trace File "/home/runner/.cache/spantruth/venvs/litellm-5eab6507078e/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-5eab6507078e/lib/python3.12/site-packages/openai/_streaming.py", line 49, in __next__ return self._iterator.__next__() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-5eab6507078e/lib/python3.12/site-packages/openai/_streaming.py", line 71, in __stream__ for sse in iterator: ^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/litellm-5eab6507078e/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.id2f7d783d-db47-469e-8cbb-8bc4f12705d8
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_id2f7d783d-db47-469e-8cbb-8bc4f12705d8
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

spantruth.scenario spantruth.driver, status UNSET

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:37573/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 13:15:53 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": 834.9999, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idfd7843e3-d5a2-44e5-9a5b-118cf808a2cd
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:37573/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 13:15:53 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": 834.9999, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idfd7843e3-d5a2-44e5-9a5b-118cf808a2cd
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:37573/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 13:15:53 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": 834.9999, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idfd7843e3-d5a2-44e5-9a5b-118cf808a2cd
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:37573/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 13:15:53 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": 834.9999, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idfd7843e3-d5a2-44e5-9a5b-118cf808a2cd
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:37573/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 13:15:53 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": 834.9999, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idfd7843e3-d5a2-44e5-9a5b-118cf808a2cd
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:37573/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 13:16:26 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": 956.7781, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id40aab20a-78dd-42f6-af91-1472547a674b
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:37573/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 13:16:26 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": 956.7781, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id40aab20a-78dd-42f6-af91-1472547a674b
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:37573/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 13:16:26 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": 956.7781, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id40aab20a-78dd-42f6-af91-1472547a674b
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:37573/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 13:16:26 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": 956.7781, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_id40aab20a-78dd-42f6-af91-1472547a674b
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:37573/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 13:16:04 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": 989.463, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idf80b61a1-b168-4652-b041-cdeabf616a3d
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:37573/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 13:16:04 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": 989.463, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idf80b61a1-b168-4652-b041-cdeabf616a3d
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:37573/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 13:16:04 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": 989.463, "batch_models": null, "batch_successful_requests": null, "batch_failed_requests": null, "litellm_model_name": null, "usage_object": null}
litellm.cache_hitFalse
litellm.call_idf80b61a1-b168-4652-b041-cdeabf616a3d
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/tmp9hqwpwrt/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/tmp9hqwpwrt/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":"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_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/tmp9hqwpwrt/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":"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":"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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.002281053
gen_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.00s
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"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmp9hqwpwrt/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.050044706
gen_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"}

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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.002281053
gen_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.00s
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"}

streaming response from {request_data[model]!r} took {duration:.2f}s logfire.anthropic, status UNSET

asyncTrue
code.filepath/tmp/tmp9hqwpwrt/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.050044706
gen_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"}

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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_aread
code.lineno284
duration0.042572071
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_aread
code.lineno284
duration0.042572071
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.functionrun
code.lineno214
duration0.044710221
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.035300936
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.035300936
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.041372212
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.041372212
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.041412122
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.041412122
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.035494717
gen_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.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 · 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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.035494717
gen_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.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 · 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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.033899295
gen_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.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 · 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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.033899295
gen_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.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-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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.037941801
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.037941801
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/driver.py
code.functionobserve
code.lineno45
duration0.038829761
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/driver.py
code.functionobserve
code.lineno45
duration0.040475214
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.040971842
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.040971842
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.040971842
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.052217723
gen_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.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"}

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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.052217723
gen_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.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"}

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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_aread
code.lineno284
duration0.01358694
gen_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-azstream
gen_ai.response.modelgpt-5-mini-2026-08-07
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.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 'wt-chat-deployment' 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":"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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_aread
code.lineno284
duration0.01358694
gen_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-azstream
gen_ai.response.modelgpt-5-mini-2026-08-07
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.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 'wt-chat-deployment' 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":"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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.015297236
gen_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-azstream
gen_ai.response.modelgpt-5-mini-2026-08-07
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.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 '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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.015297236
gen_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-azstream
gen_ai.response.modelgpt-5-mini-2026-08-07
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.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 '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 · gemini/async-basic · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Cost
$0.00104 on the wire. Nothing reaches a backend (-100%), at list price.
Reproduce
spantruth run --subject logfire --scenario gemini/async-basic
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing logfire · 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 logfire --scenario gemini/async-stream
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing logfire · 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 logfire --scenario gemini/async-stream-dropped
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing logfire · 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 logfire --scenario gemini/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

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

spantruth.scenario spantruth.driver, status UNSET

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

spantruth.scenario spantruth.driver, status UNSET

missing logfire · gemini/rate-limited · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Reproduce
spantruth run --subject logfire --scenario gemini/rate-limited
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing logfire · 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 logfire --scenario gemini/stream
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing logfire · 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 logfire --scenario gemini/stream-cache-hit
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing logfire · 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 logfire --scenario gemini/stream-dropped
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing logfire · 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 logfire --scenario gemini/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 logfire · 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 logfire --scenario gemini/stream-thinking
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

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

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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.01584201
gen_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/tmp9hqwpwrt/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.008136665
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.01584201
gen_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/tmp9hqwpwrt/spantruth/calls.py
code.function_gather.<locals>.one
code.lineno365
duration0.008136665
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_aread
code.lineno284
duration0.014498289
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_aread
code.lineno284
duration0.014498289
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.functionrun
code.lineno214
duration0.009651172
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_aread
code.lineno284
duration0.014905899
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_aread
code.lineno284
duration0.014905899
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.013608519
gen_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.01s
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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.013608519
gen_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.01s
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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.013566927
gen_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.01s
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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.013566927
gen_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.01s
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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.008804705
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.008804705
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.014941205
gen_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.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 · 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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.014941205
gen_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.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-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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.008805929
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.008805929
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.00929207
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.00929207
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.013961163
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.013961163
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/driver.py
code.functioninstrumented
code.lineno233
duration0.15883465
gen_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.16s
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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/driver.py
code.functioninstrumented
code.lineno233
duration0.202146695
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.009885385
gen_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/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.009885385
gen_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/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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.011835885
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.011835885
gen_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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.008530936
gen_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.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 · 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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.008530936
gen_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.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

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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.008530936
gen_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.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 · 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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.015406155
gen_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.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 · 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/tmp9hqwpwrt/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/tmp9hqwpwrt/spantruth/calls.py
code.function_read
code.lineno246
duration0.015406155
gen_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.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/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/tmp9hqwpwrt/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-6cc2e7a2a99f5388247f9f04a7801674"

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-6cc2e7a2a99f5388247f9f04a7801674"

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-6cc2e7a2a99f5388247f9f04a7801674"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-6cc2e7a2a99f5388247f9f04a7801674"

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-6cc2e7a2a99f5388247f9f04a7801674"

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-6cc2e7a2a99f5388247f9f04a7801674"

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-6cc2e7a2a99f5388247f9f04a7801674"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-6cc2e7a2a99f5388247f9f04a7801674"

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-8ecd40b20045e0e61c55f19735b9184f"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8ecd40b20045e0e61c55f19735b9184f"

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 0x78b5047e30b0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5046d3110>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5047e30b0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5046d3110>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5047e30b0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5046d3110>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5047e30b0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5046d3110>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5047e30b0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5046d3110>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5047e30b0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x78b5046d3110>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8de8b29e780d49e743194755c504d2b1"

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 0x7a89724074a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5cea4d22f47a6298d9e0dd35eecbc8f4"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5cea4d22f47a6298d9e0dd35eecbc8f4"

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 0x7a89724074a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5cea4d22f47a6298d9e0dd35eecbc8f4"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5cea4d22f47a6298d9e0dd35eecbc8f4"

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 0x7a89724074a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5cea4d22f47a6298d9e0dd35eecbc8f4"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5cea4d22f47a6298d9e0dd35eecbc8f4"

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 0x7a89724074a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5cea4d22f47a6298d9e0dd35eecbc8f4"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5cea4d22f47a6298d9e0dd35eecbc8f4"

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 0x7a89724074a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5cea4d22f47a6298d9e0dd35eecbc8f4"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5cea4d22f47a6298d9e0dd35eecbc8f4"

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 0x7844544fd9a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-b6c1f2ec5f57618ac6bf7227286d5e17"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b6c1f2ec5f57618ac6bf7227286d5e17"

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 0x7844544fd9a0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-b6c1f2ec5f57618ac6bf7227286d5e17"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b6c1f2ec5f57618ac6bf7227286d5e17"

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 0x7603aa046b70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4fc9e294b31c2e51082ab7217655d6dd"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4fc9e294b31c2e51082ab7217655d6dd"

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 0x7603aa046b70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4fc9e294b31c2e51082ab7217655d6dd"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4fc9e294b31c2e51082ab7217655d6dd"

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 0x7603aa046b70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-4fc9e294b31c2e51082ab7217655d6dd"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4fc9e294b31c2e51082ab7217655d6dd"

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 0x7a33181e1280>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-7718d51d608acdac6be441d395736640"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-7718d51d608acdac6be441d395736640"

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 0x7a33181e1280>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-7718d51d608acdac6be441d395736640"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-7718d51d608acdac6be441d395736640"

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-ac45a583a2565280c3fee9b7107449ff"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-ac45a583a2565280c3fee9b7107449ff"

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-71c38790de9f532e9964e685cb8d195d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-71c38790de9f532e9964e685cb8d195d"

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-71c38790de9f532e9964e685cb8d195d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-71c38790de9f532e9964e685cb8d195d"

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-71c38790de9f532e9964e685cb8d195d"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-71c38790de9f532e9964e685cb8d195d"

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-c80a6efd5097d7e3a036e9eff6d6bfa1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c80a6efd5097d7e3a036e9eff6d6bfa1"

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-c80a6efd5097d7e3a036e9eff6d6bfa1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c80a6efd5097d7e3a036e9eff6d6bfa1"

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-c80a6efd5097d7e3a036e9eff6d6bfa1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c80a6efd5097d7e3a036e9eff6d6bfa1"

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-22b1c223eff3e45a907c16cee549c8fb"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-22b1c223eff3e45a907c16cee549c8fb"

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-60efdc7350b734754315351da736ce72"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-60efdc7350b734754315351da736ce72"

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-e86563113dfa32421d140ebfcf95baf0"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e86563113dfa32421d140ebfcf95baf0"

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-9171af3227fbb5b7743e0fce37a368b1"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9171af3227fbb5b7743e0fce37a368b1"

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 0x71d701de8b30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d6f3c4ec4aad0bb08ff1033599ea86f8"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d6f3c4ec4aad0bb08ff1033599ea86f8"

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 0x71d701de8b30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d6f3c4ec4aad0bb08ff1033599ea86f8"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d6f3c4ec4aad0bb08ff1033599ea86f8"

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 0x71d701de8b30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d6f3c4ec4aad0bb08ff1033599ea86f8"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d6f3c4ec4aad0bb08ff1033599ea86f8"

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 0x71d701de8b30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d6f3c4ec4aad0bb08ff1033599ea86f8"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d6f3c4ec4aad0bb08ff1033599ea86f8"

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 0x71d701de8b30>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d6f3c4ec4aad0bb08ff1033599ea86f8"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d6f3c4ec4aad0bb08ff1033599ea86f8"

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 0x7e585755b140>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

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 0x7e585755b140>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

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 0x7e585755b140>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

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 0x7e585755b140>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

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 0x7e585755b140>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

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 0x7e585755b140>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

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 0x7e585755b140>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9d6ff54f95b8f6f841bb396b31dd263b"

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 0x7cf89b8292e0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

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 0x7cf89b8292e0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

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 0x7cf89b8292e0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

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 0x7cf89b8292e0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

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 0x7cf89b8292e0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

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 0x7cf89b8292e0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

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 0x7cf89b8292e0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8d0147f899e9114237c4e4a4d7296688"

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 0x7b7e9a97a870>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

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 0x7b7e9a97a870>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

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 0x7b7e9a97a870>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

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 0x7b7e9a97a870>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

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 0x7b7e9a97a870>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

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 0x7b7e9a97a870>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

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 0x7b7e9a97a870>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9a33b034b5676937214f5cf8e4b09908"

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 0x768b1e060a70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-287b0623c5e6066fa98a7f4736709fb2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-287b0623c5e6066fa98a7f4736709fb2"

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 0x768b1e060a70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-287b0623c5e6066fa98a7f4736709fb2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-287b0623c5e6066fa98a7f4736709fb2"

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 0x768b1e060a70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-287b0623c5e6066fa98a7f4736709fb2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-287b0623c5e6066fa98a7f4736709fb2"

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 0x768b1e060a70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-287b0623c5e6066fa98a7f4736709fb2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-287b0623c5e6066fa98a7f4736709fb2"

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 0x768b1e060a70>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-287b0623c5e6066fa98a7f4736709fb2"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-287b0623c5e6066fa98a7f4736709fb2"

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 0x7dbb92d9fcb0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

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 0x7dbb92d9fcb0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

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 0x7dbb92d9fcb0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

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 0x7dbb92d9fcb0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

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 0x7dbb92d9fcb0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

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 0x7dbb92d9fcb0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-d8bd7055bf2625d7662e2248455fa363"

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 0x77da57e2d010>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-1402c8c25ff2bd3040f8f5152a2ae5be"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-1402c8c25ff2bd3040f8f5152a2ae5be"

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 0x77da57e2d010>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-1402c8c25ff2bd3040f8f5152a2ae5be"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-1402c8c25ff2bd3040f8f5152a2ae5be"

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 0x767d0818e9c0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e2fd0cc74542b0d9d24174debb1164f5"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e2fd0cc74542b0d9d24174debb1164f5"

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 0x767d0818e9c0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e2fd0cc74542b0d9d24174debb1164f5"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e2fd0cc74542b0d9d24174debb1164f5"

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 0x767d0818e9c0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-e2fd0cc74542b0d9d24174debb1164f5"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e2fd0cc74542b0d9d24174debb1164f5"

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 0x774417746600>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5513238c60cabf83844b99407232d934"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5513238c60cabf83844b99407232d934"

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 0x774417746600>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5513238c60cabf83844b99407232d934"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5513238c60cabf83844b99407232d934"

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 0x774417746600>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-5513238c60cabf83844b99407232d934"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5513238c60cabf83844b99407232d934"

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 0x731d7ef6e600>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-c052fd83bca0931b00d8baefdb69bb59"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c052fd83bca0931b00d8baefdb69bb59"

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 0x731d7ef6e600>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-c052fd83bca0931b00d8baefdb69bb59"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c052fd83bca0931b00d8baefdb69bb59"

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 0x723c9c458ef0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

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 0x723c9c458ef0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

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 0x723c9c458ef0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

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 0x723c9c458ef0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

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 0x723c9c458ef0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

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 0x723c9c458ef0>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-451d37d24fc941471b1b7ab9299e0922"

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 0x7865914bd610>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-64e2462b8b988155c519ef653fc88c2c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-64e2462b8b988155c519ef653fc88c2c"

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 0x7865914bd610>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-64e2462b8b988155c519ef653fc88c2c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-64e2462b8b988155c519ef653fc88c2c"

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 0x7865914bd610>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-64e2462b8b988155c519ef653fc88c2c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-64e2462b8b988155c519ef653fc88c2c"

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 0x7865914bd610>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-64e2462b8b988155c519ef653fc88c2c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-64e2462b8b988155c519ef653fc88c2c"

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 0x7865914bd610>"
mlflow.spanType"CHAT_MODEL"
mlflow.traceRequestId"tr-64e2462b8b988155c519ef653fc88c2c"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-64e2462b8b988155c519ef653fc88c2c"

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-285a34c9d691bab01aa7a8cc438f0894"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-285a34c9d691bab01aa7a8cc438f0894"

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-285a34c9d691bab01aa7a8cc438f0894"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-285a34c9d691bab01aa7a8cc438f0894"

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-058c716fdc52391b3c7b1d54b7325ff9"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-058c716fdc52391b3c7b1d54b7325ff9"

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-a76bb2e286e5bbf6acfdea864a8fbe09"
model"wt-chat-deployment"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-a76bb2e286e5bbf6acfdea864a8fbe09"

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-085e1a2f0b8d03718d6e08a3dfa09eee"
model"wt-chat-deployment"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-085e1a2f0b8d03718d6e08a3dfa09eee"

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-94c8d9fadc27c03fe43000ffe88578ce"
model"wt-chat-deployment"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-94c8d9fadc27c03fe43000ffe88578ce"

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-8adfe8f11dcfa8925ffb4c00f1b019a4"
model"wt-chat-deployment"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-8adfe8f11dcfa8925ffb4c00f1b019a4"

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 13:25:53 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-728efff30a7217355ca704e513bebbd5"

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 13:25:53 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-728efff30a7217355ca704e513bebbd5"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-728efff30a7217355ca704e513bebbd5"

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 13:25:53 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-728efff30a7217355ca704e513bebbd5"

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 13:25:53 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-728efff30a7217355ca704e513bebbd5"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-728efff30a7217355ca704e513bebbd5"

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 13:25:53 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-728efff30a7217355ca704e513bebbd5"

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 13:25:53 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-728efff30a7217355ca704e513bebbd5"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-728efff30a7217355ca704e513bebbd5"

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 13:25:53 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-728efff30a7217355ca704e513bebbd5"

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 13:25:53 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-728efff30a7217355ca704e513bebbd5"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-728efff30a7217355ca704e513bebbd5"

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-b365695bc3f3494933ee0bb0e6d2974e"

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-fb4cfcc6c8de5bd089477cf7f5f751d3"

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-e476bcd38b69858bfc650f44714dccf8"

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 13:24:17 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-626008e79d5785c2066941ab6f4e0074"

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 13:24:17 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-626008e79d5785c2066941ab6f4e0074"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-626008e79d5785c2066941ab6f4e0074"

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 13:24:17 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-626008e79d5785c2066941ab6f4e0074"

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 13:24:17 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-626008e79d5785c2066941ab6f4e0074"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-626008e79d5785c2066941ab6f4e0074"

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 13:24:17 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-626008e79d5785c2066941ab6f4e0074"

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 13:24:17 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-626008e79d5785c2066941ab6f4e0074"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-626008e79d5785c2066941ab6f4e0074"

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 13:24:17 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-626008e79d5785c2066941ab6f4e0074"

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 13:24:17 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-626008e79d5785c2066941ab6f4e0074"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-626008e79d5785c2066941ab6f4e0074"

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 13:25:01 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-4790e6a8b840214ef9371ee7954e4ae7"

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 13:25:01 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-4790e6a8b840214ef9371ee7954e4ae7"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4790e6a8b840214ef9371ee7954e4ae7"

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 13:25:01 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-4790e6a8b840214ef9371ee7954e4ae7"

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 13:25:01 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-4790e6a8b840214ef9371ee7954e4ae7"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4790e6a8b840214ef9371ee7954e4ae7"

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 13:25:01 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-4790e6a8b840214ef9371ee7954e4ae7"

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 13:25:01 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-4790e6a8b840214ef9371ee7954e4ae7"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4790e6a8b840214ef9371ee7954e4ae7"

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 13:25:01 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-4790e6a8b840214ef9371ee7954e4ae7"

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 13:25:01 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-4790e6a8b840214ef9371ee7954e4ae7"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4790e6a8b840214ef9371ee7954e4ae7"

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 13:25:01 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-4790e6a8b840214ef9371ee7954e4ae7"

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 13:25:01 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-4790e6a8b840214ef9371ee7954e4ae7"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-4790e6a8b840214ef9371ee7954e4ae7"

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-1a31f85ebcd9e767ed79ac8ac28b8a45"

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-1a31f85ebcd9e767ed79ac8ac28b8a45"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-1a31f85ebcd9e767ed79ac8ac28b8a45"

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-9523d7cd2a780fa641346a9b2f910387"

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-18be04ba1ce7b78ab964d3aead6a7bc4"

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-69a256222794d3b32b2dad9435907f42"

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-fd0ab62b1c994b31c6e7514e25a48e25"

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-c19af022e0994cc34b5084e61023da0a"

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 13:24:44 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-b851620b1c3c771bc0c3d2788338c126"

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 13:24:44 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-b851620b1c3c771bc0c3d2788338c126"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b851620b1c3c771bc0c3d2788338c126"

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 13:24:44 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-b851620b1c3c771bc0c3d2788338c126"

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 13:24:44 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-b851620b1c3c771bc0c3d2788338c126"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b851620b1c3c771bc0c3d2788338c126"

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 13:24:44 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-b851620b1c3c771bc0c3d2788338c126"

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 13:24:44 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-b851620b1c3c771bc0c3d2788338c126"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b851620b1c3c771bc0c3d2788338c126"

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 13:24:44 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-b851620b1c3c771bc0c3d2788338c126"

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 13:24:44 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-b851620b1c3c771bc0c3d2788338c126"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b851620b1c3c771bc0c3d2788338c126"

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 13:24:44 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-b851620b1c3c771bc0c3d2788338c126"

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 13:24:44 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-b851620b1c3c771bc0c3d2788338c126"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b851620b1c3c771bc0c3d2788338c126"

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-7e60dd5be6516eefa08fe925de74b735"
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-7e60dd5be6516eefa08fe925de74b735"
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-7e60dd5be6516eefa08fe925de74b735"
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-7e60dd5be6516eefa08fe925de74b735"

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-7e60dd5be6516eefa08fe925de74b735"
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-7e60dd5be6516eefa08fe925de74b735"
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-7e60dd5be6516eefa08fe925de74b735"
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-7e60dd5be6516eefa08fe925de74b735"

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-25363279e88bc94ee0b95d50ba8ceb98"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-25363279e88bc94ee0b95d50ba8ceb98"

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-752cbd3d112f98132a6fb633fa050e0c"
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-752cbd3d112f98132a6fb633fa050e0c"
model"gpt-5-nano"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-752cbd3d112f98132a6fb633fa050e0c"

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-752cbd3d112f98132a6fb633fa050e0c"
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-752cbd3d112f98132a6fb633fa050e0c"
model"gpt-5-nano"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-752cbd3d112f98132a6fb633fa050e0c"

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-752cbd3d112f98132a6fb633fa050e0c"
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-752cbd3d112f98132a6fb633fa050e0c"
model"gpt-5-nano"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-752cbd3d112f98132a6fb633fa050e0c"

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-5a8609e2f8ce24fd5c7a205dd06e8860"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-5a8609e2f8ce24fd5c7a205dd06e8860"

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-03a8b79a9d2381fc1d85e59db55dad62"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-03a8b79a9d2381fc1d85e59db55dad62"

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-c74b83a23a3fcfe2a304b81ad4d704e9"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c74b83a23a3fcfe2a304b81ad4d704e9"

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-19c3a16e1822c09c222d0e1437712082"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-19c3a16e1822c09c222d0e1437712082"

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-19c3a16e1822c09c222d0e1437712082"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-19c3a16e1822c09c222d0e1437712082"

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-19c3a16e1822c09c222d0e1437712082"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-19c3a16e1822c09c222d0e1437712082"

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-19c3a16e1822c09c222d0e1437712082"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-19c3a16e1822c09c222d0e1437712082"

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-19c3a16e1822c09c222d0e1437712082"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-19c3a16e1822c09c222d0e1437712082"

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-9c2ceb88dfdb4c35ca3d88098f6469e9"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-9c2ceb88dfdb4c35ca3d88098f6469e9"

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-ce94374e3e6e34916523fe4b3516fe4a"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-ce94374e3e6e34916523fe4b3516fe4a"

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-ce94374e3e6e34916523fe4b3516fe4a"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-ce94374e3e6e34916523fe4b3516fe4a"

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-c8a028da4464c06f46e6e4bc9bb37b76"
model"gpt-5.6-luna"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c8a028da4464c06f46e6e4bc9bb37b76"

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-c8a028da4464c06f46e6e4bc9bb37b76"
model"gpt-5.6-luna"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c8a028da4464c06f46e6e4bc9bb37b76"

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-c8a028da4464c06f46e6e4bc9bb37b76"
model"gpt-5.6-luna"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c8a028da4464c06f46e6e4bc9bb37b76"

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-238c52e016522d012aac4d20d9aad715"
model"deepseek-flash"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-238c52e016522d012aac4d20d9aad715"

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-11ec7841a32a69035f4fb764447385c2"
model"llama-3.3-70b-versatile"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-11ec7841a32a69035f4fb764447385c2"

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-525ff11d1adb8deec0cd28692ed82225"
model"qwen3.5-27b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-525ff11d1adb8deec0cd28692ed82225"

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-08548c7f27566d13924fe2d59db941c8"
model"qwen3.5-27b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-08548c7f27566d13924fe2d59db941c8"

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-344784d500962c0c2075f15d0c02eaae"
model"qwen3.5:0.8b"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-344784d500962c0c2075f15d0c02eaae"

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-0d8fb83e5f48c76f7f720e6fef7d1739"
model"qwen3.5-27b"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-0d8fb83e5f48c76f7f720e6fef7d1739"

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-2b5f95e8d24ffd1225ae2d4ff57cb72e"
model"qwen3.5-27b"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-2b5f95e8d24ffd1225ae2d4ff57cb72e"

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-2b5f95e8d24ffd1225ae2d4ff57cb72e"
model"qwen3.5-27b"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-2b5f95e8d24ffd1225ae2d4ff57cb72e"

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-bb590bb8cdfbaf4abba2cbec1b21c3d4"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-bb590bb8cdfbaf4abba2cbec1b21c3d4"

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-b37b6d46545d487750ec021313b8ea04"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-b37b6d46545d487750ec021313b8ea04"

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-c07234a5f432299e20ce7d8175b85b2d"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-c07234a5f432299e20ce7d8175b85b2d"

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-ca8ec04a2e91c146cf7275246bc60319"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-ca8ec04a2e91c146cf7275246bc60319"

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-ca8ec04a2e91c146cf7275246bc60319"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-ca8ec04a2e91c146cf7275246bc60319"

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-e2ecbeb22c673f986661e408129b1811"
model"gpt-6-luna"
streamtrue

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e2ecbeb22c673f986661e408129b1811"

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-bd87a3f4d5593afb5e35344c3b123535"
model"gpt-5-mini"

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-bd87a3f4d5593afb5e35344c3b123535"

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-249ee0ca2ce21e32e40d2c94da7095bc"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-249ee0ca2ce21e32e40d2c94da7095bc"

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-73d3fc963033e87925490f285e2616da"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-73d3fc963033e87925490f285e2616da"

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-73d3fc963033e87925490f285e2616da"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-73d3fc963033e87925490f285e2616da"

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-77d4eaa67bae9795d887de3f61f44f25"
model"gpt-5.6-luna"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-77d4eaa67bae9795d887de3f61f44f25"

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-77d4eaa67bae9795d887de3f61f44f25"
model"gpt-5.6-luna"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-77d4eaa67bae9795d887de3f61f44f25"

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-77d4eaa67bae9795d887de3f61f44f25"
model"gpt-5.6-luna"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-77d4eaa67bae9795d887de3f61f44f25"

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-df65ca4ff0f2d2dab943aa4497005f0e"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-df65ca4ff0f2d2dab943aa4497005f0e"

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-cce8f4504b2938dce99a90fe98c80018"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-cce8f4504b2938dce99a90fe98c80018"

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-055725f66883e07e035292fb28441611"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-055725f66883e07e035292fb28441611"

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-e7cce958340e82249ffcfaa8d0835202"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-e7cce958340e82249ffcfaa8d0835202"

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-77adf75408fffdc34691752aaac94439"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-77adf75408fffdc34691752aaac94439"

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-f4b301071c46a89100b05e75c5975440"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-f4b301071c46a89100b05e75c5975440"

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-f4b301071c46a89100b05e75c5975440"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-f4b301071c46a89100b05e75c5975440"

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-f4b301071c46a89100b05e75c5975440"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-f4b301071c46a89100b05e75c5975440"

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-f4b301071c46a89100b05e75c5975440"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-f4b301071c46a89100b05e75c5975440"

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-f4b301071c46a89100b05e75c5975440"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-f4b301071c46a89100b05e75c5975440"

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-0c5da8a4e1f52f746c2bc94cfac3a1c8"
model"gpt-5-mini"
streamtrue

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-0c5da8a4e1f52f746c2bc94cfac3a1c8"

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-fa34d41504b47ada917b8a0069ae9dd6"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-fa34d41504b47ada917b8a0069ae9dd6"

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-fa34d41504b47ada917b8a0069ae9dd6"
model"gpt-5-mini"
streamtrue
stream_options{"include_usage": true}

spantruth.scenario spantruth.driver, status UNSET

mlflow.spanTypenull
mlflow.traceRequestId"tr-fa34d41504b47ada917b8a0069ae9dd6"

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-3ca87dea00ed08cf0a071c6ea6e12dde"
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-3ca87dea00ed08cf0a071c6ea6e12dde"

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-efc4e1b4f9001566f7e1693664803eb4"
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-efc4e1b4f9001566f7e1693664803eb4"

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:37573/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:37573/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:37573/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": 1795785550.8470776, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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": 1795785550.8470776, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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": 1795785470.32013, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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": 1795785470.32013, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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": 1795785481.4036748, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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": 1795785481.4036748, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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": 1795785492.8456051, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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": 1795785492.8456051, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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": 1795785498.8077884, "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, "image": null, "input_transformations": 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:37573/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": 1795785498.8077884, "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, "image": null, "input_transformations": 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:37573/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": 1795785539.1773612, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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": 1795785539.1773612, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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": 1795785510.514585, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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": 1795785510.514585, "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, "image": null, "input_transformations": 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, "cache_write_tokens_details": null}, "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:37573/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:37573/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 13:27:02 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 13:27:09 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 13:27:16 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 13:27:16 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 13:25:44 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 13:26:19 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 13:25:51 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 13:26:26 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 13:25:58 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 13:26:12 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 13:26:05 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 0x735ec5d7bc40>
server.address127.0.0.1
server.port37573

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 0x735ec5d7bc40>
server.address127.0.0.1
server.port37573

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 0x735ec5d7bc40>
server.address127.0.0.1
server.port37573

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 0x735ec5d7bc40>
server.address127.0.0.1
server.port37573

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:37573/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.03370976448059082
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.port37573
service.namespantruth
telemetry.sdk.nameopenlit

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37573/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.048749685287475586
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.port37573
service.namespantruth
telemetry.sdk.nameopenlit

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37573/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.04630279541015625
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.port37573
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:37573/s/anthropic--async-concurrent-streams/v1/messages

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37573/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.003145830971854074
gen_ai.server.time_to_first_token0.01853346824645996
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.port37573
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.0008796283176967076
gen_ai.server.time_to_first_token0.0001499652862548828
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.port37573
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:37573/s/anthropic--async-concurrent-streams/v1/messages

POST opentelemetry.instrumentation.httpx, status UNSET

http.methodPOST
http.status_code200
http.urlhttp://127.0.0.1:37573/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.003145830971854074
gen_ai.server.time_to_first_token0.01853346824645996
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.port37573
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.0008796283176967076
gen_ai.server.time_to_first_token0.0001499652862548828
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.port37573
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:37573/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:37573/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:37573/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:37573/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.02529287338256836
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.port37573
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:37573/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.02529287338256836
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.port37573
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:37573/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.016400814056396484
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.port37573
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:37573/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.016400814056396484
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.port37573
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:37573/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:37573/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.0021400792258126394
gen_ai.server.time_to_first_token0.009928703308105469
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.port37573
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:37573/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.0021400792258126394
gen_ai.server.time_to_first_token0.009928703308105469
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.port37573
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:37573/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.0021400792258126394
gen_ai.server.time_to_first_token0.009928703308105469
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.port37573
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:37573/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.0021400792258126394
gen_ai.server.time_to_first_token0.009928703308105469
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.port37573
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:37573/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.0026873179844447543
gen_ai.server.time_to_first_token0.011919736862182617
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.port37573
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:37573/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.0026873179844447543
gen_ai.server.time_to_first_token0.011919736862182617
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.port37573
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:37573/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.0020273072378976004
gen_ai.server.time_to_first_token0.009235620498657227
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.port37573
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:37573/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.0020273072378976004
gen_ai.server.time_to_first_token0.009235620498657227
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.port37573
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:37573/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.0020273072378976004
gen_ai.server.time_to_first_token0.009235620498657227
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.port37573
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:37573/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.0020273072378976004
gen_ai.server.time_to_first_token0.009235620498657227
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.port37573
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:37573/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:37573/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:37573/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:37573/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:37573/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.001369036160982572
gen_ai.server.time_to_first_token0.011235237121582031
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.port37573
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:37573/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.02546072006225586
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.port37573
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.1101388931274414
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.0006378889083862305
gen_ai.server.time_to_first_token0.09501981735229492
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.0006378889083862305
gen_ai.server.time_to_first_token0.09501981735229492
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.054946184158325195
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.06098437309265137
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.00041937828063964844
gen_ai.server.time_to_first_token0.040728092193603516
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.00041937828063964844
gen_ai.server.time_to_first_token0.040728092193603516
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.0005630254745483398
gen_ai.server.time_to_first_token0.059714555740356445
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.0005630254745483398
gen_ai.server.time_to_first_token0.059714555740356445
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.0005266666412353516
gen_ai.server.time_to_first_token0.0493319034576416
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.0005266666412353516
gen_ai.server.time_to_first_token0.0493319034576416
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.0005266666412353516
gen_ai.server.time_to_first_token0.0493319034576416
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.0005266666412353516
gen_ai.server.time_to_first_token0.0493319034576416
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.055823564529418945
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.055823564529418945
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.055823564529418945
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:37573/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:37573/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:37573/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:37573/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.02304220199584961
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.port37573
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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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.00028139352798461914
gen_ai.server.time_to_first_token0.004096508026123047
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.port37573
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:37573/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.00028139352798461914
gen_ai.server.time_to_first_token0.004096508026123047
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.port37573
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:37573/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.00028139352798461914
gen_ai.server.time_to_first_token0.004096508026123047
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.port37573
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:37573/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.00028139352798461914
gen_ai.server.time_to_first_token0.004096508026123047
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.port37573
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:37573/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.0003069400787353516
gen_ai.server.time_to_first_token0.0036461353302001953
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.port37573
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-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

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

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 · 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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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:37573/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

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

spantruth.scenario spantruth.driver, status UNSET

missing otel-official · 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 otel-official --scenario gemini/async-stream
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing otel-official · 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 otel-official --scenario gemini/async-stream-dropped
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing otel-official · 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 otel-official --scenario gemini/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

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

spantruth.scenario spantruth.driver, status UNSET

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

spantruth.scenario spantruth.driver, status UNSET

missing otel-official · gemini/rate-limited · span.recordedGhost span #
no LLM span arrived
Note
no LLM span arrived
Reproduce
spantruth run --subject otel-official --scenario gemini/rate-limited
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing otel-official · 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 otel-official --scenario gemini/stream
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing otel-official · 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 otel-official --scenario gemini/stream-cache-hit
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing otel-official · 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 otel-official --scenario gemini/stream-dropped
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

missing otel-official · 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 otel-official --scenario gemini/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 otel-official · 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 otel-official --scenario gemini/stream-thinking
Rule
spantruth rule: a call the application made produces at least one span.
Exported spans (1)

spantruth.scenario spantruth.driver, status UNSET

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

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.103272224
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.port37573
url.fullhttp://127.0.0.1:37573/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.09768213899997136
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
server.address127.0.0.1
server.port37573

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.050809886
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.port37573
url.fullhttp://127.0.0.1:37573/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.10456592199989245
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
server.address127.0.0.1
server.port37573

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.105433714
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.port37573
url.fullhttp://127.0.0.1:37573/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.09953829799997038
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
server.address127.0.0.1
server.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.10079219099998227
gen_ai.usage.input_tokens1913
gen_ai.usage.output_tokens1
server.address127.0.0.1
server.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.045859877
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.port37573
url.fullhttp://127.0.0.1:37573/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.038324837000345724
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
server.address127.0.0.1
server.port37573

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.045238097
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.port37573
url.fullhttp://127.0.0.1:37573/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.038037586999962514
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.port37573

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.046321655
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.port37573
url.fullhttp://127.0.0.1:37573/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.038867135000145936
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.port37573

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.046208241
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.port37573
url.fullhttp://127.0.0.1:37573/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.039549916999931156
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.port37573

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.046966595
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.port37573
url.fullhttp://127.0.0.1:37573/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.038855511999827286
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
server.address127.0.0.1
server.port37573

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.038504893
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.port37573
url.fullhttp://127.0.0.1:37573/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.03088299699993513
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
server.address127.0.0.1
server.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.03143401700026516
gen_ai.usage.input_tokens1913
gen_ai.usage.output_tokens1
server.address127.0.0.1
server.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.03920498200022848
gen_ai.usage.input_tokens1913
gen_ai.usage.output_tokens1
server.address127.0.0.1
server.port37573

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.041727925
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.port37573
url.fullhttp://127.0.0.1:37573/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.036006184999678226
gen_ai.usage.input_tokens1831
gen_ai.usage.output_tokens1439
gen_ai.usage.reasoning.output_tokens1103
server.address127.0.0.1
server.port37573

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.043424569
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.port37573
url.fullhttp://127.0.0.1:37573/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.03693323299967233
gen_ai.usage.input_tokens1619
gen_ai.usage.output_tokens197
server.address127.0.0.1
server.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.port37573
url.fullhttp://127.0.0.1:37573/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.port37573

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.id01a21d35-8275-74cf-98ae-a520a558d425
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.051024089000293316
gen_ai.conversation.id01a21d35-8275-74cf-98ae-a52133ebfbcb
gen_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.port37573

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d35-8275-74cf-98ae-a520a558d425
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.id01a21d35-8275-74cf-98ae-a52133ebfbcb
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.id01a21d35-680f-76e1-9b24-4299144ba043
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.04704035099985049
gen_ai.conversation.id01a21d35-680f-76e1-9b24-429ad1ca209d
gen_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.port37573

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d35-680f-76e1-9b24-4299144ba043
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.id01a21d35-680f-76e1-9b24-429ad1ca209d
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.id01a21d34-5912-7152-9c4b-125812e58a33
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d34-5912-7152-9c4b-12590c9e8342
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.port37573

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d34-5912-7152-9c4b-125812e58a33
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d34-5912-7152-9c4b-12590c9e8342
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.id01a21d34-8ce7-77f6-bad1-8feb007463fa
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.0510109800002283
gen_ai.conversation.id01a21d34-8ce7-77f6-bad1-8fec198d173c
gen_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.port37573

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d34-8ce7-77f6-bad1-8feb007463fa
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.id01a21d34-8ce7-77f6-bad1-8fec198d173c
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.id01a21d34-0a07-713f-84e6-224a435d7855
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.04103466800006572
gen_ai.conversation.id01a21d34-0a07-713f-84e6-224bf99f3652
gen_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.port37573

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d34-0a07-713f-84e6-224a435d7855
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.id01a21d34-0a07-713f-84e6-224bf99f3652
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.id01a21d34-bf0b-70c7-8bf2-b2fafe580449
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.04630996200012305
gen_ai.conversation.id01a21d34-bf0b-70c7-8bf2-b2fbdfc64c76
gen_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.port37573

invoke_agent agent pydantic-ai, status UNSET

agent_nameagent
final_resultThe capital of France is Paris.
gen_ai.agent.call.id01a21d34-bf0b-70c7-8bf2-b2fafe580449
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.id01a21d34-bf0b-70c7-8bf2-b2fbdfc64c76
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.id01a21d34-a5f4-77bd-8e75-a8e25c7d770e
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d34-a5f4-77bd-8e75-a8e3faa10970
gen_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.port37573

invoke_agent agent pydantic-ai, status UNSET

agent_nameagent
final_resultThe capital of France is Paris.
gen_ai.agent.call.id01a21d34-a5f4-77bd-8e75-a8e25c7d770e
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.id01a21d34-a5f4-77bd-8e75-a8e3faa10970
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.id01a21d35-041f-75e0-9bf0-a90af488e44a
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.02306601000009323
gen_ai.conversation.id01a21d35-041f-75e0-9bf0-a90b28ca23e1
gen_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.port37573

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d35-041f-75e0-9bf0-a90af488e44a
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d35-041f-75e0-9bf0-a90b28ca23e1
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.id01a21d32-e5b9-7428-838a-3e68c22778da
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d32-e5b9-7428-838a-3e69a7148619
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.port37573

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d32-e5b9-7428-838a-3e68c22778da
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d32-e5b9-7428-838a-3e69a7148619
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.id01a21d33-1a5a-77d3-b1f3-ca70f3dd2158
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d33-1a5a-77d3-b1f3-ca71a25a1cc7
gen_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.port37573

invoke_agent agent pydantic-ai, status UNSET

agent_nameagent
final_resultThe capital of France is Paris.
gen_ai.agent.call.id01a21d33-1a5a-77d3-b1f3-ca70f3dd2158
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.id01a21d33-1a5a-77d3-b1f3-ca71a25a1cc7
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.id01a21d35-95ae-7749-b013-9d9f08a2abfa
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.10180902799993419
gen_ai.conversation.id01a21d35-95ae-7749-b013-9da07f492b17
gen_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.port37573

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d35-95ae-7749-b013-9d9f08a2abfa
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d35-95ae-7749-b013-9da07f492b17
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.id01a21d33-0927-74df-8acb-4f318207a330
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.022111093000148685
gen_ai.conversation.id01a21d33-0927-74df-8acb-4f32620816cc
gen_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.port37573

invoke_agent agent pydantic-ai, status ERROR

agent_nameagent
gen_ai.agent.call.id01a21d33-0927-74df-8acb-4f318207a330
gen_ai.agent.nameagent
gen_ai.conversation.id01a21d33-0927-74df-8acb-4f32620816cc
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.id01a21d33-2bbd-7653-a2dc-e5200b1efaf6
gen_ai.agent.nameagent
gen_ai.client.operation.time_to_first_chunk0.020835769999848708
gen_ai.conversation.id01a21d33-2bbd-7653-a2dc-e52126b1df3f
gen_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.port37573

invoke_agent agent pydantic-ai, status UNSET

agent_nameagent
final_resultThe capital of France is Paris.
gen_ai.agent.call.id01a21d33-2bbd-7653-a2dc-e5200b1efaf6
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.id01a21d33-2bbd-7653-a2dc-e52126b1df3f
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.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital"}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
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.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1427
gen_ai.usage.output_tokens1
gen_ai.usage.output_tokens.reasoning0
gen_ai.usage.total_tokens1428
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'anthropic/async-stream-dropped', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:38195', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/anthropic--async-stream-dropped.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.anthropic
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idaedd8ba8cdb3d2b8
sentry.segment.namechat claude-sonnet-5-5
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id131358670448512
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.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital"}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
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.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1301
gen_ai.usage.output_tokens1
gen_ai.usage.output_tokens.reasoning0
gen_ai.usage.total_tokens1302
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'anthropic/async-stream-error-event', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:40145', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/anthropic--async-stream-error-event.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.anthropic
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id82e33680705da9d7
sentry.segment.namechat claude-sonnet-5-5
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id130887633037184
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

inconclusive sentry · anthropic/content-off · subject.instrument #
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^...
Note
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^^^^^^^^^^^ File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 173, in _call_instrument return module.instrument(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/spantruth/spantruth/subjects/sentry/instrument.py", line 123, in instrument sentry_sdk.init(traces_sample_rate=1.0, **content) File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/_init_implementation.py", line 53, in _init client = sentry_sdk.Client(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/client.py", line 257, in __init__ super(_Client, self).__init__(options=get_options(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Unknown option 'send_default_pii'
Reproduce
spantruth run --subject sentry --scenario anthropic/content-off
Rule
spantruth rule: the setup that the library's documentation shows runs without an exception. When it raises, no cell of the subject can be graded.
inconclusive sentry · anthropic/content-on · subject.instrument #
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^...
Note
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^^^^^^^^^^^ File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 173, in _call_instrument return module.instrument(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/spantruth/spantruth/subjects/sentry/instrument.py", line 123, in instrument sentry_sdk.init(traces_sample_rate=1.0, **content) File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/_init_implementation.py", line 53, in _init client = sentry_sdk.Client(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/client.py", line 257, in __init__ super(_Client, self).__init__(options=get_options(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Unknown option 'send_default_pii'
Reproduce
spantruth run --subject sentry --scenario anthropic/content-on
Rule
spantruth rule: the setup that the library's documentation shows runs without an exception. When it raises, no cell of the subject can be graded.
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.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelclaude-sonnet-5-5
gen_ai.response.streamingFalse
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'anthropic/rate-limited', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:39777', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/anthropic--rate-limited.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.anthropic
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id96340f2d0aabefc1
sentry.segment.namechat claude-sonnet-5-5
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id134378796062592
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

inconclusive sentry · anthropic/stream-content-off · subject.instrument #
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^...
Note
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^^^^^^^^^^^ File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 173, in _call_instrument return module.instrument(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/spantruth/spantruth/subjects/sentry/instrument.py", line 123, in instrument sentry_sdk.init(traces_sample_rate=1.0, **content) File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/_init_implementation.py", line 53, in _init client = sentry_sdk.Client(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/client.py", line 257, in __init__ super(_Client, self).__init__(options=get_options(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Unknown option 'send_default_pii'
Reproduce
spantruth run --subject sentry --scenario anthropic/stream-content-off
Rule
spantruth rule: the setup that the library's documentation shows runs without an exception. When it raises, no cell of the subject can be graded.
inconclusive sentry · anthropic/stream-content-on · subject.instrument #
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^...
Note
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^^^^^^^^^^^ File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 173, in _call_instrument return module.instrument(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/spantruth/spantruth/subjects/sentry/instrument.py", line 123, in instrument sentry_sdk.init(traces_sample_rate=1.0, **content) File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/_init_implementation.py", line 53, in _init client = sentry_sdk.Client(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/client.py", line 257, in __init__ super(_Client, self).__init__(options=get_options(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Unknown option 'send_default_pii'
Reproduce
spantruth run --subject sentry --scenario anthropic/stream-content-on
Rule
spantruth rule: the setup that the library's documentation shows runs without an exception. When it raises, no cell of the subject can be graded.
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.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital"}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
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.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1427
gen_ai.usage.output_tokens1
gen_ai.usage.output_tokens.reasoning0
gen_ai.usage.total_tokens1428
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'anthropic/stream-dropped', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:44999', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/anthropic--stream-dropped.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.anthropic
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idad210617176d4980
sentry.segment.namechat claude-sonnet-5-5
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id138825170577280
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.output.messages[{"role": "assistant", "parts": [{"type": "text", "content": "The capital"}]}]
gen_ai.provider.nameanthropic
gen_ai.request.max_tokens1024
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
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.usage.cache_creation.input_tokens0
gen_ai.usage.cache_read.input_tokens0
gen_ai.usage.input_tokens1301
gen_ai.usage.output_tokens1
gen_ai.usage.output_tokens.reasoning0
gen_ai.usage.total_tokens1302
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'anthropic/stream-error-event', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:45541', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/anthropic--stream-error-event.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.anthropic
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id93e41bfc54f8a661
sentry.segment.namechat claude-sonnet-5-5
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id130180248274816
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelwt-chat-deployment
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.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'azure/async-basic', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:35997', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/azure--async-basic.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idac4fd07b236e8dc8
sentry.segment.namechat wt-chat-deployment
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id137607978104704
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelwt-chat-deployment
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.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'azure/async-basic', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:35997', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/azure--async-basic.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idac4fd07b236e8dc8
sentry.segment.namechat wt-chat-deployment
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id137607978104704
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelwt-chat-deployment
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_chunk0.04707697499998176
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.total_tokens2774
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'azure/async-stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:39017', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/azure--async-stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id91a2e00248bcbbe9
sentry.segment.namechat wt-chat-deployment
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id129001090029440
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelwt-chat-deployment
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_chunk0.04707697499998176
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.total_tokens2774
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'azure/async-stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:39017', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/azure--async-stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id91a2e00248bcbbe9
sentry.segment.namechat wt-chat-deployment
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id129001090029440
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelwt-chat-deployment
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.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'azure/basic', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:32949', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/azure--basic.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id980891e0c44f77cc
sentry.segment.namechat wt-chat-deployment
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id127643961726848
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelwt-chat-deployment
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.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'azure/basic', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:32949', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/azure--basic.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id980891e0c44f77cc
sentry.segment.namechat wt-chat-deployment
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id127643961726848
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelwt-chat-deployment
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_chunk0.011769511000238708
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.total_tokens2774
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'azure/stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:33475', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/azure--stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb3d159aeb9f19003
sentry.segment.namechat wt-chat-deployment
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id137315583055744
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelwt-chat-deployment
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_chunk0.011769511000238708
gen_ai.usage.input_tokens2341
gen_ai.usage.output_tokens433
gen_ai.usage.total_tokens2774
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'azure/stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:33475', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/azure--stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb3d159aeb9f19003
sentry.segment.namechat wt-chat-deployment
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id137315583055744
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France is Paris."]
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/async-stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:42607', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--async-stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idaf2744e32d1eb6f8
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id133163547989888
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France is Paris."]
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/async-stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:42607', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--async-stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idaf2744e32d1eb6f8
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id133163547989888
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.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France"]
gen_ai.usage.input_tokens1439
gen_ai.usage.output_tokens204
gen_ai.usage.total_tokens1643
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/async-stream-dropped', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:37579', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--async-stream-dropped.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id93cfebcdd8220f1c
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id136513856276352
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France"]
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/async-stream-early-exit', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:34629', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--async-stream-early-exit.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id915f8ab0d0717bf7
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id134596500371328
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France"]
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/async-stream-early-exit', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:34629', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--async-stream-early-exit.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id915f8ab0d0717bf7
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id134596500371328
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.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/rate-limited', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:33259', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--rate-limited.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb5e15d527b5a3419
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id126303677982592
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France is Paris."]
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:39071', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida8627cfd26387977
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id134244341118848
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France is Paris."]
gen_ai.usage.input_tokens2333
gen_ai.usage.output_tokens431
gen_ai.usage.total_tokens2764
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:39071', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida8627cfd26387977
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id134244341118848
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France is Paris."]
gen_ai.usage.cache_read.input_tokens6151
gen_ai.usage.input_tokens7229
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7752
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/stream-cache-hit', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:41197', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--stream-cache-hit.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb45be9627c415d0b
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id137171905324928
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France is Paris."]
gen_ai.usage.cache_read.input_tokens6151
gen_ai.usage.input_tokens7229
gen_ai.usage.output_tokens523
gen_ai.usage.total_tokens7752
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/stream-cache-hit', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:41197', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--stream-cache-hit.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb45be9627c415d0b
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id137171905324928
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.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France"]
gen_ai.usage.input_tokens1439
gen_ai.usage.output_tokens204
gen_ai.usage.total_tokens1643
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/stream-dropped', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:35497', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--stream-dropped.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida39e6d2fe6100d02
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id126811675604864
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France"]
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/stream-early-exit', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:36297', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--stream-early-exit.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idbb47e4034adc76f3
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id137712073525120
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France"]
gen_ai.usage.input_tokens1949
gen_ai.usage.output_tokens239
gen_ai.usage.total_tokens2188
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/stream-early-exit', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:36297', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--stream-early-exit.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idbb47e4034adc76f3
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id137712073525120
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France is Paris."]
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens2316
gen_ai.usage.reasoning.output_tokens1999
gen_ai.usage.total_tokens4399
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/stream-thinking', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:38747', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--stream-thinking.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb7f74fbbc068b1d2
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id128529877837696
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 OK

gen_ai.operation.namechat
gen_ai.provider.namegcp.gemini
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgemini-3.5-flash-lite
gen_ai.response.finish_reasonsSTOP
gen_ai.response.streamingTrue
gen_ai.response.text["The capital of France is Paris."]
gen_ai.usage.input_tokens2083
gen_ai.usage.output_tokens2316
gen_ai.usage.reasoning.output_tokens1999
gen_ai.usage.total_tokens4399
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'gemini/stream-thinking', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:38747', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/gemini--stream-thinking.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.google_genai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb7f74fbbc068b1d2
sentry.segment.namechat gemini-3.5-flash-lite
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id128529877837696
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "tool_calls": {"id": "call_wt_w", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}}
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
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/agent-loop', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:35437', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--agent-loop.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id80557d6da14b99ca
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id140248266577792
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}, {"content": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "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"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "tool_calls": {"id": "call_wt_t", "function": {"arguments": "{\"zone\":\"Europe/Paris\"}", "name": "get_time"}, "type": "function"}}
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.cache_read.input_tokens1093
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.total_tokens1396
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/agent-loop', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:35437', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--agent-loop.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id9934f98a000c1a17
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id140248266577792
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}, {"content": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "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": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "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"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "It is 18 C and sunny in Paris, and the time is 14:05.", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "tool_calls": "None"}
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.cache_read.input_tokens1279
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.total_tokens1670
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/agent-loop', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:35437', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--agent-loop.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb810229c78d8b03c
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id140248266577792
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "tool_calls": {"id": "call_wt_w", "function": {"arguments": "{\"city\":\"Paris\"}", "name": "get_weather"}, "type": "function"}}
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
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/agent-loop', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:35437', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--agent-loop.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id80557d6da14b99ca
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id140248266577792
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}, {"content": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "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"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "tool_calls": {"id": "call_wt_t", "function": {"arguments": "{\"zone\":\"Europe/Paris\"}", "name": "get_time"}, "type": "function"}}
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.cache_read.input_tokens1093
gen_ai.usage.input_tokens1307
gen_ai.usage.output_tokens89
gen_ai.usage.total_tokens1396
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/agent-loop', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:35437', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--agent-loop.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id9934f98a000c1a17
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id140248266577792
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}, {"content": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "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": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "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"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.modelgpt-5-mini-2026-08-07
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "It is 18 C and sunny in Paris, and the time is 14:05.", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "tool_calls": "None"}
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.cache_read.input_tokens1279
gen_ai.usage.input_tokens1459
gen_ai.usage.output_tokens211
gen_ai.usage.total_tokens1670
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/agent-loop', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:35437', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--agent-loop.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb810229c78d8b03c
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id140248266577792
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-basic', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:44201', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-basic.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb65275aaa3d1f97c
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id134345886742400
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-basic', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:44201', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-basic.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb65275aaa3d1f97c
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id134345886742400
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-nano
gen_ai.response.modelgpt-5-nano-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_chunk0.045041726999897946
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.total_tokens1928
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id81a5776fb1079674
sentry.segment.namechat gpt-5-mini
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id136022825379712
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.04698372199982259
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.total_tokens1182
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-concurrent-streams', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:34695', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-concurrent-streams.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id81a5776fb1079674
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id136022825379712
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-nano
gen_ai.response.modelgpt-5-nano-2026-08-07
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_chunk0.045041726999897946
gen_ai.usage.input_tokens1747
gen_ai.usage.output_tokens181
gen_ai.usage.total_tokens1928
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id81a5776fb1079674
sentry.segment.namechat gpt-5-mini
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id136022825379712
thread.nameMainThread

chat gpt-5-mini sentry_sdk.adapter, status OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.04698372199982259
gen_ai.usage.cache_read.input_tokens769
gen_ai.usage.input_tokens1033
gen_ai.usage.output_tokens149
gen_ai.usage.total_tokens1182
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-concurrent-streams', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:34695', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-concurrent-streams.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id81a5776fb1079674
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id136022825379712
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.04676132899976437
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:43193', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb2dd22cea9cb5f05
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id133847941793664
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.04676132899976437
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:43193', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb2dd22cea9cb5f05
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id133847941793664
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-stream-helper', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:33689', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-stream-helper.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida8106a4f6150615e
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123136582985600
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-stream-helper', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:33689', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-stream-helper.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida8106a4f6150615e
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123136582985600
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-stream-helper', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:33689', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-stream-helper.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida8106a4f6150615e
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123136582985600
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-stream-helper', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:33689', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-stream-helper.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida8106a4f6150615e
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123136582985600
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/async-stream-helper', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:33689', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--async-stream-helper.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida8106a4f6150615e
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123136582985600
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/basic', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:42413', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--basic.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idbabca8759a922439
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id136678461757312
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.usage.input_tokens1187
gen_ai.usage.output_tokens263
gen_ai.usage.total_tokens1450
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/basic', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:42413', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--basic.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idbabca8759a922439
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id136678461757312
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.usage.cache_read.input_tokens4096
gen_ai.usage.input_tokens5379
gen_ai.usage.output_tokens377
gen_ai.usage.total_tokens5756
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/cache-hit', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:33327', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--cache-hit.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idade2a8a542e3b2ad
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id127428801193856
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.usage.cache_read.input_tokens4096
gen_ai.usage.input_tokens5379
gen_ai.usage.output_tokens377
gen_ai.usage.total_tokens5756
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/cache-hit', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:33327', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--cache-hit.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idade2a8a542e3b2ad
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id127428801193856
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
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.usage.cache_read.input_tokens2753
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
gen_ai.usage.total_tokens7020
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/cache-write', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:37685', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--cache-write.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id8d55f5be5ed6c662
sentry.segment.namechat gpt-5.6-luna
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id130222833239936
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
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.usage.cache_read.input_tokens2753
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
gen_ai.usage.total_tokens7020
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/cache-write', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:37685', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--cache-write.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id8d55f5be5ed6c662
sentry.segment.namechat gpt-5.6-luna
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id130222833239936
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
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.usage.cache_read.input_tokens2753
gen_ai.usage.input_tokens6619
gen_ai.usage.output_tokens401
gen_ai.usage.total_tokens7020
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/cache-write', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:37685', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--cache-write.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id8d55f5be5ed6c662
sentry.segment.namechat gpt-5.6-luna
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id130222833239936
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modeldeepseek-flash
gen_ai.response.modeldeepseek-flash
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "The capital of France is Paris.", "refusal": "None", "role": "assistant", "annotations": "None", "audio": "None", "function_call": "None", "tool_calls": "None"}
gen_ai.usage.cache_read.input_tokens1408
gen_ai.usage.input_tokens1931
gen_ai.usage.output_tokens397
gen_ai.usage.total_tokens2328
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-extra-cache-fields', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:40545', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-extra-cache-fields.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida92178fe36014250
sentry.segment.namechat deepseek-flash
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id133170274199424
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modeldeepseek-flash
gen_ai.response.modeldeepseek-flash
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "The capital of France is Paris.", "refusal": "None", "role": "assistant", "annotations": "None", "audio": "None", "function_call": "None", "tool_calls": "None"}
gen_ai.usage.cache_read.input_tokens1408
gen_ai.usage.input_tokens1931
gen_ai.usage.output_tokens397
gen_ai.usage.total_tokens2328
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-extra-cache-fields', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:40545', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-extra-cache-fields.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida92178fe36014250
sentry.segment.namechat deepseek-flash
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id133170274199424
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelllama-3.3-70b-versatile
gen_ai.response.modelopenai/gpt-oss-20b
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "The capital of France is Paris.", "refusal": "None", "role": "assistant", "annotations": "None", "audio": "None", "function_call": "None", "tool_calls": "None"}
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
gen_ai.usage.total_tokens574
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-extra-timing-fields', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:45579', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-extra-timing-fields.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id874888287e22f899
sentry.segment.namechat llama-3.3-70b-versatile
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id126227210008448
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelllama-3.3-70b-versatile
gen_ai.response.modelopenai/gpt-oss-20b
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "The capital of France is Paris.", "refusal": "None", "role": "assistant", "annotations": "None", "audio": "None", "function_call": "None", "tool_calls": "None"}
gen_ai.usage.input_tokens18
gen_ai.usage.output_tokens556
gen_ai.usage.total_tokens574
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-extra-timing-fields', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:45579', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-extra-timing-fields.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id874888287e22f899
sentry.segment.namechat llama-3.3-70b-versatile
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id126227210008448
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
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.usage.input_tokens1129
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens1370
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-no-details', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:42433', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-no-details.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id9006006505e8234e
sentry.segment.namechat qwen3.5-27b
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id125222743996288
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
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.usage.input_tokens1129
gen_ai.usage.output_tokens241
gen_ai.usage.total_tokens1370
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-no-details', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:42433', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-no-details.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id9006006505e8234e
sentry.segment.namechat qwen3.5-27b
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id125222743996288
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
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.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-null-details', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:44733', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-null-details.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id89217538496db2c5
sentry.segment.namechat qwen3.5-27b
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id130666553984896
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
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.usage.input_tokens1213
gen_ai.usage.output_tokens277
gen_ai.usage.total_tokens1490
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-null-details', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:44733', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-null-details.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id89217538496db2c5
sentry.segment.namechat qwen3.5-27b
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id130666553984896
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelqwen3.5:0.8b
gen_ai.response.modelqwen3.5:0.8b
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage", "refusal": "None", "role": "assistant", "annotations": "None", "audio": "None", "function_call": "None", "tool_calls": "None"}
gen_ai.usage.cache_read.input_tokens28
gen_ai.usage.input_tokens32
gen_ai.usage.output_tokens16
gen_ai.usage.total_tokens48
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-partial-details', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:32845', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-partial-details.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id90f675e87adb53e5
sentry.segment.namechat qwen3.5:0.8b
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123309843896192
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelqwen3.5:0.8b
gen_ai.response.modelqwen3.5:0.8b
gen_ai.response.streamingFalse
gen_ai.response.text{"content": "Octopuses, like many marine invertebrates, employ sophisticated methods to camouflage", "refusal": "None", "role": "assistant", "annotations": "None", "audio": "None", "function_call": "None", "tool_calls": "None"}
gen_ai.usage.cache_read.input_tokens28
gen_ai.usage.input_tokens32
gen_ai.usage.output_tokens16
gen_ai.usage.total_tokens48
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-partial-details', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:32845', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-partial-details.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id90f675e87adb53e5
sentry.segment.namechat qwen3.5:0.8b
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123309843896192
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_chunk0.010587906999717234
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.total_tokens1654
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-stream-no-details', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:36119', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-stream-no-details.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb258ed2adb24e12e
sentry.segment.namechat qwen3.5-27b
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123972827813760
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_chunk0.010587906999717234
gen_ai.usage.input_tokens1361
gen_ai.usage.output_tokens293
gen_ai.usage.total_tokens1654
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-stream-no-details', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:36119', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-stream-no-details.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idb258ed2adb24e12e
sentry.segment.namechat qwen3.5-27b
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123972827813760
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_chunk0.01082469300035882
gen_ai.usage.cache_read.input_tokens1063
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
gen_ai.usage.total_tokens1820
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-stream-usage-on-finish', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:42755', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-stream-usage-on-finish.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id9a3529ad18fa086b
sentry.segment.namechat qwen3.5-27b
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id139440089425792
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelqwen3.5-27b
gen_ai.response.modelQwen/Qwen3.5-27B-Instruct
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_chunk0.01082469300035882
gen_ai.usage.cache_read.input_tokens1063
gen_ai.usage.input_tokens1489
gen_ai.usage.output_tokens331
gen_ai.usage.total_tokens1820
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/compat-stream-usage-on-finish', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:42755', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--compat-stream-usage-on-finish.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id9a3529ad18fa086b
sentry.segment.namechat qwen3.5-27b
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id139440089425792
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

inconclusive sentry · openai/content-off · subject.instrument #
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^...
Note
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^^^^^^^^^^^ File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 173, in _call_instrument return module.instrument(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/spantruth/spantruth/subjects/sentry/instrument.py", line 123, in instrument sentry_sdk.init(traces_sample_rate=1.0, **content) File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/_init_implementation.py", line 53, in _init client = sentry_sdk.Client(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/client.py", line 257, in __init__ super(_Client, self).__init__(options=get_options(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Unknown option 'send_default_pii'
Reproduce
spantruth run --subject sentry --scenario openai/content-off
Rule
spantruth rule: the setup that the library's documentation shows runs without an exception. When it raises, no cell of the subject can be graded.
inconclusive sentry · openai/content-on · subject.instrument #
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^...
Note
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^^^^^^^^^^^ File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 173, in _call_instrument return module.instrument(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/spantruth/spantruth/subjects/sentry/instrument.py", line 123, in instrument sentry_sdk.init(traces_sample_rate=1.0, **content) File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/_init_implementation.py", line 53, in _init client = sentry_sdk.Client(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/client.py", line 257, in __init__ super(_Client, self).__init__(options=get_options(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Unknown option 'send_default_pii'
Reproduce
spantruth run --subject sentry --scenario openai/content-on
Rule
spantruth rule: the setup that the library's documentation shows runs without an exception. When it raises, no cell of the subject can be graded.
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.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingFalse
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/rate-limited', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:43749', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--rate-limited.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id82c11cae7d628be5
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id124659672450944
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.reasoning.output_tokens1792
gen_ai.usage.total_tokens3820
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/reasoning', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:36253', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--reasoning.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id89b66ddd5fea7b2c
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id133387351406464
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.usage.input_tokens1601
gen_ai.usage.output_tokens2219
gen_ai.usage.reasoning.output_tokens1792
gen_ai.usage.total_tokens3820
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/reasoning', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:36253', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--reasoning.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id89b66ddd5fea7b2c
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id133387351406464
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

lost sentry · openai/responses-stream-missing-finish-abort · span.endedGhost span #
never ended: gen_ai.chat
Note
never ended: gen_ai.chat
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.total_tokens2844
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/retry-429', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:43167', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--retry-429.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id9671c82a976ab846
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123488039716736
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.usage.input_tokens2477
gen_ai.usage.output_tokens367
gen_ai.usage.total_tokens2844
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/retry-429', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:43167', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--retry-429.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id9671c82a976ab846
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123488039716736
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.01576980200024991
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:34659', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idaf6551730607942d
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123186115168128
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.01576980200024991
gen_ai.usage.input_tokens2311
gen_ai.usage.output_tokens419
gen_ai.usage.total_tokens2730
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:34659', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idaf6551730607942d
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id123186115168128
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.016043265000007523
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens7724
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-cache-hit', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:44809', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-cache-hit.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idbec7bcc5dad7e8a0
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id124774261798784
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.016043265000007523
gen_ai.usage.cache_read.input_tokens6144
gen_ai.usage.input_tokens7213
gen_ai.usage.output_tokens511
gen_ai.usage.total_tokens7724
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-cache-hit', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:44809', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-cache-hit.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idbec7bcc5dad7e8a0
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id124774261798784
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_chunk0.016380686000047717
gen_ai.usage.cache_read.input_tokens3967
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-cache-write', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:37235', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-cache-write.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida80fbe5eafa1fc75
sentry.segment.namechat gpt-5.6-luna
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id128906838161280
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_chunk0.016380686000047717
gen_ai.usage.cache_read.input_tokens3967
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-cache-write', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:37235', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-cache-write.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida80fbe5eafa1fc75
sentry.segment.namechat gpt-5.6-luna
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id128906838161280
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5.6-luna
gen_ai.response.modelgpt-5.6-luna-2026-10-14
gen_ai.response.streamingTrue
gen_ai.response.textThe capital of France is Paris.
gen_ai.response.time_to_first_chunk0.016380686000047717
gen_ai.usage.cache_read.input_tokens3967
gen_ai.usage.input_tokens8237
gen_ai.usage.output_tokens457
gen_ai.usage.total_tokens8694
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-cache-write', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:37235', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-cache-write.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida80fbe5eafa1fc75
sentry.segment.namechat gpt-5.6-luna
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id128906838161280
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

inconclusive sentry · openai/stream-content-off · subject.instrument #
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^...
Note
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^^^^^^^^^^^ File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 173, in _call_instrument return module.instrument(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/spantruth/spantruth/subjects/sentry/instrument.py", line 123, in instrument sentry_sdk.init(traces_sample_rate=1.0, **content) File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/_init_implementation.py", line 53, in _init client = sentry_sdk.Client(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/client.py", line 257, in __init__ super(_Client, self).__init__(options=get_options(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Unknown option 'send_default_pii'
Reproduce
spantruth run --subject sentry --scenario openai/stream-content-off
Rule
spantruth rule: the setup that the library's documentation shows runs without an exception. When it raises, no cell of the subject can be graded.
inconclusive sentry · openai/stream-content-on · subject.instrument #
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^...
Note
Traceback (most recent call last): File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 201, in instrumented extra = _call_instrument( ^^^^^^^^^^^^^^^^^ File "/tmp/tmp9hqwpwrt/spantruth/driver.py", line 173, in _call_instrument return module.instrument(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/spantruth/spantruth/subjects/sentry/instrument.py", line 123, in instrument sentry_sdk.init(traces_sample_rate=1.0, **content) File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/_init_implementation.py", line 53, in _init client = sentry_sdk.Client(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/.cache/spantruth/venvs/sentry-314d35a66e14/lib/python3.12/site-packages/sentry_sdk/client.py", line 257, in __init__ super(_Client, self).__init__(options=get_options(*args, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Unknown option 'send_default_pii'
Reproduce
spantruth run --subject sentry --scenario openai/stream-content-on
Rule
spantruth rule: the setup that the library's documentation shows runs without an exception. When it raises, no cell of the subject can be graded.
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-helper', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:40725', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-helper.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id8a6f31eeae73f233
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id124774429509504
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-helper', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:40725', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-helper.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id8a6f31eeae73f233
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id124774429509504
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-helper', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:40725', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-helper.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id8a6f31eeae73f233
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id124774429509504
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-helper', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:40725', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-helper.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id8a6f31eeae73f233
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id124774429509504
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
gen_ai.request.messages[{"role": "user", "content": "What is the capital of France?"}]
gen_ai.request.modelgpt-5-mini
gen_ai.response.streamingTrue
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-helper', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:40725', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-helper.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id8a6f31eeae73f233
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id124774429509504
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.017937490999884176
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-no-usage', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:37373', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-no-usage.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida0e221623db33a60
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id140042622261120
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.017937490999884176
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-no-usage', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:37373', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-no-usage.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.ida0e221623db33a60
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id140042622261120
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.017183299999942392
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.reasoning.output_tokens1931
gen_ai.usage.total_tokens4548
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-reasoning', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:39511', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-reasoning.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idbbfc11233f4e6fef
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id124930055030656
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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_chunk0.017183299999942392
gen_ai.usage.input_tokens2089
gen_ai.usage.output_tokens2459
gen_ai.usage.reasoning.output_tokens1931
gen_ai.usage.total_tokens4548
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-reasoning', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:39511', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-reasoning.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.idbbfc11233f4e6fef
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id124930055030656
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.text
gen_ai.response.time_to_first_chunk0.017522623999866482
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
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-tool-call', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:43329', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-tool-call.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id846a10ca6a3ba12d
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id130764104886144
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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.text
gen_ai.response.time_to_first_chunk0.017522623999866482
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
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/stream-tool-call', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:43329', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--stream-tool-call.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id846a10ca6a3ba12d
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id130764104886144
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "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"}]}
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
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/tool-call', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:42669', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--tool-call.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id8e7bcecd4ab311ae
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id125936814954368
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 OK

gen_ai.operation.namechat
gen_ai.provider.nameopenai
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": "None", "refusal": "None", "role": "assistant", "annotations": [], "audio": "None", "function_call": "None", "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"}]}
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
process.command_args['/tmp/tmp9hqwpwrt/spantruth/driver.py', 'instrumented', 'openai/tool-call', '--mock', 'http://127.0.0.1:37573', '--otlp', 'http://127.0.0.1:42669', '--subject', '/home/runner/work/spantruth/spantruth/subjects/sentry', '--out', '/tmp/tmpc75h4ayk/openai--tool-call.json']
process.runtime.nameCPython
process.runtime.version3.12.16
sentry.environmentproduction
sentry.opgen_ai.chat
sentry.originauto.ai.openai
sentry.platformpython
sentry.sdk.integrations['anthropic', 'argv', 'atexit', 'dedupe', 'excepthook', 'google_genai', 'httpx2', 'modules', 'openai', 'stdlib', 'threading', 'unraisablehook']
sentry.sdk.namesentry.python
sentry.sdk.version3.0.1
sentry.segment.id8e7bcecd4ab311ae
sentry.segment.namechat gpt-5-mini
sentry.segment.name.sourcecustom
sentry.trace_lifecyclestream
server.addressrunnervm0hi8g
thread.id125936814954368
thread.nameMainThread

spantruth.scenario spantruth.driver, status UNSET

Subjects and versions