forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend the datapoint macro to support group-by operations. (solana-la…
…bs#25385) #### Problem Our existing datapoint macro syntax does directly not support group-by tags. The existing workaround is to embed the group-by tags into the metric name which does not scale well. #### Summary of Changes This PR extends the existing syntax to support group-by tags as follows. The new syntax is also compatible with the existing syntax: ``` datapoint_debug!( "metric_name", "tag" => "tag-value", "tag2" => "tag-value2", .... ("field1", 100, i64), // field syntax is the same as the current syntax. ("field2", "hello", String), ... ); ```
- Loading branch information
1 parent
5b67960
commit 6de2884
Showing
2 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters