Skip to content

docs: Traceloop SDK integration documentation#9514

Merged
mendonk merged 22 commits intolangflow-ai:docs-1.6from
2getsandesh:docs-traceloop-sdk-integration
Aug 29, 2025
Merged

docs: Traceloop SDK integration documentation#9514
mendonk merged 22 commits intolangflow-ai:docs-1.6from
2getsandesh:docs-traceloop-sdk-integration

Conversation

@2getsandesh
Copy link
Contributor

@2getsandesh 2getsandesh commented Aug 25, 2025

This PR introduces a new documentation page for integrating Instana with Langflow using the Traceloop SDK. The guide provides end-to-end instructions for setting up observability to monitor and analyze LLM workflows within Langflow.

Related PR : #9317 — Implements Traceloop tracing support

Summary by CodeRabbit

  • Documentation
    • Added a guide for integrating Instana observability with Langflow using the Traceloop SDK, including prerequisites, environment-based setup, OTEL Data Collector configuration, startup commands, and verification steps in Instana.
    • Included troubleshooting guidance (API keys, endpoints, env-file placement, OTEL DC status, logs) and links to advanced configuration resources.
    • Updated the docs sidebar to list the Instana + Traceloop integration under Observability → Monitoring → Integrations.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 25, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbit review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

Adds a new Instana/Traceloop integration guide to the docs and registers it in the sidebar under Observability → Monitoring → Integrations. No code or API changes.

Changes

Cohort / File(s) Summary of Changes
New Instana/Traceloop integration doc
docs/docs/Integrations/integrations-instana-traceloop.mdx
Added a guide detailing setup via environment variables, OTEL Data Collector configuration, Langflow startup instructions, verification steps, and troubleshooting.
Sidebar update
docs/sidebars.js
Added Integrations/integrations-instana-traceloop to the Observability → Monitoring → Integrations section.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

documentation, size:L

Suggested reviewers

  • ogabrielluiz
  • Yukiyukiyeah
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbit in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbit in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbit gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbit read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbit help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbit ignore or @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbit summary or @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbit or @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@2getsandesh
Copy link
Contributor Author

@mendonk Hey, could you please review the PR. Thanks

@2getsandesh 2getsandesh marked this pull request as ready for review August 25, 2025 09:19
@github-actions github-actions bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 25, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Nitpick comments (7)
docs/sidebars.js (1)

138-145: Optional: keep the Integrations list alphabetized

Current order is mostly alphabetical (Arize → Langfuse → Langsmith → Langwatch → Opik). Consider placing integrations-instana-traceloop after Arize to preserve sort order.

Apply this minimal move:

               "Integrations/integrations-arize",
+              "Integrations/integrations-instana-traceloop",
               "Integrations/integrations-langfuse",
               "Integrations/integrations-langsmith",
               "Integrations/integrations-langwatch",
               "Integrations/integrations-opik",
-                "Integrations/integrations-instana-traceloop",
docs/docs/Integrations/integrations-instana-traceloop.mdx (6)

10-19: Minor grammar/style fixes in “About” sections

  • Prefer “the Traceloop SDK” and “the Instana observability platform”.
  • Use short, direct sentences and second person.
-## About Traceloop
+## About Traceloop
@@
-Traceloop SDK is a lightweight instrumentation toolkit designed for LLM (Large Language Model) applications. It enables developers to automatically capture and export traces, metrics, and key observability signals from their LLM-powered workflows.
+The Traceloop SDK is a lightweight instrumentation toolkit for LLM (large language model) applications. It automatically captures and exports traces, metrics, and key observability signals from LLM-powered workflows.
@@
-When combined with Instana, the exported telemetry data from Traceloop provides end-to-end visibility—allowing users to visualize traces, analyze performance bottlenecks, and ensure reliable operation of LLM-driven applications.
+When you connect Traceloop to Instana, you get end‑to‑end visibility: visualize traces, analyze performance bottlenecks, and improve reliability for LLM‑driven applications.
@@
-Instana is IBM’s observability platform that provides real-time visibility into application performance. In this integration, Instana acts as the backend for viewing and analyzing the traces and metrics exported using the Traceloop SDK. It allows developers to monitor Langflow’s LLM workflows, visualize trace spans, and analyze performance metrics, making it easier to identify bottlenecks and ensure smooth operation.
+Instana is IBM’s observability platform for real‑time application performance. In this integration, Instana is the backend for traces and metrics exported by the Traceloop SDK. You monitor Langflow workflows, visualize spans, and analyze performance metrics.

22-26: Prerequisites: grammar and clarity

  • Remove backticks around plain nouns.
  • Fix “Checkout” → “Check out”, extra space, and “setup” → “set up”.
-Before setting up observability, ensure you have:
-- A `Traceloop API key` (for Traceloop integration): Navigate to the [Traceloop API Key settings](https://app.traceloop.com/settings/api-keys) to generate  your API keys.
-- An `Instana endpoint` and `Instana key` (for Instana integration): Checkout [Instana Documentation](https://www.ibm.com/docs/en/instana-observability/1.0.302) for reference.
-- A running Langflow application setup
+Before you set up observability, make sure you have:
+- A Traceloop API key: go to the [Traceloop API keys](https://app.traceloop.com/settings/api-keys) page to generate your key.
+- An Instana endpoint and API key: check the [Instana documentation](https://www.ibm.com/docs/en/instana-observability/1.0.302) to obtain these values.
+- A running Langflow application.

57-62: Use language hint for the command and reference env vars doc

Add shell highlighting and a pointer to our env vars guide for alternatives to --env-file.

-```bash
-uv run langflow run --env-file .env
-```
+```bash
+uv run langflow run --env-file .env
+```
+
+See also: [Environment variables](../Configuration/environment-variables).

67-83: UI wording and style (bold UI elements; sentence case)

Use bold for UI, sentence case for steps, and keep wording concise.

-1. **Run a flow in Langflow:**
-   - In Langflow, select the "Simple Agent" starter project
-   - In the **Agent** component's **API Key** field, enter your LLM API key
-   - Click **Playground**
-   - Ask your Agent several questions to generate test traffic
+1. Run a flow in Langflow
+   - In Langflow, open the “Simple Agent” starter project.
+   - In the **Agent** Component, set your LLM **API key**.
+   - Click **Playground**.
+   - Ask the agent a few questions to generate test traffic.
@@
-2. **View Traces in Instana:**
-   - Open Instana and select `Applications` from the sidebar.
-   - Click on `Services` tab in the Navbar (Top).
-   - Search for `Langflow` and click on it to view and analyze the associated calls.
+2. View traces in Instana
+   - In Instana, go to **Applications** → **Services**.
+   - Search for **Langflow** and open it to analyze calls and spans.
@@
-3. **View Metrics in Instana:**
-   - Open Instana and select `Infrastructure`.
-   - Click on `Analyse Infrastructure`.
-   - Search for `Otel LLMonitor`.
-   - Select `LLM:DC1@your_machine_name.local` to view your Metrics dashboard.
+3. View metrics in Instana
+   - Go to **Infrastructure** → **Analyse infrastructure**.
+   - Search for **OTel LLMonitor**.
+   - Select **LLM:DC1@your_machine_name.local** to open the metrics dashboard.

84-97: Troubleshooting: convert to admonitions and tighten copy

Admonitions draw attention to issues per our docs guidelines.

-## Troubleshooting
-
-If you don't see traces appearing:
-- Verify that your API keys and endpoints are correct in the `.env` file
-- Ensure the `.env` file is in the correct root directory
-- Confirm that Langflow is starting with the `--env-file .env` parameter
-- Check that you've generated sufficient test traffic through the Playground
-
-If you don’t see metrics appearing:
-- Ensure the OpenTelemetry (Otel) Data Collector is running without errors.
-- Verify that the Otel DC config.yaml is configured as described above.
-- Confirm that the Instana endpoint and the service port (e.g., service.port: 8000) are correctly exposed and accessible.
-- Check whether the metrics are being logged in the Otel DC terminal output.
+## Troubleshooting
+
+:::warning No traces in Instana
+- Verify API keys and endpoints in your `.env`.
+- Ensure you start Langflow with `--env-file .env` (or equivalent env setup).
+- Generate enough test traffic in the **Playground**.
+:::
+
+:::tip No metrics in Instana
+- Confirm the OpenTelemetry (OTel) Collector is running without errors.
+- Re-check the collector `config.yaml` and service port (for example, `8000`) exposure.
+- Look for exporter/processor errors in the collector logs.
+:::

98-98: Link wording and versioning

Use current, version-agnostic doc links when possible and keep link text concise.

-For additional configuration options and advanced features, refer to the respective platform documentation for [Traceloop](https://www.traceloop.com/docs/introduction) or [Instana](https://www.ibm.com/docs/en/instana-observability/current).
+For advanced configuration, see the docs for [Traceloop](https://www.traceloop.com/docs/introduction) and [Instana](https://www.ibm.com/docs/en/instana-observability/current).
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between d3abfb5 and 221e7b2.

📒 Files selected for processing (2)
  • docs/docs/Integrations/integrations-instana-traceloop.mdx (1 hunks)
  • docs/sidebars.js (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
docs/sidebars.js

📄 CodeRabbit inference engine (.cursor/rules/docs_development.mdc)

Sidebar navigation must be updated in docs/sidebars.js to reflect new or reorganized documentation content.

Files:

  • docs/sidebars.js
docs/docs/**/*.{md,mdx}

📄 CodeRabbit inference engine (.cursor/rules/docs_development.mdc)

docs/docs/**/*.{md,mdx}: All documentation content must be written in Markdown or MDX files located under docs/docs/, following the prescribed directory structure for guides, reference, how-to, concepts, and API documentation.
All documentation Markdown and MDX files must begin with a frontmatter block including at least title and description fields.
Use admonitions (:::tip, :::warning, :::danger) in Markdown/MDX files to highlight important information, warnings, or critical issues.
All images referenced in documentation must include descriptive alt text for accessibility.
All code examples included in documentation must be tested and verified to work as shown.
Internal links in documentation must be functional and not broken.
Content must follow the style guide: professional but approachable tone, second person voice, present tense, short paragraphs, sentence case headers, inline code with backticks, bold for UI elements, italic for emphasis, and parallel structure in lists.
Use consistent terminology: always capitalize Langflow, Component, Flow, and uppercase API and JSON.

Files:

  • docs/docs/Integrations/integrations-instana-traceloop.mdx
🧠 Learnings (1)
📚 Learning: 2025-07-18T18:26:42.027Z
Learnt from: CR
PR: langflow-ai/langflow#0
File: .cursor/rules/docs_development.mdc:0-0
Timestamp: 2025-07-18T18:26:42.027Z
Learning: Applies to docs/sidebars.js : Sidebar navigation must be updated in docs/sidebars.js to reflect new or reorganized documentation content.

Applied to files:

  • docs/sidebars.js
🪛 LanguageTool
docs/docs/Integrations/integrations-instana-traceloop.mdx

[grammar] ~8-~8: There might be a mistake here.
Context: ...ation Guide This guide explains how to integrate Instana observability platform using Tr...

(QB_NEW_EN)


[grammar] ~8-~8: There might be a mistake here.
Context: ...ntegrate Instana observability platform using Traceloop SDK with your Langflow applic...

(QB_NEW_EN)


[grammar] ~22-~22: There might be a mistake here.
Context: ...tting up observability, ensure you have: - A Traceloop API key (for Traceloop int...

(QB_NEW_EN)


[grammar] ~23-~23: There might be a mistake here.
Context: ...gs/api-keys) to generate your API keys. - An Instana endpoint and Instana key ...

(QB_NEW_EN)


[grammar] ~24-~24: There might be a mistake here.
Context: ...na-observability/1.0.302) for reference. - A running Langflow application setup ##...

(QB_NEW_EN)


[grammar] ~29-~29: There might be a mistake here.
Context: ... Step 1: Configure Environment Variables 1. Create a .env file in the root directo...

(QB_NEW_EN)


[grammar] ~42-~42: There might be a mistake here.
Context: ...e OTEL Data Collector is up and running. - In otel-dc config.yaml, add the follow...

(QB_NEW_EN)


[grammar] ~57-~57: There might be a mistake here.
Context: ...tart Langflow with Environment Variables Launch your Langflow application using t...

(QB_NEW_EN)


[grammar] ~67-~67: There might be a mistake here.
Context: ...correctly: 1. Run a flow in Langflow: - In Langflow, select the "Simple Agent" s...

(QB_NEW_EN)


[grammar] ~75-~75: There might be a mistake here.
Context: ...k on Services tab in the Navbar (Top). - Search for Langflow and click on it to...

(QB_NEW_EN)


[grammar] ~86-~86: There might be a mistake here.
Context: ...ting If you don't see traces appearing: - Verify that your API keys and endpoints ...

(QB_NEW_EN)


[grammar] ~93-~93: There might be a mistake here.
Context: ...ata Collector is running without errors. - Verify that the Otel DC config.yaml is c...

(QB_NEW_EN)

🔇 Additional comments (2)
docs/sidebars.js (1)

138-145: Add Instana/Traceloop doc to Monitoring → Integrations — LGTM

The new entry points to the correct doc id (Integrations/integrations-instana-traceloop) and follows the existing pattern.

docs/docs/Integrations/integrations-instana-traceloop.mdx (1)

33-37: Please verify environment variables and OTel Collector configuration

Before merging, confirm the following against the vendor documentation:

• OTEL_METRIC_EXPORT_INTERVAL
– The OpenTelemetry spec defines this environment variable with the singular form (METRIC), not METRICS (opentelemetry.opendocs.io, opentelemetry.io). If you choose to expose a metric-export interval in this guide, use exactly OTEL_METRIC_EXPORT_INTERVAL or note that you rely on the 60 000 ms default.

• TRACELOOP_METRICS_ENDPOINT
– The Traceloop-specific variable expects a bare host:port (no protocol or path), as shown in the Instana LLM Data Collector examples (e.g. otel-dc-llm.llm-monitoring.svc:8000) (community.ibm.com, ibm.com).

• Collector YAML keys
– Ensure your config.yaml for the OpenTelemetry Data Collector uses the Instana-recommended fields (for example:
otel.agentless.mode
otel.backend.url
otel.backend.using.http
callback.interval
otel.service.name
otel.service.port
) exactly as documented by Instana (ibm.com).

Applicable sections:
– Environment block (lines 33–37)
– Collector YAML snippet (lines 45–55)
– Deployment example (lines 79–83)

@github-actions github-actions bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 25, 2025
@mendonk mendonk self-assigned this Aug 25, 2025
@github-actions github-actions bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 25, 2025
@2getsandesh 2getsandesh force-pushed the docs-traceloop-sdk-integration branch from 57cf91e to 717079c Compare August 25, 2025 14:04
@github-actions github-actions bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 25, 2025
@2getsandesh 2getsandesh force-pushed the docs-traceloop-sdk-integration branch from 717079c to cffaf12 Compare August 25, 2025 14:40
@github-actions github-actions bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 25, 2025
@2getsandesh 2getsandesh force-pushed the docs-traceloop-sdk-integration branch from cffaf12 to e8218c3 Compare August 25, 2025 15:03
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Aug 25, 2025
@2getsandesh 2getsandesh force-pushed the docs-traceloop-sdk-integration branch from d1639f3 to 4482a10 Compare August 29, 2025 05:29
@github-actions github-actions bot added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 29, 2025
@2getsandesh 2getsandesh force-pushed the docs-traceloop-sdk-integration branch from 4482a10 to dc5757d Compare August 29, 2025 05:30
2getsandesh and others added 20 commits August 29, 2025 11:01
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwinjose900@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
@2getsandesh 2getsandesh force-pushed the docs-traceloop-sdk-integration branch from dc5757d to 3b18c73 Compare August 29, 2025 05:31
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Aug 29, 2025
@sonarqubecloud
Copy link

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants