Skip to content

feat: Exporting traces to Traceloop. #8155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 0 commits into from

Conversation

2getsandesh
Copy link

This PR introduces support for exporting traces to TraceLoop by:
• Adding a new module traceloop.py for TraceLoop-specific tracing configuration and instrumentation.
• Initializing TraceLoop tracing from service.py to ensure it’s active when LangFlow starts.
• Including necessary dependencies for TraceLoop and OpenTelemetry in pyproject.toml.

📁 Changes Made
• ➕ langflow/src/backend/base/langflow/services/tracing/traceloop.py:
Contains the TraceLoop tracer setup using OpenTelemetry.
• 🔁 Modified service.py:
Initialized TraceLoop tracer via import and setup during tracing service startup.
• 🧩 Updated pyproject.toml:
Added dependencies required for TraceLoop integration (e.g., opentelemetry-sdk, opentelemetry-exporter-otlp, etc.).

🎯 Purpose

This update enables LangFlow to export telemetry data (spans, traces) to TraceLoop for improved observability and debugging, laying the foundation for robust distributed tracing.

@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels May 21, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels May 22, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels May 26, 2025
@render render bot temporarily deployed to main - langflow May 26, 2025 13:23 Inactive
@render render bot temporarily deployed to main - langflow May 26, 2025 13:24 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant