java.lang.Object
org.nasdanika.ai.mcp.McpTelemetryFilter
Filters (wraps) Mcp features for collecting telemetry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<String, Long> protected io.opentelemetry.api.trace.Tracer -
Constructor Summary
ConstructorsConstructorDescriptionMcpTelemetryFilter(io.opentelemetry.api.trace.Tracer tracer, BiConsumer<String, Long> durationConsumer) -
Method Summary
Modifier and TypeMethodDescriptionio.modelcontextprotocol.server.McpServerFeatures.AsyncPromptSpecificationfilter(io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptSpecification asyncPromptSpecification) io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceSpecificationfilter(io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceSpecification asyncResourceSpecification) io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecificationfilter(io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification asyncToolSpecification) io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecificationfilter(io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification syncPromptSpecification) io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecificationfilter(io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification syncResourceSpecification) io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecificationfilter(io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification syncToolSpecification)
-
Field Details
-
tracer
-
durationConsumer
-
-
Constructor Details
-
McpTelemetryFilter
public McpTelemetryFilter(io.opentelemetry.api.trace.Tracer tracer, BiConsumer<String, Long> durationConsumer)
-
-
Method Details
-
filter
public io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification filter(io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification syncToolSpecification) -
filter
public io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification filter(io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification asyncToolSpecification) -
filter
public io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification filter(io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification syncResourceSpecification) -
filter
public io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceSpecification filter(io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceSpecification asyncResourceSpecification) -
filter
public io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification filter(io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification syncPromptSpecification) -
filter
public io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptSpecification filter(io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptSpecification asyncPromptSpecification)
-