Skip to content
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

Collect cloud metadata #823

Merged
merged 2 commits into from Oct 2, 2020
Merged

Collect cloud metadata #823

merged 2 commits into from Oct 2, 2020

Commits on Oct 1, 2020

  1. Fetch cloud metadata

    Based on the Python reference implementation:
    elastic/apm-agent-python#826
    
    By default we attempt to sniff metadata for all cloud
    providers. This can be overridden by setting the
    environment variable ELASTIC_APM_CLOUD_PROVIDER to one
    of "none", "aws", "azure", or "gcp".
    
    We set a short (100ms) socket connect timeout, and a
    slightly longer overall timeout (1s) for fetching the
    cloud metadata.
    
    In tests we disable cloud metadata fetching by default.
    There are currently no functional tests, as that would
    rely on us running in a known cloud environment.
    axw committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    91d8f94 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2020

  1. Add a comment to explain loop

    axw committed Oct 2, 2020
    Configuration menu
    Copy the full SHA
    68930ca View commit details
    Browse the repository at this point in the history