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

      Parameters

      • context: Context

        The context to get the metadata from.

      Returns Metadata | undefined

      The metadata

      const metadata = getMetadata(context.active());