|
|
|
|
@ -4,7 +4,7 @@ linkTitle: .NET
|
|
|
|
|
|
|
|
|
|
# Semantic Conventions for .NET Common Language Runtime (CLR) Metrics
|
|
|
|
|
|
|
|
|
|
**Status**: [Experimental][DocumentStatus]
|
|
|
|
|
**Status**: [Stable][DocumentStatus]
|
|
|
|
|
|
|
|
|
|
This document describes semantic conventions for .NET CLR runtime metrics in OpenTelemetry.
|
|
|
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ This document describes semantic conventions for .NET CLR runtime metrics in Ope
|
|
|
|
|
|
|
|
|
|
## .NET CLR Process
|
|
|
|
|
|
|
|
|
|
**Status**: [Experimental][DocumentStatus]
|
|
|
|
|
**Status**: [Stable][DocumentStatus]
|
|
|
|
|
|
|
|
|
|
**Description:** .NET Common Language Runtime (CLR) metrics relating to the process, captured under the namespace `dotnet.process.*`.
|
|
|
|
|
|
|
|
|
|
@ -60,7 +60,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.process.cpu.count` | UpDownCounter | `{cpu}` | The number of processors available to the process. [1] |  |
|
|
|
|
|
| `dotnet.process.cpu.count` | UpDownCounter | `{cpu}` | The number of processors available to the process. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as accessing [`Environment.ProcessorCount`](https://learn.microsoft.com/dotnet/api/system.environment.processorcount).
|
|
|
|
|
@ -83,7 +83,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.process.cpu.time` | Counter | `s` | CPU time used by the process. [1] |  |
|
|
|
|
|
| `dotnet.process.cpu.time` | Counter | `s` | CPU time used by the process. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** 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`](https://learn.microsoft.com/dotnet/api/system.diagnostics.process).
|
|
|
|
|
@ -125,7 +125,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.process.memory.working_set` | UpDownCounter | `By` | The number of bytes of physical memory mapped to the process context. [1] |  |
|
|
|
|
|
| `dotnet.process.memory.working_set` | UpDownCounter | `By` | The number of bytes of physical memory mapped to the process context. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`Environment.WorkingSet`](https://learn.microsoft.com/dotnet/api/system.environment.workingset).
|
|
|
|
|
@ -137,7 +137,7 @@ This metric reports the same values as calling [`Environment.WorkingSet`](https:
|
|
|
|
|
|
|
|
|
|
## .NET CLR Garbage Collection
|
|
|
|
|
|
|
|
|
|
**Status**: [Experimental][DocumentStatus]
|
|
|
|
|
**Status**: [Stable][DocumentStatus]
|
|
|
|
|
|
|
|
|
|
**Description:** .NET Common Language Runtime (CLR) metrics relating to garbage collection, captured under the namespace `dotnet.gc.*`.
|
|
|
|
|
|
|
|
|
|
@ -154,14 +154,14 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.gc.collections` | Counter | `{collection}` | The number of garbage collections that have occurred since the process has started. [1] |  |
|
|
|
|
|
| `dotnet.gc.collections` | Counter | `{collection}` | The number of garbage collections that have occurred since the process has started. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric uses the [`GC.CollectionCount(int generation)`](https://learn.microsoft.com/dotnet/api/system.gc.collectioncount) API to calculate exclusive collections per generation.
|
|
|
|
|
|
|
|
|
|
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
|
|
|
|
|
|---|---|---|---|---|---|
|
|
|
|
|
| [`dotnet.gc.heap.generation`](/docs/attributes-registry/dotnet.md) | string | Name of the garbage collector managed heap generation. | `gen0`; `gen1`; `gen2` | `Required` |  |
|
|
|
|
|
| [`dotnet.gc.heap.generation`](/docs/attributes-registry/dotnet.md) | string | Name of the garbage collector managed heap generation. | `gen0`; `gen1`; `gen2` | `Required` |  |
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
@ -169,11 +169,11 @@ This metric uses the [`GC.CollectionCount(int generation)`](https://learn.micros
|
|
|
|
|
|
|
|
|
|
| Value | Description | Stability |
|
|
|
|
|
|---|---|---|
|
|
|
|
|
| `gen0` | Generation 0 |  |
|
|
|
|
|
| `gen1` | Generation 1 |  |
|
|
|
|
|
| `gen2` | Generation 2 |  |
|
|
|
|
|
| `loh` | Large Object Heap |  |
|
|
|
|
|
| `poh` | Pinned Object Heap |  |
|
|
|
|
|
| `gen0` | Generation 0 |  |
|
|
|
|
|
| `gen1` | Generation 1 |  |
|
|
|
|
|
| `gen2` | Generation 2 |  |
|
|
|
|
|
| `loh` | Large Object Heap |  |
|
|
|
|
|
| `poh` | Pinned Object Heap |  |
|
|
|
|
|
|
|
|
|
|
<!-- markdownlint-restore -->
|
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
@ -193,7 +193,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.gc.heap.total_allocated` | Counter | `By` | 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. [1] |  |
|
|
|
|
|
| `dotnet.gc.heap.total_allocated` | Counter | `By` | 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. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`GC.GetTotalAllocatedBytes()`](https://learn.microsoft.com/dotnet/api/system.gc.gettotalallocatedbytes).
|
|
|
|
|
@ -216,7 +216,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.gc.last_collection.memory.committed_size` | UpDownCounter | `By` | The amount of committed virtual memory in use by the .NET GC, as observed during the latest garbage collection. [1] |  |
|
|
|
|
|
| `dotnet.gc.last_collection.memory.committed_size` | UpDownCounter | `By` | The amount of committed virtual memory in use by the .NET GC, as observed during the latest garbage collection. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`GC.GetGCMemoryInfo().TotalCommittedBytes`](https://learn.microsoft.com/dotnet/api/system.gcmemoryinfo.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.
|
|
|
|
|
@ -239,14 +239,14 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.gc.last_collection.heap.size` | UpDownCounter | `By` | The managed GC heap size (including fragmentation), as observed during the latest garbage collection. [1] |  |
|
|
|
|
|
| `dotnet.gc.last_collection.heap.size` | UpDownCounter | `By` | The managed GC heap size (including fragmentation), as observed during the latest garbage collection. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`GC.GetGCMemoryInfo().GenerationInfo.SizeAfterBytes`](https://learn.microsoft.com/dotnet/api/system.gcgenerationinfo.sizeafterbytes).
|
|
|
|
|
|
|
|
|
|
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
|
|
|
|
|
|---|---|---|---|---|---|
|
|
|
|
|
| [`dotnet.gc.heap.generation`](/docs/attributes-registry/dotnet.md) | string | Name of the garbage collector managed heap generation. | `gen0`; `gen1`; `gen2` | `Required` |  |
|
|
|
|
|
| [`dotnet.gc.heap.generation`](/docs/attributes-registry/dotnet.md) | string | Name of the garbage collector managed heap generation. | `gen0`; `gen1`; `gen2` | `Required` |  |
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
@ -254,11 +254,11 @@ This metric reports the same values as calling [`GC.GetGCMemoryInfo().Generation
|
|
|
|
|
|
|
|
|
|
| Value | Description | Stability |
|
|
|
|
|
|---|---|---|
|
|
|
|
|
| `gen0` | Generation 0 |  |
|
|
|
|
|
| `gen1` | Generation 1 |  |
|
|
|
|
|
| `gen2` | Generation 2 |  |
|
|
|
|
|
| `loh` | Large Object Heap |  |
|
|
|
|
|
| `poh` | Pinned Object Heap |  |
|
|
|
|
|
| `gen0` | Generation 0 |  |
|
|
|
|
|
| `gen1` | Generation 1 |  |
|
|
|
|
|
| `gen2` | Generation 2 |  |
|
|
|
|
|
| `loh` | Large Object Heap |  |
|
|
|
|
|
| `poh` | Pinned Object Heap |  |
|
|
|
|
|
|
|
|
|
|
<!-- markdownlint-restore -->
|
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
@ -278,14 +278,14 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.gc.last_collection.heap.fragmentation.size` | UpDownCounter | `By` | The heap fragmentation, as observed during the latest garbage collection. [1] |  |
|
|
|
|
|
| `dotnet.gc.last_collection.heap.fragmentation.size` | UpDownCounter | `By` | The heap fragmentation, as observed during the latest garbage collection. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`GC.GetGCMemoryInfo().GenerationInfo.FragmentationAfterBytes`](https://learn.microsoft.com/dotnet/api/system.gcgenerationinfo.fragmentationafterbytes).
|
|
|
|
|
|
|
|
|
|
| Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability |
|
|
|
|
|
|---|---|---|---|---|---|
|
|
|
|
|
| [`dotnet.gc.heap.generation`](/docs/attributes-registry/dotnet.md) | string | Name of the garbage collector managed heap generation. | `gen0`; `gen1`; `gen2` | `Required` |  |
|
|
|
|
|
| [`dotnet.gc.heap.generation`](/docs/attributes-registry/dotnet.md) | string | Name of the garbage collector managed heap generation. | `gen0`; `gen1`; `gen2` | `Required` |  |
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
@ -293,11 +293,11 @@ This metric reports the same values as calling [`GC.GetGCMemoryInfo().Generation
|
|
|
|
|
|
|
|
|
|
| Value | Description | Stability |
|
|
|
|
|
|---|---|---|
|
|
|
|
|
| `gen0` | Generation 0 |  |
|
|
|
|
|
| `gen1` | Generation 1 |  |
|
|
|
|
|
| `gen2` | Generation 2 |  |
|
|
|
|
|
| `loh` | Large Object Heap |  |
|
|
|
|
|
| `poh` | Pinned Object Heap |  |
|
|
|
|
|
| `gen0` | Generation 0 |  |
|
|
|
|
|
| `gen1` | Generation 1 |  |
|
|
|
|
|
| `gen2` | Generation 2 |  |
|
|
|
|
|
| `loh` | Large Object Heap |  |
|
|
|
|
|
| `poh` | Pinned Object Heap |  |
|
|
|
|
|
|
|
|
|
|
<!-- markdownlint-restore -->
|
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
@ -317,7 +317,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.gc.pause.time` | Counter | `s` | The total amount of time paused in GC since the process has started. [1] |  |
|
|
|
|
|
| `dotnet.gc.pause.time` | Counter | `s` | The total amount of time paused in GC since the process has started. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`GC.GetTotalPauseDuration()`](https://learn.microsoft.com/dotnet/api/system.gc.gettotalpauseduration).
|
|
|
|
|
@ -329,7 +329,7 @@ This metric reports the same values as calling [`GC.GetTotalPauseDuration()`](ht
|
|
|
|
|
|
|
|
|
|
## .NET CLR Just-In-Time (JIT) Compiler
|
|
|
|
|
|
|
|
|
|
**Status**: [Experimental][DocumentStatus]
|
|
|
|
|
**Status**: [Stable][DocumentStatus]
|
|
|
|
|
|
|
|
|
|
**Description:** .NET Common Language Runtime (CLR) metrics relating to the Just-In-Time compiler, captured under the namespace `dotnet.jit.*`.
|
|
|
|
|
|
|
|
|
|
@ -346,7 +346,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.jit.compiled_il.size` | Counter | `By` | Count of bytes of intermediate language that have been compiled since the process has started. [1] |  |
|
|
|
|
|
| `dotnet.jit.compiled_il.size` | Counter | `By` | Count of bytes of intermediate language that have been compiled since the process has started. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`JitInfo.GetCompiledILBytes()`](https://learn.microsoft.com/dotnet/api/system.runtime.jitinfo.getcompiledilbytes).
|
|
|
|
|
@ -369,7 +369,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.jit.compiled_methods` | Counter | `{method}` | The number of times the JIT compiler (re)compiled methods since the process has started. [1] |  |
|
|
|
|
|
| `dotnet.jit.compiled_methods` | Counter | `{method}` | The number of times the JIT compiler (re)compiled methods since the process has started. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`JitInfo.GetCompiledMethodCount()`](https://learn.microsoft.com/dotnet/api/system.runtime.jitinfo.getcompiledmethodcount).
|
|
|
|
|
@ -392,7 +392,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.jit.compilation.time` | Counter | `s` | The amount of time the JIT compiler has spent compiling methods since the process has started. [1] |  |
|
|
|
|
|
| `dotnet.jit.compilation.time` | Counter | `s` | The amount of time the JIT compiler has spent compiling methods since the process has started. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`JitInfo.GetCompilationTime()`](https://learn.microsoft.com/dotnet/api/system.runtime.jitinfo.getcompilationtime).
|
|
|
|
|
@ -404,7 +404,7 @@ This metric reports the same values as calling [`JitInfo.GetCompilationTime()`](
|
|
|
|
|
|
|
|
|
|
## .NET CLR Thread pool
|
|
|
|
|
|
|
|
|
|
**Status**: [Experimental][DocumentStatus]
|
|
|
|
|
**Status**: [Stable][DocumentStatus]
|
|
|
|
|
|
|
|
|
|
**Description:** .NET Common Language Runtime (CLR) metrics relating to the thread pool, captured under the namespace `dotnet.thread_pool.*`.
|
|
|
|
|
|
|
|
|
|
@ -421,7 +421,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.thread_pool.thread.count` | UpDownCounter | `{thread}` | The number of thread pool threads that currently exist. [1] |  |
|
|
|
|
|
| `dotnet.thread_pool.thread.count` | UpDownCounter | `{thread}` | The number of thread pool threads that currently exist. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`ThreadPool.ThreadCount`](https://learn.microsoft.com/dotnet/api/system.threading.threadpool.threadcount).
|
|
|
|
|
@ -444,7 +444,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.thread_pool.work_item.count` | Counter | `{work_item}` | The number of work items that the thread pool has completed since the process has started. [1] |  |
|
|
|
|
|
| `dotnet.thread_pool.work_item.count` | Counter | `{work_item}` | The number of work items that the thread pool has completed since the process has started. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`ThreadPool.CompletedWorkItemCount`](https://learn.microsoft.com/dotnet/api/system.threading.threadpool.completedworkitemcount).
|
|
|
|
|
@ -467,7 +467,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.thread_pool.queue.length` | UpDownCounter | `{work_item}` | The number of work items that are currently queued to be processed by the thread pool. [1] |  |
|
|
|
|
|
| `dotnet.thread_pool.queue.length` | UpDownCounter | `{work_item}` | The number of work items that are currently queued to be processed by the thread pool. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`ThreadPool.PendingWorkItemCount`](https://learn.microsoft.com/dotnet/api/system.threading.threadpool.pendingworkitemcount).
|
|
|
|
|
@ -479,7 +479,7 @@ This metric reports the same values as calling [`ThreadPool.PendingWorkItemCount
|
|
|
|
|
|
|
|
|
|
## .NET CLR General
|
|
|
|
|
|
|
|
|
|
**Status**: [Experimental][DocumentStatus]
|
|
|
|
|
**Status**: [Stable][DocumentStatus]
|
|
|
|
|
|
|
|
|
|
**Description:** Other useful .NET Common Language Runtime (CLR) metrics.
|
|
|
|
|
|
|
|
|
|
@ -496,7 +496,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.monitor.lock_contentions` | Counter | `{contention}` | The number of times there was contention when trying to acquire a monitor lock since the process has started. [1] |  |
|
|
|
|
|
| `dotnet.monitor.lock_contentions` | Counter | `{contention}` | The number of times there was contention when trying to acquire a monitor lock since the process has started. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`Monitor.LockContentionCount`](https://learn.microsoft.com/dotnet/api/system.threading.monitor.lockcontentioncount).
|
|
|
|
|
@ -519,7 +519,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.timer.count` | UpDownCounter | `{timer}` | The number of timer instances that are currently active. [1] |  |
|
|
|
|
|
| `dotnet.timer.count` | UpDownCounter | `{timer}` | The number of timer instances that are currently active. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`Timer.ActiveCount`](https://learn.microsoft.com/dotnet/api/system.threading.timer.activecount).
|
|
|
|
|
@ -542,7 +542,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.assembly.count` | UpDownCounter | `{assembly}` | The number of .NET assemblies that are currently loaded. [1] |  |
|
|
|
|
|
| `dotnet.assembly.count` | UpDownCounter | `{assembly}` | The number of .NET assemblies that are currently loaded. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as calling [`AppDomain.CurrentDomain.GetAssemblies().Length`](https://learn.microsoft.com/dotnet/api/system.appdomain.getassemblies).
|
|
|
|
|
@ -565,7 +565,7 @@ This metric is [recommended][MetricRecommended].
|
|
|
|
|
|
|
|
|
|
| Name | Instrument Type | Unit (UCUM) | Description | Stability |
|
|
|
|
|
| -------- | --------------- | ----------- | -------------- | --------- |
|
|
|
|
|
| `dotnet.exceptions` | Counter | `{exception}` | The number of exceptions that have been thrown in managed code. [1] |  |
|
|
|
|
|
| `dotnet.exceptions` | Counter | `{exception}` | The number of exceptions that have been thrown in managed code. [1] |  |
|
|
|
|
|
|
|
|
|
|
**[1]:** Meter name: `System.Runtime`; Added in: .NET 9.0.
|
|
|
|
|
This metric reports the same values as counting calls to [`AppDomain.CurrentDomain.FirstChanceException`](https://learn.microsoft.com/dotnet/api/system.appdomain.firstchanceexception).
|
|
|
|
|
|