hypertrace / javaagent

Hypertrace OpenTelemetry Java agent with payload/body and headers data capture.
Apache License 2.0
33 stars 15 forks source link

handle .scope postfix when parsing cgroup #263

Closed davexroth closed 3 years ago

davexroth commented 3 years ago

Description

While parsing /proc/self/cgroup to obtain the containerId, it's possible there is a .scope postfix, such as crio-736665661f3cf3ec691b2feeb2a1ec78918c0ef65381160bbb04f4c298169679.scope which breaks our current parser.

Testing

Tested in openshift and gke clusters

Checklist: