Skip to content

Commit

Permalink
fix(bunotel): handle option attributes (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
ionling authored Aug 18, 2022
1 parent 887135c commit 9f1e0bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extra/bunotel/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (h *QueryHook) AfterQuery(ctx context.Context, event *bun.QueryEvent) {
fn, file, line := funcFileLine("github.com/uptrace/bun")

attrs := make([]attribute.KeyValue, 0, 10)
attrs = append(attrs, h.attrs...)
attrs = append(attrs,
dbOperation,
semconv.DBStatementKey.String(query),
Expand Down

0 comments on commit 9f1e0bd

Please sign in to comment.