OpenInference JS
    Preparing search index...
    • Gets the user ID from the given OpenTelemetry context.

      Parameters

      • context: Context

        The context to get the user ID from.

      Returns User | undefined

      The user

      const user = getUser(context.active());