Skip to content

fix(runner/signoz): use GET for autocomplete label/value suggests#516

Merged
mayankpande88 merged 2 commits into
mainfrom
fix/signoz-autocomplete-get
Jul 14, 2026
Merged

fix(runner/signoz): use GET for autocomplete label/value suggests#516
mayankpande88 merged 2 commits into
mainfrom
fix/signoz-autocomplete-get

Conversation

@mangglesh

Copy link
Copy Markdown
Contributor

signoz_label_suggest and signoz_value_suggest issued POST to /api/v3/autocomplete/attribute_{keys,values}, but Signoz serves those endpoints via GET — so they return HTTP 404 and log-search label/value autocomplete never populates.

Switch both to GET with the action_params flattened into the URL query string (dataSource/aggregateOperator/searchText/limit/...). Add a get helper and factor the shared auth/send/read into do so post is unchanged; query_range stays POST. Extend the routing test to assert HTTP method.

Summary

Type of change

  • Bug fix (non-breaking)
  • New feature (non-breaking)
  • Breaking change (chart upgrade requires user action)
  • Documentation only
  • CI / tooling

Chart version

  • I bumped version in charts/nudgebee-agent/Chart.yaml (required for user-visible changes)
  • No version bump needed (docs/CI only)

Test plan

  • helm lint charts/nudgebee-agent passes
  • ct lint --config .github/configs/ct.yaml passes
  • helm template output reviewed
  • Installed on a real/kind cluster and verified the change

Related issues

signoz_label_suggest and signoz_value_suggest issued POST to
/api/v3/autocomplete/attribute_{keys,values}, but Signoz serves those
endpoints via GET — so they return HTTP 404 and log-search label/value
autocomplete never populates.

Switch both to GET with the action_params flattened into the URL query
string (dataSource/aggregateOperator/searchText/limit/...). Add a get
helper and factor the shared auth/send/read into do so post is unchanged;
query_range stays POST. Extend the routing test to assert HTTP method.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mangglesh mangglesh requested a review from a team as a code owner July 13, 2026 20:15

@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 updates the SigNoz client to use GET requests instead of POST requests for the label and value autocomplete suggestion endpoints, introducing a toQuery helper to convert parameters into URL query values and refactoring request execution into a shared do method. Feedback was provided to optimize the toQuery function by using a type assertion to avoid a double JSON roundtrip when params is already a map[string]any, and to handle integer types directly in the type switch.

Comment thread runner/pkg/observability/signoz/client.go
@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.

@mayankpande88 mayankpande88 merged commit d79986d into main Jul 14, 2026
7 checks passed
@mayankpande88 mayankpande88 deleted the fix/signoz-autocomplete-get branch July 14, 2026 03:26
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