@@ -37,6 +37,35 @@ const (
3737
3838// Start initializes reporting of runtime metrics using the supplied config.
3939// For goroutine scheduling metrics, additionally see [NewProducer].
40+ //
41+ // Metrics emitted by Start includes:
42+ //
43+ // go.memory.used By Memory used by the Go runtime.
44+ // go.memory.limit By Go runtime memory limit configured by the user, if a limit exists.
45+ // go.memory.allocated By Memory allocated to the heap by the application.
46+ // go.memory.allocations {allocation} Count of allocations to the heap by the application.
47+ // go.memory.gc.goal By Heap size target for the end of the GC cycle.
48+ // go.goroutine.count {goroutine} Count of live goroutines.
49+ // go.processor.limit {thread} The number of OS threads that can execute user-level Go code simultaneously.
50+ // go.config.gogc % Heap size target percentage configured by the user, otherwise 100.
51+ //
52+ // When the OTEL_GO_X_DEPRECATED_RUNTIME_METRICS environment variable is set to
53+ // true, the following deprecated metrics are produced:
54+ //
55+ // runtime.go.cgo.calls - Number of cgo calls made by the current process
56+ // runtime.go.gc.count - Number of completed garbage collection cycles
57+ // runtime.go.gc.pause_ns (ns) Amount of nanoseconds in GC stop-the-world pauses
58+ // runtime.go.gc.pause_total_ns (ns) Cumulative nanoseconds in GC stop-the-world pauses since the program started
59+ // runtime.go.goroutines - Number of goroutines that currently exist
60+ // runtime.go.lookups - Number of pointer lookups performed by the runtime
61+ // runtime.go.mem.heap_alloc (bytes) Bytes of allocated heap objects
62+ // runtime.go.mem.heap_idle (bytes) Bytes in idle (unused) spans
63+ // runtime.go.mem.heap_inuse (bytes) Bytes in in-use spans
64+ // runtime.go.mem.heap_objects - Number of allocated heap objects
65+ // runtime.go.mem.heap_released (bytes) Bytes of idle spans whose physical memory has been returned to the OS
66+ // runtime.go.mem.heap_sys (bytes) Bytes of heap memory obtained from the OS
67+ // runtime.go.mem.live_objects - Number of live objects is the number of cumulative Mallocs - Frees
68+ // runtime.uptime (ms) Milliseconds since application was initialized
4069func Start (opts ... Option ) error {
4170 c := newConfig (opts ... )
4271 meter := c .MeterProvider .Meter (
0 commit comments