Skip to content

Commit

Permalink
maintenance/tracing: Start Span in middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
monstermunchkin committed Nov 28, 2024
1 parent 603c5ba commit 1f13e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintenance/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type traceLogHandler struct {

// Trace the service function handler execution
func (h *traceLogHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
span := sentry.TransactionFromContext(r.Context())
span := sentry.StartSpan(r.Context(), "middleware", sentry.WithDescription("traceLogHandler"))
defer span.Finish()

ctx := span.Context()
Expand Down

0 comments on commit 1f13e09

Please sign in to comment.