OptionalattributesOptional attributes to be associated with the metrics.
OptionaldebugSpecifies whether to enable debug mode for metrics. Debug mode will enable the opentelemetry debug log and log metrics to the console.
OptionalhostnameThe value of the hostname attribute to use, will override the hostname.
OptionalisSpecifies whether metrics is enabled.
OptionalsendThe interval in milliseconds to send the metrics.
OptionalserviceThe name of the service to put as attribute. By default will be read from the package.json file.
OptionalserviceThe version of the service to put as attribute. By default will be read from the package.json file.
OptionalurlThe 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