Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

telemetry attributes not sent on token exchange request

Aberta
#149 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
java

Direção de pesquisa

Comece em src/main/java/dev/openfga/sdk/api/auth/OAuth2Client.java, por volta da linha 69, e depois acompanhe como HttpRequestAttempt cria os atributos e como exchangeToken() registra o contador. Verifique a solicitação de credenciais com a configuração de telemetria padrão e confirme que os atributos configurados ou padrão chegam à métrica fga-client.credentials.request.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug
Checklist
  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of OpenFGA and the issue still persists.
  • I have searched the Slack community and have not found a suitable solution or answer.
  • I agree to the terms within the OpenFGA Code of Conduct.
Description

When recording the counter for the credentials request, no attributes are sent.

Notice the empty attributes map sent on to record the metric: https://github.com/openfga/java-sdk/blob/main/src/main/java/dev/openfga/sdk/api/auth/OAuth2Client.java#L69

Attributes are created in HttpRequestAttempt, but they are not sent back to exchangeToken() and included in the call to record the counter.

Expectation

Any configured attributes, or the default attributes if not configured, should be sent with the credentials request.

Reproduction

Given the default telemetry configuration
When a credentials exchange request is executed
No attributes are sent with the fga-client.credentials.request counter metric

OpenFGA SDK version

0.8.0

OpenFGA version

any

SDK Configuration

no config

Logs

No response

References

No response

Linguagem predominante
Java
Estrelas
54
Forks
26
Merge médio
2d 10h
PRs com merge (30d)
10

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de openfga/java-sdk

Todas as issues de openfga/java-sdk

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.