Repository navigation
COBS-1353: Add Insights spans search query endpoint - #1259
Merged
Conversation
Document POST /v2/insights/query/{region}/spans/search, mirroring the existing logs search endpoint. Adds the operation, request/response models, filter grammar (condition/and/or/not/text_search), ordering, pagination, and a cURL example.
Co-authored-by: Cursor <cursoragent@cursor.com>
adityasingh-beep
force-pushed
the
adityasingh/COBS-1353-publish-OpenAPI-spec-for-Insights-spans-query
branch
from
October 9, 2026 09:12
9b5c057 to
252bd76
Compare
Contributor
Author
Additional validation — live populated dataBeyond
|
kishlay-singh-DO
approved these changes
Oct 9, 2026
This was referenced Oct 9, 2026
This was referenced Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Documents the public Insights spans search endpoint:
It mirrors the existing
/v2/insights/query/{region}/logs/searchoperation. Added:insights_post_spansSearch.yml) —insights:readscope,regionpath parameter, standard shared error responses.spans_search_request) —timeRange(required),filter,orderBy,pagination.spans_filter_expression) —condition/and/or/not/text_searchnodes; operatorseq,neq,gt,gte,lt,lte,in,exists; field scoping (resource/attributes); and aspans_filter_valuethat accepts a bare scalar/array or a typed{type,value}wrapper.spans_time_range/spans_time_bound) — relative or absolute bounds, 7-day max window.spans_search_response+span_record) — the full span record andpagination.hasMore.examples/curl/.Contract
Field names and the filter grammar match the
querysvc/tracesapibackend (camelCase JSON,DisallowUnknownFields). The request path, method, andinsights:readauth match the merged Edge/queryrouter routing.Validation
make bundle+make lintpass (0 errors).s2r1cell: routing, PAT auth, request acceptance, the full populatedspan_record, the complete filter grammar (condition/and/or/not/text_search, all operators, attribute scope, bothvalueshapes), ordering, pagination (hasMore), and negative cases (400for missing/invalid/unknown-field/unsupported-operator).Notes