Members list
Value members
Concrete methods
Shutdown the tracing backend. Alias for close() to maintain terminology consistency.
Shutdown the tracing backend. Alias for close() to maintain terminology consistency.
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Trace cost in USD for any operation.
Trace cost in USD for any operation.
Value parameters
- costType
-
Category: "embedding", "completion", "total"
- costUsd
-
Cost in US dollars
- model
-
Model name
- operation
-
Type: "embedding", "completion", "evaluation"
- tokenCount
-
Total tokens used
Attributes
- Inherited from:
- Tracing
Trace embedding token usage for cost tracking.
Trace embedding token usage for cost tracking.
Value parameters
- inputCount
-
Number of texts embedded
- model
-
Embedding model name
- operation
-
Type: "indexing", "query", "evaluation"
- usage
-
Token usage from embedding operation
Attributes
- Inherited from:
- Tracing
Emits a named CustomEvent with no additional data payload.
Emits a named CustomEvent with no additional data payload.
Wraps the string in a TraceEvent.CustomEvent with an empty JSON object as its data field before delegating to traceEvent(TraceEvent). Use the typed overload for events that carry structured data.
Value parameters
- event
-
Human-readable event name forwarded as
CustomEvent.name
Attributes
- Inherited from:
- Tracing
Trace completion of a RAG operation with metrics.
Trace completion of a RAG operation with metrics.
Value parameters
- durationMs
-
Duration in milliseconds
- embeddingTokens
-
Optional embedding token count
- llmCompletionTokens
-
Optional LLM completion tokens
- llmPromptTokens
-
Optional LLM prompt tokens
- operation
-
Type: "index", "search", "answer", "evaluate"
- totalCostUsd
-
Optional total cost in USD
Attributes
- Inherited from:
- Tracing