Separates out resource detection module into a support-library (detector-resources-support) and a mapper (detector-resources).
The mapper uses the support-library to map OTel specific resources to GCP specific resources. The support-library contains logic to detect the GCP specific resources and provided appropriate attributes for the detected resource.
The logic split has been done keeping the following in mind -
The support library would not contain any Google-specific dependency (e.g. a dependency on any GCP SDK).
The support library would not contain any OpenTelemetry specific dependency.
The mapper library could potentially go upstream in #266 and would take a dependency on the support-library.
Separates out resource detection module into a support-library (detector-resources-support) and a mapper (detector-resources).
The mapper uses the support-library to map OTel specific resources to GCP specific resources. The support-library contains logic to detect the GCP specific resources and provided appropriate attributes for the detected resource.
The logic split has been done keeping the following in mind -
Supports #266