Skip to content

Commit

Permalink
Apply latest naming suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Aug 5, 2024
1 parent 90a9356 commit f8866a1
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
72 changes: 36 additions & 36 deletions docs/runtime/dotnet-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ This document describes semantic conventions for .NET CLR runtime metrics in Ope

- [CLR Garbage Collection](#clr-garbage-collection)
- [Metric: `dotnet.gc.collections`](#metric-dotnetgccollections)
- [Metric: `dotnet.gc.objects.size`](#metric-dotnetgcobjectssize)
- [Metric: `dotnet.gc.memory.total_allocated`](#metric-dotnetgcmemorytotal_allocated)
- [Metric: `dotnet.gc.memory.committed`](#metric-dotnetgcmemorycommitted)
- [Metric: `dotnet.gc.heap.size`](#metric-dotnetgcheapsize)
- [Metric: `dotnet.gc.heap.fragmentation`](#metric-dotnetgcheapfragmentation)
- [Metric: `dotnet.process.memory.working_set`](#metric-dotnetprocessmemoryworking_set)
- [Metric: `dotnet.gc.heap.total_allocated`](#metric-dotnetgcheaptotal_allocated)
- [Metric: `dotnet.gc.last_collection.memory.committed_size`](#metric-dotnetgclast_collectionmemorycommitted_size)
- [Metric: `dotnet.gc.last_collection.heap.size`](#metric-dotnetgclast_collectionheapsize)
- [Metric: `dotnet.gc.last_collection.heap.fragmentation.size`](#metric-dotnetgclast_collectionheapfragmentationsize)
- [Metric: `dotnet.gc.pause.time`](#metric-dotnetgcpausetime)
- [Just-In-Time (JIT) Compiler](#just-in-time-jit-compiler)
- [Metric: `dotnet.jit.compiled_il.size`](#metric-dotnetjitcompiled_ilsize)
Expand All @@ -29,8 +29,8 @@ This document describes semantic conventions for .NET CLR runtime metrics in Ope
- [Metric: `dotnet.thread_pool.work_item.count`](#metric-dotnetthread_poolwork_itemcount)
- [Metric: `dotnet.thread_pool.queue.length`](#metric-dotnetthread_poolqueuelength)
- [CPU](#cpu)
- [Metric: `dotnet.cpu.count`](#metric-dotnetcpucount)
- [Metric: `dotnet.cpu.time`](#metric-dotnetcputime)
- [Metric: `dotnet.process.cpu.count`](#metric-dotnetprocesscpucount)
- [Metric: `dotnet.process.cpu.time`](#metric-dotnetprocesscputime)
- [General](#general)
- [Metric: `dotnet.monitor.lock_contentions`](#metric-dotnetmonitorlock_contentions)
- [Metric: `dotnet.timer.count`](#metric-dotnettimercount)
Expand Down Expand Up @@ -98,11 +98,11 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### Metric: `dotnet.gc.objects.size`
### Metric: `dotnet.process.memory.working_set`

This metric is [recommended][MetricRecommended].

<!-- semconv metric.dotnet.gc.objects.size(metric_table) -->
<!-- semconv metric.dotnet.process.memory.working_set(metric_table) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -111,10 +111,10 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `dotnet.gc.objects.size` | UpDownCounter | `By` | The number of bytes currently allocated on the managed GC heap. Fragmentation and other GC committed memory pools are excluded. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `dotnet.process.memory.working_set` | UpDownCounter | `By` | The number of bytes of physical memory mapped to the process context. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |


**[1]:** This metric reports the same values as calling [`GC.GetTotalMemory(false)`](https://learn.microsoft.com/dotnet/api/system.gc.gettotalmemory).
**[1]:** This metric reports the same values as calling [`Environment.WorkingSet`](https://learn.microsoft.com/dotnet/api/system.environment.workingset).



Expand All @@ -123,7 +123,7 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

<!-- semconv metric.dotnet.gc.objects.size(full) -->
<!-- semconv metric.dotnet.process.memory.working_set(full) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -136,11 +136,11 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### Metric: `dotnet.gc.memory.total_allocated`
### Metric: `dotnet.gc.heap.total_allocated`

This metric is [recommended][MetricRecommended].

<!-- semconv metric.dotnet.gc.memory.total_allocated(metric_table) -->
<!-- semconv metric.dotnet.gc.heap.total_allocated(metric_table) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -149,7 +149,7 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `dotnet.gc.memory.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] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `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] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |


**[1]:** This metric reports the same values as calling [`GC.GetTotalAllocatedBytes()`](https://learn.microsoft.com/dotnet/api/system.gc.gettotalallocatedbytes).
Expand All @@ -161,7 +161,7 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

<!-- semconv metric.dotnet.gc.memory.total_allocated(full) -->
<!-- semconv metric.dotnet.gc.heap.total_allocated(full) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -174,11 +174,11 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### Metric: `dotnet.gc.memory.committed`
### Metric: `dotnet.gc.last_collection.memory.committed_size`

This metric is [recommended][MetricRecommended].

<!-- semconv metric.dotnet.gc.memory.committed(metric_table) -->
<!-- semconv metric.dotnet.gc.last_collection.memory.committed_size(metric_table) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -187,7 +187,7 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `dotnet.gc.memory.committed` | UpDownCounter | `By` | The amount of committed virtual memory in use by the .NET GC, as observed during the latest garbage collection. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `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] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |


**[1]:** 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.
Expand All @@ -199,7 +199,7 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

<!-- semconv metric.dotnet.gc.memory.committed(full) -->
<!-- semconv metric.dotnet.gc.last_collection.memory.committed_size(full) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -212,11 +212,11 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### Metric: `dotnet.gc.heap.size`
### Metric: `dotnet.gc.last_collection.heap.size`

This metric is [recommended][MetricRecommended].

<!-- semconv metric.dotnet.gc.heap.size(metric_table) -->
<!-- semconv metric.dotnet.gc.last_collection.heap.size(metric_table) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -225,7 +225,7 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `dotnet.gc.heap.size` | UpDownCounter | `By` | The managed GC heap size (including fragmentation), as observed during the latest garbage collection. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `dotnet.gc.last_collection.heap.size` | UpDownCounter | `By` | The managed GC heap size (including fragmentation), as observed during the latest garbage collection. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |


**[1]:** This metric reports the same values as calling [`GC.GetGCMemoryInfo().GenerationInfo.SizeAfterBytes`](https://learn.microsoft.com/dotnet/api/system.gcgenerationinfo.sizeafterbytes).
Expand All @@ -237,7 +237,7 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

<!-- semconv metric.dotnet.gc.heap.size(full) -->
<!-- semconv metric.dotnet.gc.last_collection.heap.size(full) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand Down Expand Up @@ -265,11 +265,11 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### Metric: `dotnet.gc.heap.fragmentation`
### Metric: `dotnet.gc.last_collection.heap.fragmentation.size`

This metric is [recommended][MetricRecommended].

<!-- semconv metric.dotnet.gc.heap.fragmentation(metric_table) -->
<!-- semconv metric.dotnet.gc.last_collection.heap.fragmentation.size(metric_table) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -278,7 +278,7 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `dotnet.gc.heap.fragmentation` | UpDownCounter | `By` | The heap fragmentation, as observed during the latest garbage collection. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `dotnet.gc.last_collection.heap.fragmentation.size` | UpDownCounter | `By` | The heap fragmentation, as observed during the latest garbage collection. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |


**[1]:** This metric reports the same values as calling [`GC.GetGCMemoryInfo().GenerationInfo.FragmentationAfterBytes`](https://learn.microsoft.com/dotnet/api/system.gcgenerationinfo.fragmentationafterbytes).
Expand All @@ -290,7 +290,7 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

<!-- semconv metric.dotnet.gc.heap.fragmentation(full) -->
<!-- semconv metric.dotnet.gc.last_collection.heap.fragmentation.size(full) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand Down Expand Up @@ -605,11 +605,11 @@ This metric is [recommended][MetricRecommended].
_Note: These metrics represent CPU information from the perspective of the .NET process and may differ from
CPU metrics measured from outside the process (e.g. `system.cpu.*`)._

### Metric: `dotnet.cpu.count`
### Metric: `dotnet.process.cpu.count`

This metric is [recommended][MetricRecommended].

<!-- semconv metric.dotnet.cpu.count(metric_table) -->
<!-- semconv metric.dotnet.process.cpu.count(metric_table) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -618,7 +618,7 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `dotnet.cpu.count` | UpDownCounter | `{cpu}` | The number of processors available to the process. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `dotnet.process.cpu.count` | UpDownCounter | `{cpu}` | The number of processors available to the process. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |


**[1]:** This metric reports the same values as accessing [`Environment.ProcessorCount`](https://learn.microsoft.com/dotnet/api/system.environment.processorcount).
Expand All @@ -630,7 +630,7 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

<!-- semconv metric.dotnet.cpu.count(full) -->
<!-- semconv metric.dotnet.process.cpu.count(full) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -643,11 +643,11 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

### Metric: `dotnet.cpu.time`
### Metric: `dotnet.process.cpu.time`

This metric is [recommended][MetricRecommended].

<!-- semconv metric.dotnet.cpu.time(metric_table) -->
<!-- semconv metric.dotnet.process.cpu.time(metric_table) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand All @@ -656,7 +656,7 @@ This metric is [recommended][MetricRecommended].

| Name | Instrument Type | Unit (UCUM) | Description | Stability |
| -------- | --------------- | ----------- | -------------- | --------- |
| `dotnet.cpu.time` | Counter | `s` | CPU time used by the process as reported by the CLR. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `dotnet.process.cpu.time` | Counter | `s` | CPU time used by the process as reported by the CLR. [1] | ![Experimental](https://img.shields.io/badge/-experimental-blue) |


**[1]:** 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)."
Expand All @@ -668,7 +668,7 @@ This metric is [recommended][MetricRecommended].
<!-- END AUTOGENERATED TEXT -->
<!-- endsemconv -->

<!-- semconv metric.dotnet.cpu.time(full) -->
<!-- semconv metric.dotnet.process.cpu.time(full) -->
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
Expand Down
32 changes: 16 additions & 16 deletions model/metrics/dotnet-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ groups:
- ref: dotnet.gc.heap.generation
requirement_level: required

- id: metric.dotnet.gc.objects.size
- id: metric.dotnet.process.memory.working_set
type: metric
metric_name: dotnet.gc.objects.size
brief: "The number of bytes currently allocated on the managed GC heap. Fragmentation and other GC committed memory pools are excluded."
note: "This metric reports the same values as calling [`GC.GetTotalMemory(false)`](https://learn.microsoft.com/dotnet/api/system.gc.gettotalmemory)."
metric_name: dotnet.process.memory.working_set
brief: "The number of bytes of physical memory mapped to the process context."
note: "This metric reports the same values as calling [`Environment.WorkingSet`](https://learn.microsoft.com/dotnet/api/system.environment.workingset)."
instrument: updowncounter
unit: "By"
stability: experimental

- id: metric.dotnet.gc.memory.total_allocated
- id: metric.dotnet.gc.heap.total_allocated
type: metric
metric_name: dotnet.gc.memory.total_allocated
metric_name: dotnet.gc.heap.total_allocated
brief: >
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.
Expand All @@ -31,9 +31,9 @@ groups:
unit: "By"
stability: experimental

- id: metric.dotnet.gc.memory.committed
- id: metric.dotnet.gc.last_collection.memory.committed_size
type: metric
metric_name: dotnet.gc.memory.committed
metric_name: dotnet.gc.last_collection.memory.committed_size
brief: >
The amount of committed virtual memory in use by the .NET GC, as
observed during the latest garbage collection.
Expand All @@ -48,9 +48,9 @@ groups:
unit: "By"
stability: experimental

- id: metric.dotnet.gc.heap.size
- id: metric.dotnet.gc.last_collection.heap.size
type: metric
metric_name: dotnet.gc.heap.size
metric_name: dotnet.gc.last_collection.heap.size
brief: >
The managed GC heap size (including fragmentation), as observed during the
latest garbage collection.
Expand All @@ -62,9 +62,9 @@ groups:
- ref: dotnet.gc.heap.generation
requirement_level: required

- id: metric.dotnet.gc.heap.fragmentation
- id: metric.dotnet.gc.last_collection.heap.fragmentation.size
type: metric
metric_name: dotnet.gc.heap.fragmentation
metric_name: dotnet.gc.last_collection.heap.fragmentation.size
brief: >
The heap fragmentation, as observed during the latest garbage collection.
note: >
Expand Down Expand Up @@ -189,18 +189,18 @@ groups:
- ref: error.type
requirement_level: required

- id: metric.dotnet.cpu.count
- id: metric.dotnet.process.cpu.count
type: metric
metric_name: dotnet.cpu.count
metric_name: dotnet.process.cpu.count
brief: "The number of processors available to the process."
note: "This metric reports the same values as accessing [`Environment.ProcessorCount`](https://learn.microsoft.com/dotnet/api/system.environment.processorcount)."
instrument: updowncounter
unit: "{cpu}"
stability: experimental

- id: metric.dotnet.cpu.time
- id: metric.dotnet.process.cpu.time
type: metric
metric_name: dotnet.cpu.time
metric_name: dotnet.process.cpu.time
brief: "CPU time used by the process as reported by the CLR."
note: >
This metric reports the same values as accessing the corresponding
Expand Down

0 comments on commit f8866a1

Please sign in to comment.