Trace View: Span filters updated to use combobox filters (#112287)

* Start using adhoc filters component in trace view

* Migrate old span filters to adhoc filters

* Add support for duration filter

* Set placeholder in adhoc filters input

* Moved the span graph to the header, above the filters

* Update next and prev buttons, added filter pills, style fixes

* Fix types

* Use canary scenes version

* Remove copyright

* More duration operators

* Added tests for the controller

* More consistent spacing

* Remove unused container style from SpanGraph component

* Update scenes canary

* Update scenes to 6.42.0

* Fix all spans toggle

* Use InlineSwitch instead of Switch

* Fix critical path

* Fix duration filtering

* Add tooltips to filter pills

* Improve duration filter pill

* Improvements to backgrounds of span row. Fixed size of collapsible overview section

* Fix sticky trace view header

* Removed old span filters from panel options

* Migrate old filters to adhocfilters in panel. Use the adhoc filters component in panel options.

* i18n

* Fix tests

* Fix tests
This commit is contained in:
Andre Pereira
2025-11-14 11:19:11 +00:00
committed by GitHub
parent 92ef1c4942
commit 4355b3ed0d
32 changed files with 1937 additions and 518 deletions
@@ -1,6 +1,7 @@
import { DataQuery } from '@grafana/schema';
import { PreferredVisualisationType } from './data';
import { SelectableValue } from './select';
import { TimeRange } from './time';
type AnyQuery = DataQuery & Record<string, any>;
@@ -31,6 +32,7 @@ export interface TraceSearchProps {
to?: string;
toOperator: string;
tags: TraceSearchTag[];
adhocFilters?: Array<SelectableValue<string>>;
query?: string;
matchesOnly: boolean;
criticalPathOnly: boolean;