From a5130f5c0b299d1d7212c7d9b4c43c71c7cecbf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Wed, 27 Nov 2024 16:59:27 +0200 Subject: [PATCH] chore(oidc): add span to token lifetime query --- internal/command/oidc_session.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/command/oidc_session.go b/internal/command/oidc_session.go index bea17986ea..19fa035119 100644 --- a/internal/command/oidc_session.go +++ b/internal/command/oidc_session.go @@ -543,6 +543,9 @@ func (c *OIDCSessionEvents) PushEvents(ctx context.Context) (*OIDCSession, error } func (c *Commands) tokenTokenLifetimes(ctx context.Context) (accessTokenLifetime time.Duration, refreshTokenLifetime time.Duration, refreshTokenIdleLifetime time.Duration, err error) { + ctx, span := tracing.NewSpan(ctx) + defer func() { span.EndWithError(err) }() + oidcSettings := NewInstanceOIDCSettingsWriteModel(ctx) err = c.eventstore.FilterToQueryReducer(ctx, oidcSettings) if err != nil {