move tracer to client,
add tracing in rs, client
This commit is contained in:
parent
0fe7c3307f
commit
1b94f796eb
8 changed files with 59 additions and 37 deletions
|
@ -101,6 +101,9 @@ func ExchangeToken(
|
|||
Scopes []string,
|
||||
RequestedTokenType oidc.TokenType,
|
||||
) (*oidc.TokenExchangeResponse, error) {
|
||||
ctx, span := client.Tracer.Start(ctx, "ExchangeToken")
|
||||
defer span.End()
|
||||
|
||||
if SubjectToken == "" {
|
||||
return nil, errors.New("empty subject_token")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue