Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TraceEvent.type
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Tracks cost in USD for any model operation.
Tracks cost in USD for any model operation.
Value parameters
- costType
-
Category: "embedding", "completion", "total"
- costUsd
-
Estimated cost in US dollars
- model
-
Model name used for pricing lookup
- operation
-
Type of operation: "embedding", "completion", "evaluation"
- tokenCount
-
Total tokens consumed
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Tracks embedding token usage for cost analysis.
Tracks embedding token usage for cost analysis.
Value parameters
- inputCount
-
Number of texts embedded in this operation
- model
-
Embedding model name (e.g., "text-embedding-3-small")
- operation
-
Type of operation: "indexing", "query", "evaluation"
- usage
-
Token usage statistics from embedding operation
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Tracks completion of a RAG operation with full metrics.
Tracks completion of a RAG operation with full metrics.
Value parameters
- durationMs
-
Wall-clock duration in milliseconds
- embeddingTokens
-
Optional token count for embedding operations
- llmCompletionTokens
-
Optional completion tokens for LLM operations
- llmPromptTokens
-
Optional prompt tokens for LLM operations
- operation
-
Type: "index", "search", "answer", "evaluate"
- totalCostUsd
-
Optional accumulated cost in USD
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait TraceEventclass Objecttrait Matchableclass AnyShow all
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror