@microsoft/opentelemetry
    Preparing search index...

    Function updateExportToken

    • Update the export token in the active OTel Context. Call this to refresh the token before ending the root span when the original token may have expired during a long-running request.

      Must be called within the same async context created by runWithExportToken.

      Parameters

      • token: string

        The fresh token to use for export.

      Returns boolean

      true if the token was updated successfully, false if no token holder was found.