Optionalenv?: stringWhat environment is being deployed (production, staging).
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.
OptionalthrottleLimit?: numberHow much the export should be throttled in milliseconds.
OptionaluseXhr?: booleanDetermines whether to send metrics via XHR or beacon. Defaults to false.
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.