diff --git a/src/OpenTelemetry.Contrib.Instrumentation.Runtime/RuntimeMetrics.cs b/src/OpenTelemetry.Contrib.Instrumentation.Runtime/RuntimeMetrics.cs index 6750ce29fc..c5ea2421c5 100644 --- a/src/OpenTelemetry.Contrib.Instrumentation.Runtime/RuntimeMetrics.cs +++ b/src/OpenTelemetry.Contrib.Instrumentation.Runtime/RuntimeMetrics.cs @@ -81,6 +81,8 @@ public RuntimeMetrics(RuntimeMetricsOptions options) if (options.IsProcessEnabled) { this.meter.CreateObservableCounter("process.cpu.time", this.GetProcessorTimes, "s", "Processor time of this process"); + + // Not yet official: https://github.com/open-telemetry/opentelemetry-specification/pull/2392 this.meter.CreateObservableGauge("process.cpu.count", () => Environment.ProcessorCount, description: "The number of available logical CPUs"); this.meter.CreateObservableGauge("process.memory.usage", () => Process.GetCurrentProcess().WorkingSet64, "By", "The amount of physical memory in use"); this.meter.CreateObservableGauge("process.memory.virtual", () => Process.GetCurrentProcess().VirtualMemorySize64, "By", "The amount of committed virtual memory");