Skip to content

Commit

Permalink
address review comment
Browse files Browse the repository at this point in the history
Signed-off-by: nidhey27 <[email protected]>
  • Loading branch information
nidhey27 committed Jan 28, 2024
1 parent 659663b commit 8f594ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hotrod/services/customer/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func newDatabase(tracer trace.Tracer, logger log.Factory) *database {
func (d *database) Get(ctx context.Context, customerID int) (*Customer, error) {
d.logger.For(ctx).Info("Loading customer", zap.Int("customer_id", customerID))

_, span := d.tracer.Start(ctx, "SQL SELECT")
ctx, span := d.tracer.Start(ctx, "SQL SELECT", trace.WithSpanKind(trace.SpanKindClient))
span.SetAttributes(
attribute.
Key("sql.query").
Expand Down

0 comments on commit 8f594ee

Please sign in to comment.