Skip to content

Support zero-code configuration of resource detectors #2434

@ezhang6811

Description

@ezhang6811

The AWS Go SDK currently supports several resource detectors for third party computing environments. It would be useful if customers could enable select detectors in the agent's TracerProvider, via an environment variable, to automatically add environment-specific attributes to the telemetry.

PHP instrumentation has a similar mechanism, see here.

Describe the solution you'd like

When auto-instrumentation is started it determines what resource detector to run based on configuration it is provided (i.e environment variables, configuration file).

To accomplish this, the autodetect package should be used.

Describe alternatives you've considered

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions