You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem?
Detecting the id of the container that holds the service instrumented with otel allows end-users to correlate container issues with service issues.
Describe the solution you'd like
A resource detector that can be added to the SDK and then does the reading of container.id for me automatically.
Describe alternatives you've considered
Injecting the container id via an environment variable is always possible.
Is your feature request related to a problem?
Detecting the id of the container that holds the service instrumented with otel allows end-users to correlate container issues with service issues.
Describe the solution you'd like
A resource detector that can be added to the SDK and then does the reading of container.id for me automatically.
Describe alternatives you've considered
Injecting the container id via an environment variable is always possible.
Additional context
This will help with the documentation issue open-telemetry/opentelemetry.io#1818.
Similar implementations exist for JS, Java, .NET. The javascript one is the most advanced and provides all the pieces needed to extract container.id:
https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/detectors/node/opentelemetry-resource-detector-container/src/detectors/ContainerDetector.ts
(Maybe this belongs into opentelemetry-cpp-contrib, so please move)
The text was updated successfully, but these errors were encountered: