[Documentation] Update docs for selecting specific tags of a metric instrument (#5017)

This commit is contained in:
Julian Wreford 2023-11-02 21:52:38 +00:00 committed by GitHub
parent ba161c492a
commit defaffa91f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -198,6 +198,7 @@ with the metric are of interest to you.
MyFruitCounter.Add(1, new("name", "apple"), new("color", "red"));
MyFruitCounter.Add(2, new("name", "lemon"), new("color", "yellow"));
MyFruitCounter.Add(2, new("name", "apple"), new("color", "green"));
// Because "color" is dropped the resulting metric values are - name:apple LongSum Value:3 and name:lemon LongSum Value:2
...
// If you provide an empty `string` array as `TagKeys` to the `MetricStreamConfiguration`
@ -214,6 +215,7 @@ with the metric are of interest to you.
MyFruitCounter.Add(1, new("name", "apple"), new("color", "red"));
MyFruitCounter.Add(2, new("name", "lemon"), new("color", "yellow"));
MyFruitCounter.Add(2, new("name", "apple"), new("color", "green"));
// Because both "name" and "color" are dropped the resulting metric value is - LongSum Value:5
...
```