eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
1 lines • 755 B
JavaScript
import{registerInstrumentationRuntime}from"#instrumentation/runtime.js";import{createInstrumentationHooks}from"#instrumentation/lifecycle.js";import{createInstrumentationSetupContext}from"#instrumentation/setup-context.js";async function registerInstrumentationConfig(e,t){let n=registerInstrumentationRuntime({forceFlush:async()=>void 0,hooks:createInstrumentationHooks([]),otelSettings:{functionId:e.functionId,recordInputs:e.recordInputs===!0,recordOutputs:e.recordOutputs===!0,traceChannelRequests:e.traceChannelRequests===!0},runInContext:(e,t)=>t(),shutdown:async()=>void 0});n.stepStartedRuntimeContextResolver=t=>e.events?.[`step.started`]?.(t),await e.setup?.(createInstrumentationSetupContext(t.agentName))}export{registerInstrumentationConfig};