Skip to content

Commit

Permalink
use constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadman97 committed Feb 14, 2024
1 parent 8022964 commit 706f732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/clickhouse/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var TracesTableConfig = model.TableConfig[modelInputs.ReservedTraceKey]{
BodyColumn: TracesTableNoDefaultConfig.BodyColumn,
AttributesColumn: TracesTableNoDefaultConfig.AttributesColumn,
SelectColumns: TracesTableNoDefaultConfig.SelectColumns,
DefaultFilter: fmt.Sprintf("span_name!=%s %s!=%s", highlight.MetricSpanName, highlight.TraceTypeAttribute, highlight.TraceTypeHighlightInternal),
DefaultFilter: fmt.Sprintf("%s!=%s %s!=%s", modelInputs.ReservedTraceKeySpanName, highlight.MetricSpanName, highlight.TraceTypeAttribute, highlight.TraceTypeHighlightInternal),
}

var tracesSamplingTableConfig = model.TableConfig[modelInputs.ReservedTraceKey]{
Expand All @@ -105,7 +105,7 @@ var tracesSamplingTableConfig = model.TableConfig[modelInputs.ReservedTraceKey]{
ReservedKeys: modelInputs.AllReservedTraceKey,
AttributesColumn: "TraceAttributes",
SelectColumns: traceColumns,
DefaultFilter: fmt.Sprintf("span_name!=%s %s!=%s", highlight.MetricSpanName, highlight.TraceTypeAttribute, highlight.TraceTypeHighlightInternal),
DefaultFilter: fmt.Sprintf("%s!=%s %s!=%s", modelInputs.ReservedTraceKeySpanName, highlight.MetricSpanName, highlight.TraceTypeAttribute, highlight.TraceTypeHighlightInternal),
}

var tracesSampleableTableConfig = sampleableTableConfig[modelInputs.ReservedTraceKey]{
Expand Down

0 comments on commit 706f732

Please sign in to comment.