@grafana/faro-web-sdk
Version:
Faro instrumentations, metas, transports for web.
12 lines • 612 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSession = createSession;
var faro_core_1 = require("@grafana/faro-core");
function createSession(attributes) {
var _a, _b, _c, _d;
return {
id: (_d = (_c = (_b = (_a = faro_core_1.faro.config) === null || _a === void 0 ? void 0 : _a.sessionTracking) === null || _b === void 0 ? void 0 : _b.generateSessionId) === null || _c === void 0 ? void 0 : _c.call(_b)) !== null && _d !== void 0 ? _d : (0, faro_core_1.genShortID)(),
attributes: attributes,
};
}
//# sourceMappingURL=createSession.js.map