Added OpenTelemetry and use structured logging
This commit is contained in:
@@ -2,9 +2,10 @@ package middleware
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
|
||||
)
|
||||
|
||||
func WithTelemetry(next http.Handler) http.Handler {
|
||||
//return otelhttp.NewHandler(next, "dttmr-api")
|
||||
return next
|
||||
return otelhttp.NewHandler(next, "dttmr-api")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user