skip to content
Alvin Lucillo

Memstats in span

/ 1 min read

💻 Tech

You can attach custom data to an APM span like those from runtime.MemStats

	var m runtime.MemStats
	runtime.ReadMemStats(&m)

	span.Context.SetLabel("alloc", m.Alloc)

It will appear under numeric_labels.