NoOpTracing
No-operation Tracing implementation that silently discards all events.
All methods return Right(()) immediately without performing any operations. Use this implementation when tracing is disabled or not needed.
== Usage ==
val tracing: Tracing = new NoOpTracing()
// All operations succeed silently
tracing.traceEvent(TraceEvent.CustomEvent("test", ujson.Obj())) // Returns Right(())
tracing.traceError(new Exception("ignored")) // Returns Right(())
== Use Cases ==
- Production environments where tracing overhead is undesirable
- Unit tests that don't need trace output
- Default fallback when no tracing is configured
Attributes
- See also
-
ConsoleTracing for development/debugging
LangfuseTracing for production observability
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Always returns Right(()) without side effects.
Always returns Right(()) without side effects.
Attributes
Always returns Right(()) without side effects.
Always returns Right(()) without side effects.
Attributes
Always returns Right(()) without side effects.
Always returns Right(()) without side effects.
Attributes
Always returns Right(()) without side effects.
Always returns Right(()) without side effects.
Attributes
Always returns Right(()) without side effects.
Always returns Right(()) without side effects.
Attributes
Always returns Right(()) without side effects.
Always returns Right(()) without side effects.
Attributes
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
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