Skip to content

Commit 3ec4649

Browse files
authored
Move zero-element comment about dictionary tables (#698)
1 parent 741fae6 commit 3ec4649

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

opentelemetry/proto/profiles/v1development/profiles.proto

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,12 @@ option go_package = "go.opentelemetry.io/proto/otlp/profiles/v1development";
9292

9393
// ProfilesDictionary represents the profiles data shared across the
9494
// entire message being sent.
95+
//
96+
// Note that all fields in this message MUST have a zero value encoded as the first element.
97+
// This allows for _index fields pointing into the dictionary to use a 0 pointer value
98+
// to indicate 'null' / 'not set'. Unless otherwise defined, a 'zero value' message value
99+
// is one with all default field values, so as to minimize wire encoded size.
95100
message ProfilesDictionary {
96-
97-
// Note all fields in this message MUST have a zero value encoded as the first element.
98-
// This allows for _index fields pointing into the dictionary to use a 0 pointer value
99-
// to indicate 'null' / 'not set'. Unless otherwise defined, a 'zero value' message value
100-
// is one with all default field values, so as to minimize wire encoded size.
101-
102101
// Mappings from address ranges to the image/binary/library mapped
103102
// into that address range referenced by locations via Location.mapping_index.
104103
repeated Mapping mapping_table = 1;

0 commit comments

Comments
 (0)