Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions wit/types.wit
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ interface types {
///
/// This corresponds with the `AnyValue` type defined in the [attribute spec](https://opentelemetry.io/docs/specs/otel/common/#anyvalue).
/// Because WIT doesn't support recursive types, the data needs to be serialized. JSON is used as the encoding format.
///
/// Byte arrays require special encoding since JSON cannot distinguish them from number arrays.
/// They are base64-encoded with a prefix that follows the Data URI RFC 2397 convention:
/// `data:application/octet-stream;base64,<BASE64_ENCODED_BYTES>`
type value = string;

/// An immutable representation of the entity producing telemetry as attributes.
Expand Down