(labels, exclude)
| 203 | } |
| 204 | |
| 205 | function formatLabels(labels, exclude) { |
| 206 | const { hasOwnProperty } = Object.prototype; |
| 207 | const formatted = []; |
| 208 | for (const [name, value] of Object.entries(labels)) { |
| 209 | if (!exclude || !hasOwnProperty.call(exclude, name)) { |
| 210 | formatted.push(`${name}="${escapeLabelValue(value)}"`); |
| 211 | } |
| 212 | } |
| 213 | return formatted; |
| 214 | } |
| 215 | |
| 216 | const sharedLabelCache = new WeakMap(); |
| 217 | function flattenSharedLabels(labels) { |
no test coverage detected