Skip to content

feat(langchain): pass telemetry attributes - #740

Merged
anubhav756 merged 1 commit into
googleapis:mainfrom
AjmeraParth132:codex/langchain-telemetry-attributes
Aug 6, 2026
Merged

feat(langchain): pass telemetry attributes#740
anubhav756 merged 1 commit into
googleapis:mainfrom
AjmeraParth132:codex/langchain-telemetry-attributes

Conversation

@AjmeraParth132

@AjmeraParth132 AjmeraParth132 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Background

toolbox-core and toolbox-adk now support TelemetryAttributes, but LangChain wrappers cannot attach model, user, or agent metadata to Toolbox invocations.

Changes

  • Add telemetry_attributes to sync/async load_tool and load_toolset methods.
  • Apply attributes to every loaded core tool before wrapping it.
  • Add immutable add_telemetry_attributes(...) methods to sync/async LangChain tools.
  • Cover client and wrapper paths, including transport-level propagation.

Related

@anubhav756
anubhav756 marked this pull request as ready for review July 28, 2026 13:13
@anubhav756
anubhav756 requested a review from a team as a code owner July 28, 2026 13:13
@anubhav756

Copy link
Copy Markdown
Contributor

/gcbrun

@anubhav756

Copy link
Copy Markdown
Contributor

/gcbrun

@anubhav756
anubhav756 force-pushed the codex/langchain-telemetry-attributes branch 2 times, most recently from 1f0bc50 to 94c1c26 Compare August 5, 2026 05:27
@anubhav756

Copy link
Copy Markdown
Contributor

/gcbrun

@anubhav756
anubhav756 force-pushed the codex/langchain-telemetry-attributes branch from 94c1c26 to d9a667b Compare August 6, 2026 10:05
@anubhav756

Copy link
Copy Markdown
Contributor

/gcbrun

@anubhav756
anubhav756 merged commit c74c7e0 into googleapis:main Aug 6, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants