-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace event.metric_names with metric_names_hash
A single GCP metric name can be quite long, for example: subscription.streaming_pull_mod_ack_deadline_message_operation.count we may collect enough metrics to overflow the current length limit for dimension fields. We hash the metric names value using SHA-256 to have a constant length value. I'm not 100% sure SHA-256 is the best option for this use case; we don't have cryptographic solid needs, so we can probably use a simpler algorithm to save computing cycles while getting a shorter hash value. We also drop `event.metric_names` because is no longer needed.
- Loading branch information
Showing
5 changed files
with
23 additions
and
9 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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