"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.expressAxios = void 0;
const context_1 = require("../context/context");
const context_2 = require("./context");
const client_1 = require("./client");
const expressAxios = (req, response, next) => {
    if (!req.ctx) {
        req.ctx = (0, context_1.newContext)();
    }
    req.ctx = (0, context_2.withXhttp)(req.ctx, (0, client_1.tracedAxios)(req.ctx));
    next();
};
exports.expressAxios = expressAxios;
//# sourceMappingURL=middleware.js.map