diff --git a/tracer.go b/tracer.go index b9c3b07..516fb22 100644 --- a/tracer.go +++ b/tracer.go @@ -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) sqlOperationUnknown = "UNKNOWN" )