-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
logging: too slow Logger on non GCE environment #10420
Comments
can't we skip |
@ukai I'm interested in what's taking |
I think so, as it shows in trace. |
Yeah, if you're running this on a non GCP environment the retries from querying the metadata server for automatic resource detection will make |
I have the same issue trying to use GCS with the library locally on my Mac. I had to do this to get the non-GCE code (specifically this test: https://github.com/googleapis/google-cloud-go/blob/compute/metadata/v0.3.0/compute/metadata/metadata.go#L123-L189) to not take forever:
Before:
After:
(Caveat: the blocking trace actually points to the Our tests re-instantiate the client for every test case (because we're using record/replay) so even a 5 second timeout is painful. We keep the default credentials call enabled because we use GOOGLE_APPLICATION_CREDENTIALS when recording. |
Client
logging
Environment
desktop machine
Go Environment
Code
https://chromium.googlesource.com/infra/infra/+/refs/heads/main/go/src/infra/build/siso/o11y/clog/clog.go#54
Expected behavior
Logger finishes soon.
Actual behavior
Logger takes 7.31s
Screenshots
Additional context
e.g. Started after upgrading to v0.50.0.
The text was updated successfully, but these errors were encountered: