Skip to content

Commit 4196948

Browse files
authored
Introduce new tag for actor type (#7197)
1 parent dedaaf5 commit 4196948

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

common/log/tag/tags.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,11 @@ func RequestCaller(callerName string) Tag {
567567
return newStringTag("request-caller", callerName)
568568
}
569569

570+
// ActorType returns type of the actor (service or user) making this request
571+
func ActorType(actorType string) Tag {
572+
return newStringTag("actor-type", actorType)
573+
}
574+
570575
// ActorID returns tag for the actor ID
571576
func ActorID(actorID string) Tag {
572577
return newStringTag("actor-id", actorID)

0 commit comments

Comments
 (0)