Let's talk about how the #OpenTelemetry Injector modifies the process environment to activate automatic instrumentations. 🧵
Let's talk about how the #OpenTelemetry Injector modifies the process environment to activate automatic instrumentations. 🧵
0 views
Published on 13/11/2026 09:20
0:25
Let's talk about how the #OpenTelemetry Injector modifies the process environment to activate automatic instrumentations. 🧵
1 comment
?
The Injector is added to your applications by the dynamic linker via `LD_PRELOAD`, as yesterday's thread covered, and it sets the environment variables that activate automatic instrumentations. *How* to set those environment variables took a while to get right.
Safety comes first: the Injector must never prevent a process from starting, let alone crash it. `LD_PRELOAD` is system-wide, so "a process" also means, for example, `grep`, system daemons and shell scripts. Safety constraints rule out the obvious implementations: