Skip to content

Commit

Permalink
Add comment for why all spans are clients
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Sep 3, 2021
1 parent b94da8d commit 9bab4ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions instrumentation/database/sql/splunksql/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (c config) tracer(ctx context.Context) trace.Tracer {

// withClientSpan wraps the function f with a span.
func (c config) withClientSpan(ctx context.Context, name moniker.Span, f func(context.Context) error, opts ...trace.SpanStartOption) error {
// From the specification: span kind MUST always be CLIENT.
opts = append(opts, trace.WithSpanKind(trace.SpanKindClient))

var (
Expand Down

0 comments on commit 9bab4ee

Please sign in to comment.