Skip to main content

Interface: OtelCollectorExporter

worker.OtelCollectorExporter

OpenTelemetry Collector options for exporting metrics or traces

Properties

otel

otel: Object

Type declaration

NameTypeDescription
headers?Record<string, string>Optional set of HTTP request headers to send to Collector (e.g. for authentication)
metricsExportInterval?DurationSpecify how frequently in metrics should be exported. Format number of milliseconds or ms-formatted string Defaults 1 second
urlstringURL of a gRPC OpenTelemetry collector.
useSecondsForDurations?booleanIf set to true, the exporter will use seconds for durations instead of milliseconds.