Decorators require TypeScript configuration: Enable experimentalDecorators and emitDecoratorMetadata in your tsconfig.json. When using runtime tools like tsx or ts-node, pass the --experimental-decorators flag.
import { getCurrentSpan, getCurrentTrace, getCurrentSession } from 'zeroeval';function myFunction() { // Get current span const span = getCurrentSpan(); // Get current trace ID const traceId = getCurrentTrace(); // Get current session ID const sessionId = getCurrentSession();}