OpenTelemetryConfig
Defined in: packages/middleware/src/opentelemetry.ts:109
Configuration for OpenTelemetry middleware.
Properties
Section titled “Properties”batchSpanProcessorConfig?
Section titled “batchSpanProcessorConfig?”
optionalbatchSpanProcessorConfig:BatchSpanProcessorConfig
Defined in: packages/middleware/src/opentelemetry.ts:159
Batch span processor configuration.
endpoint?
Section titled “endpoint?”
optionalendpoint:string
Defined in: packages/middleware/src/opentelemetry.ts:126
OTLP endpoint URL.
Default
Section titled “Default”'http://localhost:4318/v1/traces'exporterTimeoutMillis?
Section titled “exporterTimeoutMillis?”
optionalexporterTimeoutMillis:number
Defined in: packages/middleware/src/opentelemetry.ts:165
OTLP exporter timeout (in milliseconds).
Default
Section titled “Default”10000exportSpans?
Section titled “exportSpans?”
optionalexportSpans:boolean
Defined in: packages/middleware/src/opentelemetry.ts:148
Whether to export spans.
Default
Section titled “Default”trueheaders?
Section titled “headers?”
optionalheaders:Record<string,string>
Defined in: packages/middleware/src/opentelemetry.ts:131
Custom headers for OTLP export.
resourceAttributes?
Section titled “resourceAttributes?”
optionalresourceAttributes:Record<string,string>
Defined in: packages/middleware/src/opentelemetry.ts:142
Custom resource attributes.
samplingRate?
Section titled “samplingRate?”
optionalsamplingRate:number
Defined in: packages/middleware/src/opentelemetry.ts:137
Sampling rate (0.0 to 1.0).
Default
Section titled “Default”1.0 (100%)serviceName?
Section titled “serviceName?”
optionalserviceName:string
Defined in: packages/middleware/src/opentelemetry.ts:114
Service name for OpenTelemetry.
Default
Section titled “Default”'ai-matey'serviceVersion?
Section titled “serviceVersion?”
optionalserviceVersion:string
Defined in: packages/middleware/src/opentelemetry.ts:120
Service version for OpenTelemetry.
Default
Section titled “Default”'0.1.0'tracerName?
Section titled “tracerName?”
optionaltracerName:string
Defined in: packages/middleware/src/opentelemetry.ts:154
Custom tracer name.
Default
Section titled “Default”'ai-matey-tracer'