import { newContext } from "../context/context";
import { withXhttp } from "./context";
import { tracedAxios } from "./client";
export const expressAxios = (req, response, next) => {
    if (!req.ctx) {
        req.ctx = newContext();
    }
    req.ctx = withXhttp(req.ctx, tracedAxios(req.ctx));
    next();
};
//# sourceMappingURL=middleware.js.map