Skip to content

TraceqlFilterBuilder🔗

Constructor🔗

func NewTraceqlFilterBuilder() *TraceqlFilterBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *TraceqlFilterBuilder) Build() (TraceqlFilter, error)

Id🔗

Uniquely identify the filter, will not be used in the query generation

func (builder *TraceqlFilterBuilder) Id(id string) *TraceqlFilterBuilder

Operator🔗

The operator that connects the tag to the value, for example: =, >, !=, =~

func (builder *TraceqlFilterBuilder) Operator(operator string) *TraceqlFilterBuilder

Scope🔗

The scope of the filter, can either be unscoped/all scopes, resource or span

func (builder *TraceqlFilterBuilder) Scope(scope tempo.TraceqlSearchScope) *TraceqlFilterBuilder

Tag🔗

The tag for the search filter, for example: .http.status_code, .service.name, status

func (builder *TraceqlFilterBuilder) Tag(tag string) *TraceqlFilterBuilder

Value🔗

The value for the search filter

func (builder *TraceqlFilterBuilder) Value(values []string) *TraceqlFilterBuilder

ValueType🔗

The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query

func (builder *TraceqlFilterBuilder) ValueType(valueType string) *TraceqlFilterBuilder

See also🔗