Skip to content

Commit

Permalink
chore: update db attribute names (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
makeavish committed Aug 22, 2024
1 parent 26a2061 commit 90263a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/clickhousetracesexporter/clickhouse_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ func populateOtherDimensions(attributes pcommon.Map, span *Span) {
span.MsgOperation = v.Str()
} else if k == "db.system" {
span.DBSystem = v.Str()
} else if k == "db.name" {
} else if k == "db.name" || k == "db.namespace" {
span.DBName = v.Str()
} else if k == "db.operation" {
} else if k == "db.operation" || k == "db.operation.name" {
span.DBOperation = v.Str()
} else if k == "peer.service" {
span.PeerService = v.Str()
Expand Down

0 comments on commit 90263a7

Please sign in to comment.