(attributes?: Metric.Attributes)
| 3507 | } |
| 3508 | |
| 3509 | function attributesToRecord(attributes?: Metric.Attributes): Metric.AttributeSet | undefined { |
| 3510 | if (Predicate.isNotUndefined(attributes) && Array.isArray(attributes)) { |
| 3511 | return attributes.reduce((acc, [key, value]) => { |
| 3512 | InternalRecord.assignProperty(acc, key, value) |
| 3513 | return acc |
| 3514 | }, {} as Metric.AttributeSet) |
| 3515 | } |
| 3516 | return attributes as Metric.AttributeSet | undefined |
| 3517 | } |
| 3518 | |
| 3519 | function addAttributesToContext( |
| 3520 | context: Context.Context<never>, |
no outgoing calls
no test coverage detected