mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
fix: add db.normalized_statement default value (#224)
This commit is contained in:
parent
b29332e8fd
commit
dc88a59da6
2 changed files with 8 additions and 0 deletions
6
.changeset/slow-bears-wonder.md
Normal file
6
.changeset/slow-bears-wonder.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@hyperdx/api': patch
|
||||
'@hyperdx/app': patch
|
||||
---
|
||||
|
||||
fix: add db.normalized_statement default value
|
||||
|
|
@ -113,6 +113,8 @@ func main() {
|
|||
dbStatement := log["b"].(map[string]interface{})["db.statement"]
|
||||
dbSystem := log["b"].(map[string]interface{})["db.system"]
|
||||
if dbStatement != nil {
|
||||
// defaults to dbStatement
|
||||
log["b"].(map[string]interface{})["db.normalized_statement"] = dbStatement
|
||||
if dbSystem != nil && slices.Contains(NON_SQL_DB_SYSTEMS, dbSystem.(string)) {
|
||||
fmt.Println("Skipping non-SQL DB system:", dbSystem.(string))
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue