Package com.tnsai.mcp.observability
Class NoopMcpTracer
java.lang.Object
com.tnsai.mcp.observability.NoopMcpTracer
- All Implemented Interfaces:
McpTracer
No-op implementation of
McpTracer that produces zero overhead.
All spans created by this tracer are no-op spans that perform no work. This is suitable for production environments where tracing is not needed.
- See Also:
-
Method Summary
-
Method Details
-
startSpan
Description copied from interface:McpTracerStarts a new root span with the given operation name.- Specified by:
startSpanin interfaceMcpTracer- Parameters:
operationName- the name of the operation being traced- Returns:
- a new span that must be ended via
McpSpan.end()
-
startSpan
Description copied from interface:McpTracerStarts a new child span with the given operation name and parent.- Specified by:
startSpanin interfaceMcpTracer- Parameters:
operationName- the name of the operation being tracedparent- the parent span- Returns:
- a new child span that must be ended via
McpSpan.end()
-