Skip to content

feat: Add support for embeddings operations in langchain instrumentation #142

Open

Description

@Cirilla-zmh

What problem do you want to solve?

Currently, embeddings operations are not automatically instrumented by loongsuite-instrumentation-langchain.

Describe the solution you'd like

  • Add an instrumentation point for LangChain Embedding.
  • Capture embeddings operations with genai-util.
  • Add unit tests for instrumentations.

Describe alternatives you've considered

No response

Additional Context

No response

Would you like to implement a fix?

None

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Activity

  1. added
    enhancementNew feature or request
    instrumentaionThe instrumentation label represents issues related to instrumentation.
    genaiThe genai label represents issues related to generative AI.
    on Mar 11, 2026
  2. ralf0131 commented on Jun 17, 2026

    @ralf0131
    Collaborator

    Issue Evaluation

    Category: type/enhancement | Status: Evaluated

    Reasonable and well-aligned with the project direction. loongsuite-instrumentation-langchain currently covers LLM/Chat but not embeddings.

    Feasibility: feasible — moderate scope.
    Scope: add an embeddings instrumentation point in loongsuite-instrumentation-langchain, reusing opentelemetry-util-genai for span + token/usage accounting.
    Compatibility: additive; low risk to existing chat instrumentation.

    Since this is marked contribution welcome, the path is open for a community or automated PR following the existing chat-instrumentation structure.


    Automated evaluation by github-manager-bot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribution welcomeWe'd welcome external contributionenhancementNew feature or requestgenaiThe genai label represents issues related to generative AI.instrumentaionThe instrumentation label represents issues related to instrumentation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions