Skip to content

Commit e2c0a71

Browse files
committed
chore: update readme for container resource detector
Update README of Container Resource Detector to clarify the source of the data. Part Of #2055 Signed-off-by: maryliag <[email protected]>
1 parent 85cbc8d commit e2c0a71

File tree

1 file changed

+7
-1
lines changed
  • detectors/node/opentelemetry-resource-detector-container

1 file changed

+7
-1
lines changed

detectors/node/opentelemetry-resource-detector-container/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ const tracerProvider = new NodeTracerProvider({ resource });
2828

2929
## Available detectors
3030

31-
- `containerDetector`: Populates `container.id` for processes running on containers supporting : docker( cgroup v1 or v2 ) or with containerd
31+
### ContainerDetector
32+
33+
Populates `container.id` for processes running on containers supporting : docker( cgroup v1 or v2 ) or with containerd
34+
35+
| Resource Attribute | Description |
36+
|---------------------|-----------------------------------------------------------------|
37+
| container.id | Value parsed from file `/proc/self/cgroup` (cgroup v1). If it doesn't exist, parse the value from file `/proc/self/mountinfo` (cgroup v2)|
3238

3339
## Useful links
3440

0 commit comments

Comments
 (0)