Skip to content

Commit

Permalink
docs(resource-detector-container): update readme for container resour…
Browse files Browse the repository at this point in the history
…ce detector (#2061)

Refs: #2055
Signed-off-by: maryliag <marylia.gutierrez@grafana.com>
  • Loading branch information
maryliag authored Apr 9, 2024
1 parent 6bd62a2 commit 10c0c93
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ const tracerProvider = new NodeTracerProvider({ resource });

## Available detectors

- `containerDetector`: Populates `container.id` for processes running on containers supporting : docker( cgroup v1 or v2 ) or with containerd
This package uses `@opentelemetry/semantic-conventions` version `1.22+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md)

### ContainerDetector

Populates `container.id` for processes running on containers supporting : docker( cgroup v1 or v2 ) or with containerd

| Resource Attribute | Description |
|--------------------|------------------------------------------------------------------------------------------------------------------------------------------|
| `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)|

## Useful links

Expand Down

0 comments on commit 10c0c93

Please sign in to comment.