import { newTracing } from "./tracing";
const TRACING_ID_KEY = "ctx-key-tracing-id";
export const withTracing = (ctx, id) => {
    return Object.assign(Object.assign({}, ctx), { [TRACING_ID_KEY]: id });
};
export const getTracing = (ctx) => {
    const l = ctx[TRACING_ID_KEY];
    if (l == undefined) {
        return newTracing();
    }
    return l;
};
//# sourceMappingURL=context.js.map