Skip to content

fix(runner/traces): return empty result (no error) when ClickHouse is off - #531

Open
mayankpande88 wants to merge 3 commits into
mainfrom
fix/runner-clickhouse-traces-empty
Open

fix(runner/traces): return empty result (no error) when ClickHouse is off#531
mayankpande88 wants to merge 3 commits into
mainfrom
fix/runner-clickhouse-traces-empty

Conversation

@mayankpande88

Copy link
Copy Markdown
Contributor

api_traces_enricher_v2 set error="clickhouse: not configured" when the
agent has no ClickHouse client. The backend traces parser treats that as
a hard error and surfaces it to the user, even though "ClickHouse not
configured" just means this cluster has no OTel trace store.

Return the successful, empty traces payload with no error key so the
parser renders the normal "no traces" empty state, matching the legacy
get_application_traces behavior when the trace store is absent.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01L2HAXQH1gEtX7h4sUJsi9j

… off

api_traces_enricher_v2 set error="clickhouse: not configured" when the
agent has no ClickHouse client. The backend traces parser treats that as
a hard error and surfaces it to the user, even though "ClickHouse not
configured" just means this cluster has no OTel trace store.

Return the successful, empty traces payload with no `error` key so the
parser renders the normal "no traces" empty state, matching the legacy
get_application_traces behavior when the trace store is absent.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L2HAXQH1gEtX7h4sUJsi9j
@mayankpande88
mayankpande88 requested a review from a team as a code owner July 14, 2026 19:29

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the API traces enricher to return an empty payload without an error key when ClickHouse is not configured, preventing a hard error from being surfaced to the user. The corresponding test case has been updated to verify that the error key is absent under these conditions. There are no review comments to assess, and I have no additional feedback to provide.

blue4209211
blue4209211 previously approved these changes Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Image Tags Updated

I've automatically updated the image tags in `charts/nudgebee-agent/values.yaml` to the latest versions from GHCR for the `main` branch.

The image tags are now synchronized with the latest builds and ready for release.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants