We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 64f871f + 4bb03a5 commit b49ec4fCopy full SHA for b49ec4f
wit/types.wit
@@ -14,6 +14,10 @@ interface types {
14
///
15
/// This corresponds with the `AnyValue` type defined in the [attribute spec](https://opentelemetry.io/docs/specs/otel/common/#anyvalue).
16
/// Because WIT doesn't support recursive types, the data needs to be serialized. JSON is used as the encoding format.
17
+ ///
18
+ /// Byte arrays require special encoding since JSON cannot distinguish them from number arrays.
19
+ /// They are base64-encoded with a prefix that follows the Data URI RFC 2397 convention:
20
+ /// `data:application/octet-stream;base64,<BASE64_ENCODED_BYTES>`
21
type value = string;
22
23
/// An immutable representation of the entity producing telemetry as attributes.
0 commit comments