Skip to content

LangChain — Align with gen_ai RFC #153 #20582

@andreiborza

Description

@andreiborza

Align the LangChain integration with RFC #153.

Attribute renames

  • gen_ai.systemgen_ai.provider.name
  • gen_ai.request.available_toolsgen_ai.tool.definitions (structured objects, not JSON string)
  • gen_ai.response.textgen_ai.output.messages
  • gen_ai.response.tool_callsgen_ai.output.messages
  • gen_ai.tool.inputgen_ai.tool.call.arguments
  • gen_ai.tool.outputgen_ai.tool.call.result

Required attributes

  • gen_ai.operation.name set on all spans
  • gen_ai.provider.name set on all AI Client spans
  • gen_ai.response.streaming set on all AI Client spans

Message format

  • contentparts in gen_ai.input.messages and gen_ai.output.messages
  • System messages extracted to gen_ai.system_instructions

Metadata

Metadata

Assignees

No one assigned

    Labels

    TaskjavascriptPull requests that update javascript code
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions