chore: only trace rbac.Filter (#4177)

This commit is contained in:
Colin Adler
2022-09-23 15:21:56 -05:00
committed by GitHub
parent 95aea104c7
commit 15b9a59786
2 changed files with 0 additions and 12 deletions
-3
View File
@@ -28,9 +28,6 @@ type PartialAuthorizer struct {
var _ PreparedAuthorized = (*PartialAuthorizer)(nil)
func (pa *PartialAuthorizer) Authorize(ctx context.Context, object Object) error {
ctx, span := tracing.StartSpan(ctx)
defer span.End()
if pa.alwaysTrue {
return nil
}