newrelic-ruby-agent icon indicating copy to clipboard operation
newrelic-ruby-agent copied to clipboard

Optimisation: agent start-up time for cloud environment detection could be improved

Open fallwith opened this issue 1 year ago • 1 comments

The agent performs 3 linear checks - each with a 1 second timeout - to test for the contexts of AWS, GCP, and Azure. For agent instances outside of those contexts, start-up time could be waiting for 3 seconds.

We should investigate how to optimise this start-up delay.

Perhaps:

  • We could multithread the 3 checks
  • We could better enable customer control, through config and/or docs, over specifying their cloud environment to skip the others

fallwith avatar Sep 10 '24 18:09 fallwith

https://new-relic.atlassian.net/browse/NR-311683