Skip to content

Commit

Permalink
Add detail to tag dropping scenario
Browse files Browse the repository at this point in the history
Edit `customizing-the-sdk` page to give more detail about the outcome of tag dropping
  • Loading branch information
jwreford99 authored Nov 2, 2023
1 parent 9ba8887 commit 70722be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/metrics/customizing-the-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand All @@ -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
...
```

Expand Down

0 comments on commit 70722be

Please sign in to comment.