GoogleCloudPlatform / opentelemetry-operations-java

Apache License 2.0
71 stars 38 forks source link

Add new module for resource-detector support library #276

Closed psx95 closed 8 months ago

psx95 commented 9 months ago

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 -

  1. The support library would not contain any Google-specific dependency (e.g. a dependency on any GCP SDK).
  2. The support library would not contain any OpenTelemetry specific dependency.
  3. The mapper library could potentially go upstream in #266 and would take a dependency on the support-library.

Supports #266