Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/core/diagnostics/metrics-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The following code demonstrates how to use the generator with primitive types:

## Specifying units

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.
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.

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

Expand Down
2 changes: 1 addition & 1 deletion docs/core/diagnostics/metrics-strongly-typed.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ In the preceding `MyClass.DoWork` method, a `MetricTags` object is populated wit

## Specifying units

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.
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.

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

Expand Down
Loading