[PR #850] [MERGED] doc: Update otel page with Hybrid Tracing info #829

Closed
opened 2026-02-21 17:19:00 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langsmith-docs/pull/850
Author: @EugeneJinXin
Created: 6/13/2025
Status: Merged
Merged: 6/13/2025
Merged by: @EugeneJinXin

Base: mainHead: langsmith-trace-hybrid


📝 Commits (6)

📊 Changes

1 file changed (+116 additions, -97 deletions)

View changed files

📝 docs/observability/how_to_guides/trace_langchain_with_otel.mdx (+116 -97)

📄 Description

  1. Added "info" banner about Hybrid Tracing

Since langsmith ≥ 0.4.1,
setting LANGSMITH_OTEL_ENABLED=true automatically adds a LangSmith OTEK exporter and respects any existing OpenTelemetry TracerProvider or standard OTEL environment variables you configure.

This means enabling LANGSMITH_OTEL_ENABLED will by default send traces to both LangSmith and your OTEL enpoint (if you have global trace provider initiazlied). No extra code is needed for fan-out.

And

To disable the hybrid behavior after 0.4.1 and send traces only to your OTEL endpoint and exclude sending to LangSmith, add an additional env var:

LANGSMITH_OTEL_ONLY = "true"

  1. This page is pretty long so i added a quick preview
  2. I think Distributed Tracing section is an advanced usecase and a less frequent read, so it moved it from section 2 to section 3 the last.
  3. Some nit edits.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langsmith-docs/pull/850 **Author:** [@EugeneJinXin](https://github.com/EugeneJinXin) **Created:** 6/13/2025 **Status:** ✅ Merged **Merged:** 6/13/2025 **Merged by:** [@EugeneJinXin](https://github.com/EugeneJinXin) **Base:** `main` ← **Head:** `langsmith-trace-hybrid` --- ### 📝 Commits (6) - [`a62289e`](https://github.com/langchain-ai/langsmith-docs/commit/a62289e3d4fdb10aec8dc333b390ec233b8ff5ac) Update otel page with Hybrid Tracing info - [`c55e6cd`](https://github.com/langchain-ai/langsmith-docs/commit/c55e6cdf24cc585d493ec9f27e3c870a437fa31d) lint - [`8252cf5`](https://github.com/langchain-ai/langsmith-docs/commit/8252cf5314aebf15472c5298e5ca6d5c0e4d93be) address comm - [`bd1e78a`](https://github.com/langchain-ai/langsmith-docs/commit/bd1e78a7fb20785f20b6f9a1fc8bef42dc747b5f) address further comment - [`d8eed2e`](https://github.com/langchain-ai/langsmith-docs/commit/d8eed2e2cfe9a1da6f5b1ad4973c9b209444111f) linter - [`4e1d770`](https://github.com/langchain-ai/langsmith-docs/commit/4e1d7703dd738fb6094c8112fe34b7eca9a524a4) Merge branch 'main' into langsmith-trace-hybrid ### 📊 Changes **1 file changed** (+116 additions, -97 deletions) <details> <summary>View changed files</summary> 📝 `docs/observability/how_to_guides/trace_langchain_with_otel.mdx` (+116 -97) </details> ### 📄 Description 1. Added "info" banner about Hybrid Tracing > Since langsmith ≥ 0.4.1, > setting LANGSMITH_OTEL_ENABLED=true automatically adds a LangSmith OTEK exporter and respects any existing OpenTelemetry TracerProvider or standard OTEL environment variables you configure. > > This means enabling LANGSMITH_OTEL_ENABLED will by default send traces to both LangSmith and your OTEL enpoint (if you have global trace provider initiazlied). No extra code is needed for fan-out. > And > To disable the hybrid behavior after 0.4.1 and send traces only to your OTEL endpoint and exclude sending to LangSmith, add an additional env var: > > LANGSMITH_OTEL_ONLY = "true" > 2. This page is pretty long so i added a quick preview 3. I think Distributed Tracing section is an advanced usecase and a less frequent read, so it moved it from section 2 to section 3 the last. 4. Some nit edits. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-21 17:19:00 -05:00
yindo closed this issue 2026-02-21 17:19:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langsmith-docs#829