Skip to content

COBS-1696: Align Insights tracing wire contract - #2063

Merged
kishlay-singh-DO merged 3 commits into
digitalocean:insights_v2from
dmamidala-glitch:cobs-1696-tracing-contract
Oct 21, 2026
Merged

kishlay-singh-DO merged 3 commits into
digitalocean:insights_v2from
dmamidala-glitch:cobs-1696-tracing-contract

Conversation

@dmamidala-glitch

Copy link
Copy Markdown
Contributor

Summary

Aligns the doctl Insights spans and traces commands with the snake_case, logs-style filter contract now deployed in S2R1.

  • updates to the merged godo tracing contract from COBS-1696: Align Insights tracing wire contract godo#1179
  • accepts canonical condition/and/or/not/text_search filters with typed values
  • updates request-file input, help, validation errors, and JSON output to snake_case
  • preserves godo legacy filter input compatibility while emitting the canonical wire format

Depends on:

The current godo dependency is a pseudo-version at the merged commit. Replace it with the next tagged godo release before this PR is merged.

Validation

  • go build -mod=vendor -o /tmp/doctl-cobs-1696 ./cmd/doctl
  • go test -mod=vendor ./commands ./commands/displayers -run Insights -count=1
  • go test -race -mod=vendor ./commands ./commands/displayers -run Insights -count=1
  • go vet -mod=vendor ./...
  • go test -mod=vendor ./... -skip ^TestRegistryLogout$
  • S2R1: notification-channel and alert-rule CRUD
  • S2R1: alert-instance/resource list
  • S2R1: all PromQL commands and logs search
  • S2R1: spans/traces search with default, canonical filter, and request-file inputs
  • S2R1: trace/resource/alert-instance get routes with expected not-found responses

The unmodified full suite only fails at the unrelated macOS keychain-dependent TestRegistryLogout (credentials not found in native keychain).

S2R1 follow-up

Resource update for a nonexistent resource still returns backend HTTP 500 rather than 404; this is independent of the doctl tracing change.

dmamidala-glitch and others added 2 commits October 21, 2026 18:01
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@dmamidala-glitch
dmamidala-glitch marked this pull request as ready for review October 21, 2026 12:59
Co-authored-by: Cursor <cursoragent@cursor.com>
@kishlay-singh-DO
kishlay-singh-DO merged commit c54a091 into digitalocean:insights_v2 Oct 21, 2026
SSharma-10 pushed a commit that referenced this pull request Oct 22, 2026
* Add Insights command foundation (#2038)

Co-authored-by: Cursor <cursoragent@cursor.com>

* Add Insights notification channel and alert rule commands (#2043)

* Add Insights alert instance, PromQL, and logs commands (#2044)

* Add Insights alert instance, PromQL, and logs commands

Add doctl insights alert-instance (list, get), metrics (query,
query-range, labels, label-values, series), and logs search commands
backed by the Insights service, with input validation, text and
Prometheus-shaped JSON output, and unit tests.

Related: COBS-1695

* Fix Insights flag help placeholders

pflag treats the first backticked word in a flag's usage as its value
placeholder, which produced help such as --end 2026-09-01T00:00:00Z.
Drop incidental backticks and keep only intentional placeholders.

* Reuse shared Insights helpers from alert rule commands

Use the shared Insights flag names, AddStringArrayFlag and
getInsightsStringArray for --match, readInsightsRequest for logs
request and filter files (adding YAML support), and
rejectRequestFileFlagMix for request-file conflicts.

* Add Insights spans and traces commands (#2047)

Co-authored-by: Cursor <cursoragent@cursor.com>

* Add Insights resource enablement commands (#2061)

Co-authored-by: Cursor <cursoragent@cursor.com>

* COBS-1696: Align Insights tracing wire contract (#2063)

* Align Insights tracing wire contract

Co-authored-by: Cursor <cursoragent@cursor.com>

* Correct Insights tracing filter help

Co-authored-by: Cursor <cursoragent@cursor.com>

* Update godo to v1.230.0

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix Insights logs validation test spelling

Co-authored-by: Cursor <cursoragent@cursor.com>

* Confirm destructive Insights deletes

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: srajputdo <sakshirajput@digitalocean.com>
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.

2 participants