@launchdarkly/observability + @launchdarkly/session-replay
    Preparing search index...
    • The span.recordException method doesn't allow for additional attributes to be added to the event. This function copies the logic from the span.recordException method and allows adding extra attributes to the event.

      Parameters

      • span: undefined | Span

        The span to add the event to. If the span is undefined, then the function does nothing.

      • exception: Exception

        The exception to record.

      • extraAttributes: Attributes

        Additional attributes to add to the event.

      Returns void