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

      Type Parameters

      • T

      Parameters

      • fn: (span?: Span) => 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 T

      the result of the original function