@@ -81,7 +81,7 @@ func (s *ApiServer) CreateGroup(ctx context.Context, in *api.CreateGroupRequest)
81
81
82
82
// Extract request information and execute the hook.
83
83
clientIP , clientPort := extractClientAddress (s .logger , ctx )
84
- fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , group )
84
+ fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , group , in )
85
85
86
86
// Stats measurement end boundary.
87
87
span .End ()
@@ -164,7 +164,7 @@ func (s *ApiServer) UpdateGroup(ctx context.Context, in *api.UpdateGroupRequest)
164
164
165
165
// Extract request information and execute the hook.
166
166
clientIP , clientPort := extractClientAddress (s .logger , ctx )
167
- fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , & empty. Empty {} )
167
+ fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , in )
168
168
169
169
// Stats measurement end boundary.
170
170
span .End ()
@@ -231,7 +231,7 @@ func (s *ApiServer) DeleteGroup(ctx context.Context, in *api.DeleteGroupRequest)
231
231
232
232
// Extract request information and execute the hook.
233
233
clientIP , clientPort := extractClientAddress (s .logger , ctx )
234
- fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , & empty. Empty {} )
234
+ fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , in )
235
235
236
236
// Stats measurement end boundary.
237
237
span .End ()
@@ -300,7 +300,7 @@ func (s *ApiServer) JoinGroup(ctx context.Context, in *api.JoinGroupRequest) (*e
300
300
301
301
// Extract request information and execute the hook.
302
302
clientIP , clientPort := extractClientAddress (s .logger , ctx )
303
- fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , & empty. Empty {} )
303
+ fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , in )
304
304
305
305
// Stats measurement end boundary.
306
306
span .End ()
@@ -367,7 +367,7 @@ func (s *ApiServer) LeaveGroup(ctx context.Context, in *api.LeaveGroupRequest) (
367
367
368
368
// Extract request information and execute the hook.
369
369
clientIP , clientPort := extractClientAddress (s .logger , ctx )
370
- fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , & empty. Empty {} )
370
+ fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , in )
371
371
372
372
// Stats measurement end boundary.
373
373
span .End ()
@@ -449,7 +449,7 @@ func (s *ApiServer) AddGroupUsers(ctx context.Context, in *api.AddGroupUsersRequ
449
449
450
450
// Extract request information and execute the hook.
451
451
clientIP , clientPort := extractClientAddress (s .logger , ctx )
452
- fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , & empty. Empty {} )
452
+ fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , in )
453
453
454
454
// Stats measurement end boundary.
455
455
span .End ()
@@ -528,7 +528,7 @@ func (s *ApiServer) KickGroupUsers(ctx context.Context, in *api.KickGroupUsersRe
528
528
529
529
// Extract request information and execute the hook.
530
530
clientIP , clientPort := extractClientAddress (s .logger , ctx )
531
- fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , & empty. Empty {} )
531
+ fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , in )
532
532
533
533
// Stats measurement end boundary.
534
534
span .End ()
@@ -608,7 +608,7 @@ func (s *ApiServer) PromoteGroupUsers(ctx context.Context, in *api.PromoteGroupU
608
608
609
609
// Extract request information and execute the hook.
610
610
clientIP , clientPort := extractClientAddress (s .logger , ctx )
611
- fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , & empty. Empty {} )
611
+ fn (s .logger , userID .String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , in )
612
612
613
613
// Stats measurement end boundary.
614
614
span .End ()
@@ -670,7 +670,7 @@ func (s *ApiServer) ListGroupUsers(ctx context.Context, in *api.ListGroupUsersRe
670
670
671
671
// Extract request information and execute the hook.
672
672
clientIP , clientPort := extractClientAddress (s .logger , ctx )
673
- fn (s .logger , ctx .Value (ctxUserIDKey {}).(uuid.UUID ).String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , groupUsers )
673
+ fn (s .logger , ctx .Value (ctxUserIDKey {}).(uuid.UUID ).String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , groupUsers , in )
674
674
675
675
// Stats measurement end boundary.
676
676
span .End ()
@@ -732,7 +732,7 @@ func (s *ApiServer) ListUserGroups(ctx context.Context, in *api.ListUserGroupsRe
732
732
733
733
// Extract request information and execute the hook.
734
734
clientIP , clientPort := extractClientAddress (s .logger , ctx )
735
- fn (s .logger , ctx .Value (ctxUserIDKey {}).(uuid.UUID ).String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , userGroups )
735
+ fn (s .logger , ctx .Value (ctxUserIDKey {}).(uuid.UUID ).String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , userGroups , in )
736
736
737
737
// Stats measurement end boundary.
738
738
span .End ()
@@ -793,7 +793,7 @@ func (s *ApiServer) ListGroups(ctx context.Context, in *api.ListGroupsRequest) (
793
793
794
794
// Extract request information and execute the hook.
795
795
clientIP , clientPort := extractClientAddress (s .logger , ctx )
796
- fn (s .logger , ctx .Value (ctxUserIDKey {}).(uuid.UUID ).String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , groups )
796
+ fn (s .logger , ctx .Value (ctxUserIDKey {}).(uuid.UUID ).String (), ctx .Value (ctxUsernameKey {}).(string ), ctx .Value (ctxExpiryKey {}).(int64 ), clientIP , clientPort , groups , in )
797
797
798
798
// Stats measurement end boundary.
799
799
span .End ()
0 commit comments