SugaredOptions.d.ts 485 B

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