@segment/analytics-next
Version:
Analytics Next (aka Analytics 2.0) is the latest version of Segment’s JavaScript SDK - enabling you to send your data to any tool without having to learn, test, or use a new API every time.
9 lines • 468 B
JavaScript
export function recordIntegrationMetric(ctx, _a) {
var methodName = _a.methodName, integrationName = _a.integrationName, type = _a.type, _b = _a.didError, didError = _b === void 0 ? false : _b;
ctx.stats.increment("analytics_js.integration.invoke".concat(didError ? '.error' : ''), 1, [
"method:".concat(methodName),
"integration_name:".concat(integrationName),
"type:".concat(type),
]);
}
//# sourceMappingURL=metric-helpers.js.map