import{context as r}from"@opentelemetry/api";import{telemetry as c}from"../index.js";async function m(a,o){const t=c.tracer.traceStep(a);try{return await r.with(t?.context??r.active(),async()=>await o(t))}catch(e){throw t?.error(e),e}finally{t?.end()}}export{m as telemetryTraceStep};
