From 10b16bc36a3a95e50fb7d45935afcdad9fc1ea2a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 13 Dec 2021 16:12:14 +0100 Subject: [PATCH] outposts: add description to span Signed-off-by: Jens Langhammer --- internal/outpost/ak/http_tracing.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/outpost/ak/http_tracing.go b/internal/outpost/ak/http_tracing.go index 4f267d403e..16b30c10e1 100644 --- a/internal/outpost/ak/http_tracing.go +++ b/internal/outpost/ak/http_tracing.go @@ -2,6 +2,7 @@ package ak import ( "context" + "fmt" "net/http" "github.com/getsentry/sentry-go" @@ -19,6 +20,7 @@ func NewTracingTransport(ctx context.Context, inner http.RoundTripper) *tracingT func (tt *tracingTransport) RoundTrip(r *http.Request) (*http.Response, error) { span := sentry.StartSpan(tt.ctx, "authentik.go.http_request") + span.Description = fmt.Sprintf("%s %s", r.Method, r.URL.String()) span.SetTag("url", r.URL.String()) span.SetTag("method", r.Method) defer span.Finish()