(maybeObj: unknown)
| 52 | * https://develop.sentry.dev/sdk/telemetry/scopes/#setting-attributes |
| 53 | */ |
| 54 | export function isAttributeObject(maybeObj: unknown): maybeObj is AttributeObject { |
| 55 | return ( |
| 56 | typeof maybeObj === 'object' && |
| 57 | maybeObj != null && |
| 58 | !Array.isArray(maybeObj) && |
| 59 | Object.keys(maybeObj).includes('value') |
| 60 | ); |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Converts an attribute value to a typed attribute value. |
no test coverage detected