Container Resource Attributes Collection for Telemetry Data
For Docker environments, some of the Kfuse APM UI relies on the container_id attribute that attaches to the Resource attributes of the telemetry data received by Kloudfuse. In OpenTelemetry, this attachment is accomplished at the language SDK.
The following list provides the necessary information for you to properly configure your deployment when running on a Docker CGroupv2 environment.
- .Net
-
Has
container_idsupport.
- C++
-
No
container_idsupport.
- Go
-
No
container_idsupport.Pending unmerged OpenTelemetry PR Detect container id on cgroup v2 #3501.
- Java
-
Has
container_idsupport.
- JavaScript and Node.js
-
Has
container_idsupport.Use OpenTelemetry Resource Detector for Container. Pinned to version 0.2.2. Versions 0.3.* does not work; see opentelemetry-resource-detector-container does not detect the container id on 0.3.4/0.3.7.
- Kotlin
-
Has
container_idsupport.Uses same sdk as java.
- PHP
-
Has
container_idsupport.
- Python
-
Has
container_idsupport.Pending publication of resource/opentelemetry-resource-detector-container to pypi. As a workaround, use the following in
requirements.txtfile:opentelemetry-resource-detector-container @ git+https://github.com/open-telemetry/opentelemetry-python-contrib.git@0.43b0hotfix#subdirectory=resource/opentelemetry-resource-detector-containerIf using automatic instrumentation, add the following environment variable:
OTEL_EXPERIMENTAL_RESOURCE_DETECTORS=containeryaml
- Ruby
-
Has
container_idsupport.
- Rust
-
No
container_idsupport.Refer to code and documentation for OpenTelemetry Resource Detectors