the-tip-top-backend/node_modules/@opentelemetry/api/build/esm/experimental/trace/SugaredOptions.d.ts
2025-10-25 23:21:31 +00:00

13 lines
485 B
TypeScript

import { Span, SpanOptions } from '../../';
/**
* Options needed for span creation
*/
export interface SugaredSpanOptions extends SpanOptions {
/**
* function to overwrite default exception behavior to record the exception. No exceptions should be thrown in the function.
* @param e Error which triggered this exception
* @param span current span from context
*/
onException?: (e: Error, span: Span) => void;
}
//# sourceMappingURL=SugaredOptions.d.ts.map