import axios from "axios";
import { newAmazonTracingHeader } from "../tracing";
export const tracedAxios = (ctx) => {
    const instance = axios.create();
    const amazonTracingHeader = newAmazonTracingHeader(ctx);
    // add tracing inteceptor
    instance.interceptors.request.use((request) => {
        request.headers.set(amazonTracingHeader.header, amazonTracingHeader.value);
        return request;
    });
    return instance;
};
//# sourceMappingURL=client.js.map