The host, os, and process resource detectors (opt-in via OTEL_EXPERIMENTAL_RESOURCE_DETECTORS) will only populate attributes known at comptime once #159 merges. The following attributes require runtime OS calls and are not yet implemented.
Reference: Python SDK detectors
host detector
os detector
process detector
These all require collecting values at provider initialization time rather than comptime, so they need a different code path from the current comptime-only approach in src/sdk/resource.zig.
The
host,os, andprocessresource detectors (opt-in viaOTEL_EXPERIMENTAL_RESOURCE_DETECTORS) will only populate attributes known at comptime once #159 merges. The following attributes require runtime OS calls and are not yet implemented.Reference: Python SDK detectors
hostdetectorhost.name—std.posix.gethostname/GetComputerNameExon Windowsosdetectoros.version— kernel/release version string (uname -r/RtlGetVersionon Windows)processdetectorprocess.pid—std.posix.getpidprocess.parent_pid—std.posix.getppidprocess.executable.name— argv[0] basenameprocess.executable.path— argv[0] directoryprocess.command— argv[0]process.command_line— full command line joinedprocess.command_args— argv as a list (repeated string attribute)process.owner— username of the process ownerThese all require collecting values at provider initialization time rather than comptime, so they need a different code path from the current comptime-only approach in
src/sdk/resource.zig.