Skip to content

fix: auto-detect configured tracing provider when enabling toggle#37241

Open
1795771535y-cell wants to merge 1 commit into
langgenius:mainfrom
1795771535y-cell:fix/tracing-toggle-provider-37174
Open

fix: auto-detect configured tracing provider when enabling toggle#37241
1795771535y-cell wants to merge 1 commit into
langgenius:mainfrom
1795771535y-cell:fix/tracing-toggle-provider-37174

Conversation

@1795771535y-cell

Copy link
Copy Markdown
Contributor

Summary

Fixes #37174

When a tracing provider (e.g. Langfuse) has been configured but tracing is disabled, clicking the global enable toggle sends enabled=true without tracing_provider. The backend rejects this with "tracing_provider is required when enabled is True".

Root Cause

handleTracingEnabledChange relied on tracingStatus?.tracing_provider which may be null even when a provider is configured (the tracing config and status are stored via separate APIs).

Fix

Added a configuredProvider helper that detects the first configured provider from local state. When enabling tracing and tracingStatus.tracing_provider is null, it falls back to the configured provider automatically.

Changes

  • web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/panel.tsx: Added configuredProvider computed value from provider config states, used in handleTracingEnabledChange when enabling and no provider is set

Testing

  • Local ESLint: 0 errors (only pre-existing warnings)

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 9, 2026
@github-actions github-actions Bot added the web This relates to changes on the web. label Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files. web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracing enable toggle sends enabled=true without tracing_provider after Langfuse is configured

1 participant