Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn when enabling socket_telemetry on unsupported platform
The structs we depend on for collecting socket telemetry (`SOL_TCP` and `TCP_INFO`) don't exist on all platforms. In such cases, these constants won't be defined, and so we should WARN users and not enabled the `socket_telemetry` option. NOTE: On macOS, similar structs do exist: `Socket::IPPROTO_TCP` and `Socket::TCP_CONNECTION_INFO`, respectively, but I couldn't figure out the binary layout of the data, so couldn't unpack it. Maybe someone else knows more about those details and can dig in at some point.
- Loading branch information