Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ import (
"go.opentelemetry.io/otel/trace"
)

type contextKey int8

const (
tracerName = "github.com/exaring/otelpgx"
meterName = "github.com/exaring/otelpgx"
startTimeCtxKey = "otelpgxStartTime"
startTimeCtxKey = contextKey(0)
Comment on lines +24 to +29
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion! That makes sense!
However: since we're touching this, it would probably make sense to replace it with a struct{}, so that it uses no memory?

sqlOperationUnknown = "UNKNOWN"
)

Expand Down