Documentation
    Preparing search index...
    • Calls the given asynchronous function with oTel tracing span instrumentation

      Type Parameters

      • T

      Parameters

      • fn: (span?: Span) => Promise<T>

        function to be called

      • tracer: Tracer

        tracer to be used

      • spanName: string

        name of the span to be created

      • OptionalspanOptions: SpanOptions

        Options object needed for span creation with optional attributes: kind, attributes, links, startTime, root

      Returns Promise<T>

      the result of the original function