Rate limit data returned from API methods
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 32/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- ruby
- Área
- api, authentication
Línea de trabajo
No se nombran archivos ni pruebas. Empieza revisando los métodos de Authentication and Management API y cómo se gestionan actualmente las respuestas; define el callback opcional de respuesta y de rate limit sin cambiar las llamadas existentes. La tarea estará terminada cuando se puedan recopilar datos de rate limit de cada llamada a la API y el comportamiento original del método siga siendo compatible.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Checklist
- I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- I have looked into the API 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 searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
We're integrating with Auth0 and we would like to gather rate limit data from our calls to the Authentication and Management APIs. We have monitors for when we are rate limited, but we would like to gather metrics on the rate limit data returned from each API call. This would give us clear data points on how close we are to the rate limits as we continue to roll it out to more of our users.
Describe the ideal solution
I've partially implemented this as a proof of concept and I'd be happy to create a pull request for this if you're open to it:
- An optional block can be given to capture the response and rate limit
- The original methods can still be called as is making this a non-breaking change
For example, both of these are valid method calls:
# Original method still works
auth0_client.user_sessions(auth0_id)
# We could use the returned `rate_limit_info` to create Datadog metrics
auth0_client.user_sessions(auth0_id) do |response_body, rate_limit_info|
puts "Response body: #{response_body}"
puts "Rate limit info: #{rate_limit_info}"
end
We're considering monkey patching something like this to gather the rate limit information, but we'd much rather contribute this change if you're open to it!
Alternatives and current workarounds
No response
Additional context
No response
- Lenguaje dominante
- Ruby
- Estrellas
- 205
- Forks
- 146
- Merge medio
- 16 h 2 min
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de auth0/ruby-auth0
-
feature request
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
auth0/ruby-auth0#709 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 50/100
auth0/ruby-auth0#610 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
MFA API Bearer token issuePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
auth0/ruby-auth0#556 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
feature request
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
auth0/ruby-auth0#500 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Move from `rest-client` to `faraday`?Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertofeature request
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
auth0/ruby-auth0#483 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de auth0/ruby-auth0
Issues similares
-
ds-drift
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
we-promise/sure#4120 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
scanaislop/aislop#476 ·
Los mantenedores suelen responder en 1 día
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memoryPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
area/web interface
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
mastodon/mastodon#41000 · 1 reacción ·
Los mantenedores suelen responder en 1 día