Draft: feat login
This commit is contained in:
@@ -10,7 +10,9 @@ import (
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
)
|
||||
|
||||
func BunrouterOtel(next bunrouter.HandlerFunc) bunrouter.HandlerFunc {
|
||||
func (self *Handlers) BunrouterOtel(
|
||||
next bunrouter.HandlerFunc,
|
||||
) bunrouter.HandlerFunc {
|
||||
return func(w http.ResponseWriter, req bunrouter.Request) error {
|
||||
span := trace.SpanFromContext(req.Context())
|
||||
if !span.IsRecording() {
|
||||
|
||||
Reference in New Issue
Block a user