Skip to content

Commit

Permalink
chore(chstorage): set tracing attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed May 24, 2024
1 parent 07ae77e commit ba5638b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/chstorage/querier_traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ func (q *Querier) spanNames(ctx context.Context, tag traceql.Attribute, opts tra

ctx, span := q.tracer.Start(ctx, "spanNames",
trace.WithAttributes(
attribute.Int64("chstorage.range.start", int64(opts.Start)),
attribute.Int64("chstorage.range.end", int64(opts.End)),
attribute.Stringer("chstorage.tag", tag),
attribute.String("chstorage.table", table),
),
)
Expand Down Expand Up @@ -257,11 +260,14 @@ func (q *Querier) spanNames(ctx context.Context, tag traceql.Attribute, opts tra
return iterators.Slice(r), nil
}

func (q *Querier) attributeValues(ctx context.Context, tag traceql.Attribute, _ tracestorage.TagValuesOptions) (_ iterators.Iterator[tracestorage.Tag], rerr error) {
func (q *Querier) attributeValues(ctx context.Context, tag traceql.Attribute, opts tracestorage.TagValuesOptions) (_ iterators.Iterator[tracestorage.Tag], rerr error) {
table := q.tables.Tags

ctx, span := q.tracer.Start(ctx, "attributeValues",
trace.WithAttributes(
attribute.Int64("chstorage.range.start", int64(opts.Start)),
attribute.Int64("chstorage.range.end", int64(opts.End)),
attribute.Stringer("chstorage.tag", tag),
attribute.String("chstorage.table", table),
),
)
Expand Down

0 comments on commit ba5638b

Please sign in to comment.