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

      Parameters

      • context: Context

        The context to get the attributes from.

      Returns Attributes | undefined

      The attributes

      const attributes = getAttributes(context.active());