-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathattribute.go
More file actions
29 lines (25 loc) · 642 Bytes
/
Copy pathattribute.go
File metadata and controls
29 lines (25 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package otelsql
import (
"go.opentelemetry.io/otel/attribute"
)
const (
// Type: string.
// Required: No.
dbInstance = attribute.Key("db.instance")
// Type: string.
// Required: No.
dbSQLStatus = attribute.Key("db.sql.status")
// Type: string.
// Required: No.
dbSQLError = attribute.Key("db.sql.error")
// Type: int64.
// Required: No.
dbSQLRowsNextSuccessCount = attribute.Key("db.sql.rows_next.success_count")
// Type: string.
// Required: No.
dbSQLRowsNextLatencyAvg = attribute.Key("db.sql.rows_next.latency_avg")
)
var (
dbSQLStatusOK = dbSQLStatus.String("OK")
dbSQLStatusERROR = dbSQLStatus.String("ERROR")
)