Optional
attributesOptional attributes to be associated with the metrics.
Optional
debugSpecifies whether to enable debug mode for metrics. Debug mode will enable the opentelemetry debug log and log metrics to the console.
Optional
hostnameThe value of the hostname attribute to use, will override the hostname.
Optional
isSpecifies whether metrics is enabled.
Optional
sendThe interval in milliseconds to send the metrics.
Optional
serviceThe name of the service to put as attribute. By default will be read from the package.json file.
Optional
serviceThe version of the service to put as attribute. By default will be read from the package.json file.
Optional
urlThe URL to an HTTP OTLP endpoint to send the metrics to.
Configuration options for metrics collection. Extends the base metrics configuration with optional parameters.
MetricsOptions