Optional
customConfigService?: ConfigServiceInterfaceA custom configuration service to use for retrieving configuration values.
Optional
defaultDimensions?: DimensionsThe default dimensions to add to all metrics.
Optional
logger?: 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.
Optional
namespace?: stringThe namespace to use for all metrics.
Optional
serviceName?: stringThe service name to use for all metrics.
Optional
singleMetric?: booleanWhether to configure the Metrics class to emit a single metric as soon as it is added.
Options to configure the Metrics class.