Tempo: Support multiple filter expressions for service graph queries (#81037)

* support "OR" for service graph queries

* make betterer happy

* continue appeasing betterer

* betterer results
This commit is contained in:
Domas
2024-01-26 16:37:49 +02:00
committed by GitHub
parent 8c212a1952
commit e9a99a46b0
10 changed files with 233 additions and 75 deletions
@@ -126,8 +126,8 @@ type TempoQuery struct {
// Use service.namespace in addition to service.name to uniquely identify a service.
ServiceMapIncludeNamespace *bool `json:"serviceMapIncludeNamespace,omitempty"`
// Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}
ServiceMapQuery *string `json:"serviceMapQuery,omitempty"`
// Filters to be included in a PromQL query to select data for the service graph. Example: {client="app",service="app"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally.
ServiceMapQuery *any `json:"serviceMapQuery,omitempty"`
// @deprecated Query traces by service name
ServiceName *string `json:"serviceName,omitempty"`