Skip to content

Commit

Permalink
feat: add client id into tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Oct 22, 2024
1 parent 376b120 commit 4dc0bd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/api/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ func (a API) Authv2(c *fiber.Ctx) error {

auth := a.Authenticator(vendor)

span.SetAttributes(attribute.String("authenticator", auth.GetCompany()))
span.SetAttributes(
attribute.String("authenticator", auth.GetCompany()),
attribute.String("cliend-id", request.ClientID),
)

if err := auth.Auth(ctx, token); err != nil {
span.RecordError(err)
Expand Down

0 comments on commit 4dc0bd5

Please sign in to comment.