OpenInference JS
    Preparing search index...
    • Map the GenAI conversation id to the OpenInference session id.

      gen_ai.conversation.id identifies the conversation (session or thread) a span belongs to, which is what session.id represents in OpenInference. An explicit session.id takes precedence.

      Parameters

      • spanAttributes: Attributes

        The GenAI span attributes to read the conversation id from

      Returns Attributes

      The mapped OpenInference session attributes