Package ai.acolite.agentsdk.core.tracing
Class NoopTrace
java.lang.Object
ai.acolite.agentsdk.core.tracing.Trace
ai.acolite.agentsdk.core.tracing.NoopTrace
No-op trace that does nothing.
Used when tracing is disabled. All lifecycle methods are no-ops. Extends Trace to maintain type compatibility. Singleton pattern for efficiency.
Ported from TypeScript OpenAI Agents SDK Source: tracing/traces.ts
-
Field Summary
Fields -
Method Summary
Methods inherited from class ai.acolite.agentsdk.core.tracing.Trace
withProcessor
-
Field Details
-
INSTANCE
Singleton instance
-
-
Method Details
-
start
public void start()Description copied from class:TraceStart the trace. Calls processor.onTraceStart(). Idempotent - multiple calls are safe. -
end
public void end()Description copied from class:TraceEnd the trace. Calls processor.onTraceEnd(). Idempotent - multiple calls are safe. -
clone
Description copied from class:TraceClone this trace with same properties. Useful for creating related traces with shared configuration. -
toJson
Description copied from class:TraceConvert to JSON for export. -
toJson
Description copied from class:TraceConvert to JSON (excludes API key by default for security)
-