Otel Container Resource Attribute Collection :: Kloudfuse Docs
Otel Container Resource Attribute Collection
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.
Programming Languages Support
.Net
- Has
container_idsupport.
- Has
C++
- No
container_idsupport.
- No
Go
- No
container_idsupport. - Pending unmerged OpenTelemetry PR Detect container id on cgroup v2 #3501.
- No
Java
- Has
container_idsupport.
- Has
JavaScript and Node.js
- Has
container_idsupport. - Use OpenTelemetry Resource Detector for Container. Pinned to version 0.2.2. Versions 0.3.* do not work; see opentelemetry-resource-detector-container does not detect the container id on 0.3.4/0.3.7.
- Has
Kotlin
- Has
container_idsupport. - Uses same sdk as java.
- Has
PHP
- Has
container_idsupport.
- Has
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-container
Ruby
- Has
container_idsupport. - Use OpenTelemetry::Resource::Detector::Container.
- Has
Rust
- No
container_idsupport. - Refer to code and documentation for OpenTelemetry Resource Detectors
- No
Additional Configuration
If using automatic instrumentation, add the following environment variable:
OTEL_EXPERIMENTAL_RESOURCE_DETECTORS=container