-
Notifications
You must be signed in to change notification settings - Fork 63
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
Point upstream @opentelemetry/resource-detector-gcp at the resource detector in this repo #518
Comments
triaged and assigned to myself |
@aabmass Was looking at resource for a NodeJS app and found these two big differences between upstream and this package
The latter is particularly important because the resource transformation logic in this repo relies heavily on CLOUD_PLATFORM being set correctly. So for now, I am using both packages but presumably the CLOUD_PLATFORM logic needs to be upstreamed and then this repo's package could be deprecated |
Yes, the plan is to replace the implementation of
@dashpole should we be detecting this from hostname like the upstream detector does, since open-telemetry/oteps#195 fell through the cracks? |
Personally, I don't think k8s_pod_name detection belongs in a GCP detector, as it isn't GCP-specific. That being said, its fine if it stays in the GCP detector if there isn't an alternative k8s detector that detects it. |
I agree it would be nice to push these into generic k8s resource detectors |
BTW, I noticed this in Go https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/detectors/gcp/gke.go#L31 If the generally accepted approach is to populate k8s information in the manifest through |
There is an existing upstream resource detector for GCP: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/detectors/node/opentelemetry-resource-detector-gcp
@opentelemetry/resource-detector-gcp
@opentelemetry/resource-detector-gcp
should eitherThe text was updated successfully, but these errors were encountered: