-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log automatic retries from SDK #55
Comments
It should be something like this? https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/azidentity/README.md#logging import azlog "github.com/Azure/azure-sdk-for-go/sdk/azcore/log"
azlog.SetEvents(log.EventRetryPolicy)
azlog.SetListener(func(cls azlog.Event, msg string) {
if cls == azlog.EventRetryPolicy {
// suggar logger
logger.Warnln(err)
}
}) |
I'm not sure if the error |
Can you take a look at this, please? It's acting strange. |
Hi,
we guess, we are hitting sometimes rate-limits from Azure. Since the SDK has automatic retries enabled, we are getting sometime the error context deadline exceeded, since the request took longer than the configured scrapeInterval.
Is it possible to log an warning, if a retry appears? Logging the response, which reason we are getting for the 429 would be awesome to identity the root cause.
The text was updated successfully, but these errors were encountered: