MCP Server Framework - v1.0.0
    Preparing search index...

    Interface TelemetryConfig

    OpenTelemetry configuration options.

    Contains both framework-managed settings and standard OTEL settings that are passed through the config system for unified configuration.

    interface TelemetryConfig {
        enabled: boolean;
        endpoint: string;
        logLevel?: string;
        logsExporter: string;
        metricExportInterval?: number;
        metricsExporters: readonly string[];
        serviceName: string;
        serviceVersion: string;
        tracesExporter?: string;
    }
    Index

    Properties

    enabled: boolean

    Whether OpenTelemetry is enabled

    endpoint: string

    OTLP exporter endpoint URL. Defaults to OTEL standard: http://localhost:4318

    logLevel?: string

    SDK diagnostic log level: 'NONE', 'ERROR', 'WARN', 'INFO', 'DEBUG', 'VERBOSE', 'ALL'

    logsExporter: string

    Log exporter: 'otlp', 'console', 'none'. Default: 'none' (framework uses own logger)

    metricExportInterval?: number

    Periodic metric export interval in milliseconds

    metricsExporters: readonly string[]

    Active metric exporters (parsed from OTEL_METRICS_EXPORTER). Supported values: 'otlp', 'prometheus', 'console', 'none'.

    serviceName: string

    Service name for traces and metrics

    serviceVersion: string

    Service version

    tracesExporter?: string

    Trace exporter: 'otlp', 'console', 'none'