otel-cli
otel-cli copied to clipboard
add symlink-based autotracing
Idea from #339 / @alsuren:
- have otel-cli recognize when it is symlinked and called with a different binary name
- create a directory of symlinks to otel-cli, aliasing commands in use on the system
- add the symlink dir to the front of path
- when otel-cli runs, it recognizes the symlink and searches the rest of the PATH for the real binary
Things to think about:
- what are the security implications? can this be abused?
- does traceparent passing make sense? how? Stick with simple otel-cli exec behavior?