Skip to content

Commit 01e6407

Browse files
authored
Adding "Starting with .NET 10.2" to the newly added unit in metric generator (#50379)
* updating docs again * adding note
1 parent c6a0664 commit 01e6407

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/core/diagnostics/metrics-generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The following code demonstrates how to use the generator with primitive types:
5151

5252
## Specifying units
5353

54-
You can optionally specify a unit of measurement for your metrics using the `Unit` parameter. This helps provide context about what the metric measures (for example, "seconds", "bytes", and "requests"). The unit is passed to the underlying <xref:System.Diagnostics.Metrics.Meter> when creating the instrument.
54+
Starting with .NET 10.2, you can optionally specify a unit of measurement for your metrics using the `Unit` parameter. This helps provide context about what the metric measures (for example, "seconds", "bytes", and "requests"). The unit is passed to the underlying <xref:System.Diagnostics.Metrics.Meter> when creating the instrument.
5555

5656
The following code demonstrates how to use the generator with primitive types with units specified:
5757

docs/core/diagnostics/metrics-strongly-typed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ In the preceding `MyClass.DoWork` method, a `MetricTags` object is populated wit
8080

8181
## Specifying units
8282

83-
You can optionally specify a unit of measurement for your metrics using the `Unit` parameter. This helps provide context about what the metric measures (for example, "seconds", "bytes", and "requests"). The unit is passed to the underlying <xref:System.Diagnostics.Metrics.Meter> when creating the instrument.
83+
Starting with .NET 10.2, you can optionally specify a unit of measurement for your metrics using the `Unit` parameter. This helps provide context about what the metric measures (for example, "seconds", "bytes", and "requests"). The unit is passed to the underlying <xref:System.Diagnostics.Metrics.Meter> when creating the instrument.
8484

8585
The following code demonstrates how to use the generator with primitive types with units specified:
8686

0 commit comments

Comments
 (0)