Open mariomac opened 1 year 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
Related discussion for supporting TRACEPARENT env variables: https://github.com/open-telemetry/opentelemetry-specification/issues/740
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.