LogAttributesValue
The allowed value types for key-value attributes on traces and spans. Attributes are used asRecord<string, LogAttributesValue> throughout the observability API.
Import
Type Definition
| Type | Description | Example |
|---|---|---|
string | Text metadata | 'us-east-1', 'user-456' |
number | Numeric metadata | 1234, 0.95, 3 |
boolean | Boolean flags | true, false |
Usage
Attributes appear asRecord<string, LogAttributesValue> in these methods:
monitor.logTrace()— set attributes when creating a tracetrace.update()— update attributes on an existing tracetrace.logSpan()— set attributes when creating a spanspan.update()— update attributes on an existing span