OptionalmeterProvider?: MeterProviderOverride the default meter provider.
Optionalmetrics?: MetricsConfigMetrics to register on startup.
OptionalonRecord?: OnRecordCallbackCalled when a metric is recorded. addOnRecord can also be used to add
listeners anytime.
OptionalprefixMetric?: booleanIf this is set to true then the service name is prefixed to every metric.
Service name is a unique name for an application/service.
Protected ReadonlymeterProtected ReadonlymetricsReadonlyprefixProtected ReadonlyrecordReadonlyserviceonRecord callback is called when a metric is recorded.
Returns a function to unsubscribe.
ProtectednotifyOptionallabels: Attributes
Bootstraps an Otel exporter which can send Otel metrics to a dedicated Shopify supported collector endpoint.