grafana / beyla

eBPF-based autoinstrumentation of web applications and network metrics
https://grafana.com/oss/beyla-ebpf/
Apache License 2.0
1.34k stars 94 forks source link

Support short-lived processes #388

Open mariomac opened 10 months ago

mariomac commented 10 months ago

Currently, Beyla polls for the running processes and instrument those matching the selection criteria, and keeps polling periodically. That would involve that short-lived executables running every polling intervals would be ignored. Beyla process finder should subscribe to some eBPF events (new executable, new TCP connection...) and immediately instrument them. I emphasize the "new TCP connection..." event, because a newly created executable could not match the OPEN_PORT criteria until it internally starts the service connections.

grcevski commented 7 months ago

This issue request is very useful here too, so that we can correctly propagate context for short lived processes https://github.com/grafana/beyla/issues/602

grcevski commented 7 months ago

Related discussion for supporting TRACEPARENT env variables: https://github.com/open-telemetry/opentelemetry-specification/issues/740