Skip to content

fix: fall back to existing tracing provider when toggle sends enabled without provider#37546

Open
ifer47 wants to merge 1 commit into
langgenius:mainfrom
ifer47:fix/tracing-toggle-provider-fallback
Open

fix: fall back to existing tracing provider when toggle sends enabled without provider#37546
ifer47 wants to merge 1 commit into
langgenius:mainfrom
ifer47:fix/tracing-toggle-provider-fallback

Conversation

@ifer47

@ifer47 ifer47 commented Jun 16, 2026

Copy link
Copy Markdown

Summary

  • The tracing enable toggle in the UI sends {"enabled": true} without including tracing_provider
  • The AppTracePayload validator rejects this with "tracing_provider is required when enabled is True", even when a provider like Langfuse is already configured
  • The endpoint now looks up the current tracing_provider from the app's existing config before validation, so the toggle works after initial provider setup
  • If no provider is configured yet, the validation error still correctly fires

Test plan

  • Configure a tracing provider (e.g., Langfuse) in an app's monitoring settings
  • Toggle the tracing enable switch on — should succeed without validation error
  • Toggle the tracing enable switch off — should succeed
  • Try enabling tracing on an app with no provider configured — should still get the validation error
  • Verify unit tests pass

Closes #37174

🤖 Generated with Claude Code Best

… without provider

The tracing enable toggle in the UI sends {"enabled": true} without
including tracing_provider. The AppTracePayload validator rejects this
with "tracing_provider is required when enabled is True", even when a
provider like Langfuse is already configured.

Now the endpoint looks up the current tracing_provider from the app's
existing config before validation, so the toggle works after initial
provider setup.

Closes langgenius#37174

Co-Authored-By: zhipu/glm-5 <zai-org@claude-code-best.win>
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

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