Commit 0ea410e
Metrics: creating tags with fallback value (#152)
We frequently want to create a tag with a known key, but potentially invalid value, in which case we want to fall back to a known value such as the string `unknown`. This allows us to do so without repeatedly rewriting the same fallback code.1 parent 7fd8d6e commit 0ea410e
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
79 | 91 | | |
80 | 92 | | |
81 | 93 | | |
| |||
0 commit comments