DataDog / saluki

An experimental toolkit for building telemetry data planes in Rust.
Apache License 2.0
12 stars 2 forks source link

fix: try scoping cgroups v2 collector to only build on linux #212

Closed tobz closed 3 weeks ago

tobz commented 3 weeks ago

Context

In #208, we added a bunch of code that is only relevant on Linux platforms. Some of that code was properly gated to only be used on Linux, but the areas where we initially imported the code/dependencies was not gated. This led to compilation issues on non-Linux platforms, like macOS.

Solution

This PR simply gates the relevant code and dependencies to only be included on Linux.