Interface: OtelCollectorExporter
worker.OtelCollectorExporter
OpenTelemetry Collector options for exporting metrics or traces
Properties
otel
• otel: Object
Type declaration
Name | Type | Description |
---|---|---|
headers? | Record <string , string > | Optional set of HTTP request headers to send to Collector (e.g. for authentication) |
metricsExportInterval? | Duration | Specify how frequently in metrics should be exported. Format number of milliseconds or ms-formatted string Defaults 1 second |
url | string | URL of a gRPC OpenTelemetry collector. Format Starts with "grpc://" or "http://" for an unsecured connection (typical), or "grpcs://" or "https://" for a TLS connection. Note The OTEL_EXPORTER_OTLP_ENDPOINT environment variable, if set, will override this property. |
useSecondsForDurations? | boolean | If set to true, the exporter will use seconds for durations instead of milliseconds. |