mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:37:32 +00:00
chore: correct tracing of trigger function (#6825)
* chore: correct tracing of trigger function * refactor: remove import
This commit is contained in:
@@ -704,8 +704,10 @@ func (q *Queries) IDPTemplateByID(ctx context.Context, shouldTriggerBulk bool, i
|
||||
defer func() { span.EndWithError(err) }()
|
||||
|
||||
if shouldTriggerBulk {
|
||||
_, traceSpan := tracing.NewNamedSpan(ctx, "TriggerIDPTemplateProjection")
|
||||
ctx, err = projection.IDPTemplateProjection.Trigger(ctx, handler.WithAwaitRunning())
|
||||
logging.OnError(err).Debug("unable to trigger")
|
||||
traceSpan.EndWithError(err)
|
||||
}
|
||||
|
||||
eq := sq.Eq{
|
||||
|
Reference in New Issue
Block a user