Use LD_PRELOAD to inject OpenTelemetry into everything
Source: Dev.to
Demonstration of the OpenTelemetry Injector
In this video I demonstrate the new OpenTelemetry injector.
It’s a mechanism to automatically inject OTEL into your code with zero code or startup script changes. This can be a great way to gain observability of non‑Kubernetes workloads like VMs. The injector leverages LD_PRELOAD; you add the LD_PRELOAD instruction to your VM at startup and the rest happens automatically.
Note: Do heed the warnings towards the end of the video, as the tool is still in early development.