"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.initializeServiceTrnProcessId = exports.initializeServiceTrn = exports.initializeDefaultServiceTrnProcessId = exports.initializeDefaultServiceTrn = exports.defaultServiceTrn = void 0;
const constants_1 = require("./constants");
const message_1 = require("./message");
const namespace_1 = require("./namespace");
const initializeDefaultServiceTrn = (service, id) => {
    exports.defaultServiceTrn = (0, exports.initializeServiceTrn)(service, id);
};
exports.initializeDefaultServiceTrn = initializeDefaultServiceTrn;
const initializeDefaultServiceTrnProcessId = (service) => {
    exports.defaultServiceTrn = (0, exports.initializeServiceTrnProcessId)(service);
};
exports.initializeDefaultServiceTrnProcessId = initializeDefaultServiceTrnProcessId;
const initializeServiceTrn = (service, id) => {
    return message_1.TRN.NewTRN(constants_1.TRN_TECHNITY_PARENT, namespace_1.TRN_NAMESPACE_SERVICE, service, id);
};
exports.initializeServiceTrn = initializeServiceTrn;
const initializeServiceTrnProcessId = (service) => {
    return (0, exports.initializeServiceTrn)(service, process.pid.toString());
};
exports.initializeServiceTrnProcessId = initializeServiceTrnProcessId;
//# sourceMappingURL=env.js.map