sentry icon indicating copy to clipboard operation
sentry copied to clipboard

feat(timeseries): Add cross trace querying

Open wmak opened this issue 1 month ago • 3 comments

  • This adds support for the cross trace queries to the timeseries endpoint

wmak avatar Dec 04 '25 22:12 wmak

I'm curious how exactly the TraceItemFilters are applied to filter another item type? Is it via trace_id? E.g. if I do "query all spans where log.severity = warn" It first gets all traces where log.severity = warn, then filters spans based on that?

aliu39 avatar Dec 05 '25 18:12 aliu39

@aliu39 yes you can read more here; https://github.com/getsentry/snuba/blob/master/snuba/web/rpc/v1/resolvers/common/cross_item_queries.py#L67

I'd call this parameter experimental and not prod ready right now though so please don't use it yet

wmak avatar Dec 08 '25 19:12 wmak

@wmak got it thank you!

aliu39 avatar Dec 08 '25 22:12 aliu39