open-telemetry / opamp-spec

OpAMP Specification
Apache License 2.0
108 stars 34 forks source link

Change bitfields from enum to uint64 #125

Closed tigrannajaryan closed 2 years ago

tigrannajaryan commented 2 years ago

Resolves https://github.com/open-telemetry/opamp-spec/issues/121

In some languages enum fields are strongly typed and it is impossible to assigned OR-ed values to the enum field. This makes impossible to compose the bit fields properly.

This changes all bit field declarations from enum to uint64. The enum declarations stay, so that bit definitions are clear.

This must be a non-breaking change on the wire. The enum and uint64 are encoded exactly the same way on the wire.