Skip to main content

PROCESS_EXECUTABLE_BUILD_ID_HTLHASH

Constant PROCESS_EXECUTABLE_BUILD_ID_HTLHASH 

pub const PROCESS_EXECUTABLE_BUILD_ID_HTLHASH: &'static str;
Available on crate features opentelemetry and semconv_experimental only.
Expand description

Deterministic build ID for executables.

§Notes

GNU and Go build IDs may be stripped or unavailable in some environments (e.g., Alpine Linux, Docker images). This attribute provides a deterministic build ID computed by hashing the first and last 4096 bytes of the file along with its length:

Input   ← Concat(File[:4096], File[-4096:], BigEndianUInt64(Len(File)))
Digest  ← SHA256(Input)
BuildID ← Digest[:16]

The result is the first 16 bytes (128 bits) of the SHA256 digest, represented as a hex string.

§Examples

  • "600DCAFE4A110000F2BF38C493F5FB92"