Package-level declarations

Types

Link copied to clipboard

Opt-in span modifiers that capture tool call arguments and results. These may contain sensitive data — add to spanModifiers explicitly, not included in defaults.

Link copied to clipboard

Opt-in span modifiers that capture completion arguments and result values. May contain sensitive data — add to spanModifiers explicitly, not included in defaults. Note: gen_ai.completion.* attributes are http4k custom conventions, not official OTel semantic conventions.

Link copied to clipboard

Opt-in span modifiers that capture prompt arguments and result messages. May contain sensitive data — add to spanModifiers explicitly, not included in defaults. Note: gen_ai.prompt.* attributes are http4k custom conventions, not official OTel semantic conventions.

Link copied to clipboard
object McpFilters
Link copied to clipboard
Link copied to clipboard

Opt-in span modifiers that capture resource read result contents. May contain sensitive data — add to spanModifiers explicitly, not included in defaults. Note: gen_ai.resource.* attributes are http4k custom conventions, not official OTel semantic conventions.

Functions

Link copied to clipboard
fun PolyFilters.DebugMcp(out: PrintStream = System.out): PolyFilter
Link copied to clipboard
Link copied to clipboard
fun McpFilters.OpenTelemetryTracing(openTelemetry: OpenTelemetry = GlobalOpenTelemetry.get(), spanModifiers: List<McpOpenTelemetrySpanModifier> = defaultMcpOtelSpanModifiers): McpFilter

OpenTelemetry tracing for MCP servers. Follows the latest conventions from the OTel spec.