From 5b185409108f9a4a1ed91fc19948fb1bd24d132b Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Mon, 2 Dec 2024 12:35:19 +1000 Subject: [PATCH] fix: linting --- pkg/server/service/event-ingester/auth/groups.go | 4 ++-- pkg/server/service/event-ingester/auth/user.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/server/service/event-ingester/auth/groups.go b/pkg/server/service/event-ingester/auth/groups.go index aac3c0e0..a25bbb87 100644 --- a/pkg/server/service/event-ingester/auth/groups.go +++ b/pkg/server/service/event-ingester/auth/groups.go @@ -171,7 +171,7 @@ func (g *Group) ApplyFilter(ctx context.Context, events []*xatu.DecoratedEvent) return events, nil } - ctx, span := observability.Tracer().Start(ctx, + _, span := observability.Tracer().Start(ctx, "Auth/Group.ApplyFilter", trace.WithAttributes(attribute.Int64("events", int64(len(events)))), ) @@ -196,7 +196,7 @@ func (g *Group) ApplyFilter(ctx context.Context, events []*xatu.DecoratedEvent) } func (g *Group) ApplyRedacter(ctx context.Context, events []*xatu.DecoratedEvent) ([]*xatu.DecoratedEvent, error) { - ctx, span := observability.Tracer().Start(ctx, + _, span := observability.Tracer().Start(ctx, "Auth/Group.ApplyRedacter", trace.WithAttributes(attribute.Int64("events", int64(len(events)))), ) diff --git a/pkg/server/service/event-ingester/auth/user.go b/pkg/server/service/event-ingester/auth/user.go index 21b55db6..08871ebe 100644 --- a/pkg/server/service/event-ingester/auth/user.go +++ b/pkg/server/service/event-ingester/auth/user.go @@ -93,7 +93,7 @@ func (u *User) ApplyFilter(ctx context.Context, events []*xatu.DecoratedEvent) ( return events, nil } - ctx, span := observability.Tracer().Start(ctx, + _, span := observability.Tracer().Start(ctx, "User.ApplyFilter", trace.WithAttributes(attribute.Int64("events", int64(len(events)))), )