elastic / otel-profiling-agent

The production-scale datacenter profiler (C/C++, Go, Rust, Python, Java, NodeJS, .NET, PHP, Ruby, Perl, ...)
Apache License 2.0
2.09k stars 229 forks source link

Add build and version info #41

Closed athre0z closed 1 week ago

athre0z commented 1 week ago

This PR adds code to plumb agent version, revision and build times through the Makefile and initializes the previously default-initialized Config fields with proper values. It effectively mirrors what we are also doing in the Elastic distribution of the agent.