"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.newAmazonTracingHeader = exports.newTracing = void 0;
const uuid_1 = require("uuid");
const middleware_1 = require("./middleware");
const context_1 = require("./context");
const newTracing = () => {
    return (0, uuid_1.v4)();
};
exports.newTracing = newTracing;
const newAmazonTracingHeader = (ctx) => {
    return { header: middleware_1.AMAZON_REQUEST_TRACING_HEADER, value: `Root=${(0, context_1.getTracing)(ctx)}` };
};
exports.newAmazonTracingHeader = newAmazonTracingHeader;
//# sourceMappingURL=tracing.js.map