Package ai.acolite.agentsdk.core.tracing
Class NoopSpan<TSpanData extends SpanData>
java.lang.Object
ai.acolite.agentsdk.core.tracing.Span<TSpanData>
ai.acolite.agentsdk.core.tracing.NoopSpan<TSpanData>
No-op span that does nothing.
Used when tracing is disabled. All lifecycle methods are no-ops. Extends Span to maintain type compatibility.
Ported from TypeScript OpenAI Agents SDK Source: tracing/spans.ts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone this span with same properties.voidend()End the span.instance()Create a no-op span instance with null data.voidSet error information.voidConvenience method to set error from Throwablevoidstart()Start the span.toJson()Convert to JSON for export.Methods inherited from class ai.acolite.agentsdk.core.tracing.Span
withTracingContext
-
Constructor Details
-
NoopSpan
Create a no-op span instance.
-
-
Method Details
-
instance
Create a no-op span instance with null data. Used when tracing is disabled. -
start
public void start()Description copied from class:SpanStart the span. Calls processor.onSpanStart(). Idempotent - multiple calls are safe. -
end
public void end()Description copied from class:SpanEnd the span. Calls processor.onSpanEnd(). Idempotent - multiple calls are safe. -
setError
Description copied from class:SpanSet error information. Call this before end() when operation fails. -
setError
Description copied from class:SpanConvenience method to set error from Throwable -
clone
Description copied from class:SpanClone this span with same properties. -
toJson
Description copied from class:SpanConvert to JSON for export.
-