Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

telemetry attributes not sent on token exchange request

Aperta
#149 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java

Direzione di ricerca

Inizia in src/main/java/dev/openfga/sdk/api/auth/OAuth2Client.java intorno alla riga 69, quindi segui il modo in cui HttpRequestAttempt crea gli attributi e in cui exchangeToken() registra il contatore. Verifica la richiesta delle credenziali con la configurazione di telemetria predefinita e conferma che gli attributi configurati o predefiniti arrivino alla metrica fga-client.credentials.request.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Java
Stelle
54
Fork
26
Merge medio
2g 10h
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openfga/java-sdk

Tutte le issue di openfga/java-sdk

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.