Record spend
created is false when the same producerRef already exists. That is the exactly-once signal a wallet debit can key on.
Record the conversation
spanRef to the producerRef you used on meter.record. That is how Debug console prints cost next to the turn.
Declare what the sitting was for
A producer that knows the job should say so, instead of waiting for a guess:Postgres
Assay does not depend onpg. You inject a pool and migrate explicitly:
Language-agnostic alternative
If the loop is not Node, export OpenTelemetrygen_ai traces to assay serve.