Open dbolduc opened 12 months ago
To the opentelemetry-cpp
maintainers:
I intend to do this work. I have a prototype. Of course it will take some effort to make the code not suck.
If offering a GCP resource detector in this repo is not a good idea, please let me know. If the proposal is ok, please assign the issue to me and I will keep working on it.
This would normally goes to contrib repo as the main repo is only for hosting api, sdk and exporters that are in the OpenTelemetry spec. But if there was similar implementation accepted by the other SIGs in their main repo, we will also accept to have it in the main repo.
I looked into where other SIGs keep resource detectors:
It doesn't look like anybody else keeps them in the core repo.
@dbolduc I moved the issue to the contribe repo, please feel free to raise PR here.
Objective
Background
google-cloud-cpp
internalsDetailed Design
Location
I would make new directories:
opentelemetry-cpp/detectors/gcp/...
Dependencies
nlohmann/json
libcurl
opentelemetry::ext::http::HttpClientSync
. I think that forces the dep onlibcurl
, but I am not sure.Interface
Testing
plagiarizescopies those languages' code correctly.