telemetry attributes not sent on token exchange request
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
- Domínio
- authentication, observability
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
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
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de openfga/java-sdk
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
openfga/java-sdk#370 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
openfga/java-sdk#361 · 1 reação ·
Mantenedores costumam responder em até 1 dia
Todas as issues de openfga/java-sdk
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
apache/arrow-java#1311 ·
Mantenedores costumam responder em até 2 dias
-
bug triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
security
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
IBM/networking-java-sdk#204 ·