OptionalcustomConfigService?: ConfigServiceInterfaceA custom configuration service to use for retrieving configuration values.
OptionaldefaultDimensions?: DimensionsThe default dimensions to add to all metrics.
Optionallogger?: GenericLoggerLogger object to be used for emitting debug, warning, and error messages.
If not provided, debug messages will be suppressed, and warning and error messages will be sent to stdout.
Note that EMF metrics are always sent directly to stdout, regardless of the logger to avoid compatibility issues with custom loggers.
Optionalnamespace?: stringThe namespace to use for all metrics.
OptionalserviceName?: stringThe service name to use for all metrics.
OptionalsingleMetric?: booleanWhether to configure the Metrics class to emit a single metric as soon as it is added.
Options to configure the Metrics class.