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) |
histogramBucketOverrides? | Record <string , number []> | Overrides boundary values for histogram metrics. The key is the metric name and the value is the list of bucket boundaries. For example: { "request_latency": [1, 5, 10, 25, 50, 100, 250, 500, 1000], } The metric name will apply regardless of name prefixing. See this doc for the exact meaning of boundaries. |
http? | boolean | If set to true, the exporter will use OTLP/HTTP instead of OTLP/gRPC. Default ts false meaning that the exporter will use OTLP/gRPC. |
metricsExportInterval? | Duration | Specify how frequently in metrics should be exported. Format number of milliseconds or ms-formatted string Default ts 1 second |
temporality? | "cumulative" | "delta" | Determines if the metrics exporter should use cumulative or delta temporality. See the OpenTelemetry specification for more information. Default ts 'cumulative' |
url | string | URL of a gRPC OpenTelemetry collector. Syntax generally looks like http://server:4317 or grpc://server:4317 for OTLP/gRPC exporters, or http://server:4318/v1/metrics for OTLP/HTTP exporters. Make sure to set the http option to true for OTLP/HTTP endpoints. 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. Default ts false |