Required fields
string
required
Maps to the OpenTelemetry
service.name resource attribute. Use a stable,
human-readable identifier for your service (weather-mcp, not dev-1).string
required
Maps to
service.version. Recommended: a release tag or git SHA.Exporter
string
Base OTLP endpoint, e.g.
https://otel.sedata-ai.tech/v1. Required unless
exporterType: 'console'. The package appends /traces and /metrics to
derive the per-signal URLs.'otlp-http' | 'otlp-grpc' | 'console'
default:"otlp-http"
Which exporter to use.
otlp-http— OTLP/HTTP for traces and metrics (default).otlp-grpc— OTLP/gRPC trace exporter (metrics still HTTP).console— Print spans to stdout. No metric reader is attached.
AuthConfig
Auth for the exporter. See
AuthConfig.
Also used to authenticate the safety-check API.Sampling & batching
number
default:"1.0"
Trace sampling ratio in
[0, 1]. Uses
TraceIdRatioBasedSampler — deterministic by trace id.number
default:"5000"
Metric flush interval in milliseconds.
number
default:"2000"
Per-batch metric export timeout in milliseconds.
Toggles
boolean
default:"true"
Set
false to skip the trace exporter and sampler.boolean
default:"true"
Set
false to skip the metric reader.boolean
default:"true"
Reserved for built-in sanitization patterns. Pair with
dataProcessors for
active redaction today.boolean
default:"false"
When
true, every tool argument is flattened into
mcp.request.argument.<key> span attributes. Off by default to avoid
inadvertent PII leakage.Custom processing
((data: any) => any)[]
Array of pure functions run on every attribute set before export. Run in
order. See Data processors for patterns.
Defaults
Example
Validation
ConfigValidator.validate(config) enforces the rules above. See the
validator reference for the exact error
messages.