Module: OpenTelemetry::SemConv::Incubating::DOTNET

Defined in:
lib/opentelemetry/semconv/incubating/dotnet/metrics.rb,
lib/opentelemetry/semconv/incubating/dotnet/attributes.rb

Metrics Names collapse

DOTNET_ASSEMBLY_COUNT =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_ASSEMBLY_COUNT.

Note:

Stability Level: stable

The number of .NET assemblies that are currently loaded.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling AppDomain.CurrentDomain.GetAssemblies().Length.

'dotnet.assembly.count'
DOTNET_EXCEPTIONS =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_EXCEPTIONS.

Note:

Stability Level: stable

The number of exceptions that have been thrown in managed code.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as counting calls to AppDomain.CurrentDomain.FirstChanceException.

'dotnet.exceptions'
DOTNET_GC_COLLECTIONS =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_GC_COLLECTIONS.

Note:

Stability Level: stable

The number of garbage collections that have occurred since the process has started.

Meter name: System.Runtime; Added in: .NET 9.0. This metric uses the GC.CollectionCount(int generation) API to calculate exclusive collections per generation.

'dotnet.gc.collections'
DOTNET_GC_HEAP_TOTAL_ALLOCATED =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_GC_HEAP_TOTAL_ALLOCATED.

Note:

Stability Level: stable

The approximate number of bytes allocated on the managed GC heap since the process has started. The returned value does not include any native allocations.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling GC.GetTotalAllocatedBytes().

'dotnet.gc.heap.total_allocated'
DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE.

Note:

Stability Level: stable

The heap fragmentation, as observed during the latest garbage collection.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling GC.GetGCMemoryInfo().GenerationInfo.FragmentationAfterBytes.

'dotnet.gc.last_collection.heap.fragmentation.size'
DOTNET_GC_LAST_COLLECTION_HEAP_SIZE =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_GC_LAST_COLLECTION_HEAP_SIZE.

Note:

Stability Level: stable

The managed GC heap size (including fragmentation), as observed during the latest garbage collection.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling GC.GetGCMemoryInfo().GenerationInfo.SizeAfterBytes.

'dotnet.gc.last_collection.heap.size'
DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE.

Note:

Stability Level: stable

The amount of committed virtual memory in use by the .NET GC, as observed during the latest garbage collection.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling GC.GetGCMemoryInfo().TotalCommittedBytes. Committed virtual memory may be larger than the heap size because it includes both memory for storing existing objects (the heap size) and some extra memory that is ready to handle newly allocated objects in the future.

'dotnet.gc.last_collection.memory.committed_size'
DOTNET_GC_PAUSE_TIME =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_GC_PAUSE_TIME.

Note:

Stability Level: stable

The total amount of time paused in GC since the process has started.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling GC.GetTotalPauseDuration().

'dotnet.gc.pause.time'
DOTNET_JIT_COMPILATION_TIME =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_JIT_COMPILATION_TIME.

Note:

Stability Level: stable

The amount of time the JIT compiler has spent compiling methods since the process has started.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling JitInfo.GetCompilationTime().

'dotnet.jit.compilation.time'
DOTNET_JIT_COMPILED_IL_SIZE =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_JIT_COMPILED_IL_SIZE.

Note:

Stability Level: stable

Count of bytes of intermediate language that have been compiled since the process has started.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling JitInfo.GetCompiledILBytes().

'dotnet.jit.compiled_il.size'
DOTNET_JIT_COMPILED_METHODS =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_JIT_COMPILED_METHODS.

Note:

Stability Level: stable

The number of times the JIT compiler (re)compiled methods since the process has started.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling JitInfo.GetCompiledMethodCount().

'dotnet.jit.compiled_methods'
DOTNET_MONITOR_LOCK_CONTENTIONS =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_MONITOR_LOCK_CONTENTIONS.

Note:

Stability Level: stable

The number of times there was contention when trying to acquire a monitor lock since the process has started.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling Monitor.LockContentionCount.

'dotnet.monitor.lock_contentions'
DOTNET_PROCESS_CPU_COUNT =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_PROCESS_CPU_COUNT.

Note:

Stability Level: stable

The number of processors available to the process.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as accessing Environment.ProcessorCount.

'dotnet.process.cpu.count'
DOTNET_PROCESS_CPU_TIME =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_PROCESS_CPU_TIME.

Note:

Stability Level: stable

CPU time used by the process.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as accessing the corresponding processor time properties on System.Diagnostics.Process.

'dotnet.process.cpu.time'
DOTNET_PROCESS_MEMORY_WORKING_SET =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_PROCESS_MEMORY_WORKING_SET.

Note:

Stability Level: stable

The number of bytes of physical memory mapped to the process context.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling Environment.WorkingSet.

'dotnet.process.memory.working_set'
DOTNET_THREAD_POOL_QUEUE_LENGTH =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_THREAD_POOL_QUEUE_LENGTH.

Note:

Stability Level: stable

The number of work items that are currently queued to be processed by the thread pool.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling ThreadPool.PendingWorkItemCount.

'dotnet.thread_pool.queue.length'
DOTNET_THREAD_POOL_THREAD_COUNT =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_THREAD_POOL_THREAD_COUNT.

Note:

Stability Level: stable

The number of thread pool threads that currently exist.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling ThreadPool.ThreadCount.

'dotnet.thread_pool.thread.count'
DOTNET_THREAD_POOL_WORK_ITEM_COUNT =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_THREAD_POOL_WORK_ITEM_COUNT.

Note:

Stability Level: stable

The number of work items that the thread pool has completed since the process has started.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling ThreadPool.CompletedWorkItemCount.

'dotnet.thread_pool.work_item.count'
DOTNET_TIMER_COUNT =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_TIMER_COUNT.

Note:

Stability Level: stable

The number of timer instances that are currently active.

Meter name: System.Runtime; Added in: .NET 9.0. This metric reports the same values as calling Timer.ActiveCount.

'dotnet.timer.count'

Attribute Names collapse

DOTNET_GC_HEAP_GENERATION =
Deprecated.

Now available in the stable namespace at DOTNET::DOTNET_GC_HEAP_GENERATION.

Note:

Stability Level: stable

Name of the garbage collector managed heap generation.

Examples:

Sample Values

gen0
gen1
gen2
'dotnet.gc.heap.generation'