1
1
// This file is @generated by prost-build.
2
+ /// ProfilesDictionary represents the profiles data shared across the
3
+ /// entire message being sent.
4
+ #[ cfg_attr( feature = "with-schemars" , derive( schemars:: JsonSchema ) ) ]
5
+ #[ cfg_attr( feature = "with-serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
6
+ #[ cfg_attr( feature = "with-serde" , serde( rename_all = "camelCase" ) ) ]
7
+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
8
+ pub struct ProfilesDictionary {
9
+ /// Mappings from address ranges to the image/binary/library mapped
10
+ /// into that address range referenced by locations via Location.mapping_index.
11
+ #[ prost( message, repeated, tag = "1" ) ]
12
+ pub mapping_table : :: prost:: alloc:: vec:: Vec < Mapping > ,
13
+ /// Locations referenced by samples via Profile.location_indices.
14
+ #[ prost( message, repeated, tag = "2" ) ]
15
+ pub location_table : :: prost:: alloc:: vec:: Vec < Location > ,
16
+ /// Functions referenced by locations via Line.function_index.
17
+ #[ prost( message, repeated, tag = "3" ) ]
18
+ pub function_table : :: prost:: alloc:: vec:: Vec < Function > ,
19
+ /// Links referenced by samples via Sample.link_index.
20
+ #[ prost( message, repeated, tag = "4" ) ]
21
+ pub link_table : :: prost:: alloc:: vec:: Vec < Link > ,
22
+ /// A common table for strings referenced by various messages.
23
+ /// string_table\[0\] must always be "".
24
+ #[ prost( string, repeated, tag = "5" ) ]
25
+ pub string_table : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
26
+ /// A common table for attributes referenced by various messages.
27
+ #[ prost( message, repeated, tag = "6" ) ]
28
+ pub attribute_table : :: prost:: alloc:: vec:: Vec < super :: super :: common:: v1:: KeyValue > ,
29
+ /// Represents a mapping between Attribute Keys and Units.
30
+ #[ prost( message, repeated, tag = "7" ) ]
31
+ pub attribute_units : :: prost:: alloc:: vec:: Vec < AttributeUnit > ,
32
+ }
2
33
/// ProfilesData represents the profiles data that can be stored in persistent storage,
3
34
/// OR can be embedded by other protocols that transfer OTLP profiles data but do not
4
35
/// implement the OTLP protocol.
@@ -23,29 +54,9 @@ pub struct ProfilesData {
23
54
/// Resource.attributes and semantic conventions.
24
55
#[ prost( message, repeated, tag = "1" ) ]
25
56
pub resource_profiles : :: prost:: alloc:: vec:: Vec < ResourceProfiles > ,
26
- /// Mappings from address ranges to the image/binary/library mapped
27
- /// into that address range referenced by locations via Location.mapping_index.
28
- #[ prost( message, repeated, tag = "2" ) ]
29
- pub mapping_table : :: prost:: alloc:: vec:: Vec < Mapping > ,
30
- /// Locations referenced by samples via Profile.location_indices.
31
- #[ prost( message, repeated, tag = "3" ) ]
32
- pub location_table : :: prost:: alloc:: vec:: Vec < Location > ,
33
- /// Functions referenced by locations via Line.function_index.
34
- #[ prost( message, repeated, tag = "4" ) ]
35
- pub function_table : :: prost:: alloc:: vec:: Vec < Function > ,
36
- /// Links referenced by samples via Sample.link_index.
37
- #[ prost( message, repeated, tag = "5" ) ]
38
- pub link_table : :: prost:: alloc:: vec:: Vec < Link > ,
39
- /// A common table for strings referenced by various messages.
40
- /// string_table\[0\] must always be "".
41
- #[ prost( string, repeated, tag = "6" ) ]
42
- pub string_table : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
43
- /// A common table for attributes referenced by various messages.
44
- #[ prost( message, repeated, tag = "7" ) ]
45
- pub attribute_table : :: prost:: alloc:: vec:: Vec < super :: super :: common:: v1:: KeyValue > ,
46
- /// Represents a mapping between Attribute Keys and Units.
47
- #[ prost( message, repeated, tag = "8" ) ]
48
- pub attribute_units : :: prost:: alloc:: vec:: Vec < AttributeUnit > ,
57
+ /// One instance of ProfilesDictionary
58
+ #[ prost( message, optional, tag = "2" ) ]
59
+ pub dictionary : :: core:: option:: Option < ProfilesDictionary > ,
49
60
}
50
61
/// A collection of ScopeProfiles from a Resource.
51
62
#[ cfg_attr( feature = "with-schemars" , derive( schemars:: JsonSchema ) ) ]
@@ -116,7 +127,7 @@ pub struct Profile {
116
127
/// The set of samples recorded in this profile.
117
128
#[ prost( message, repeated, tag = "2" ) ]
118
129
pub sample : :: prost:: alloc:: vec:: Vec < Sample > ,
119
- /// References to locations in ProfilesData .location_table.
130
+ /// References to locations in ProfilesDictionary .location_table.
120
131
#[ prost( int32, repeated, tag = "3" ) ]
121
132
pub location_indices : :: prost:: alloc:: vec:: Vec < i32 > ,
122
133
/// Time of collection (UTC) represented as nanoseconds past the epoch.
@@ -145,7 +156,7 @@ pub struct Profile {
145
156
/// for human-friendly content. The profile must stay functional if this field
146
157
/// is cleaned.
147
158
///
148
- /// Indices into ProfilesData .string_table.
159
+ /// Indices into ProfilesDictionary .string_table.
149
160
#[ prost( int32, repeated, tag = "8" ) ]
150
161
pub comment_strindices : :: prost:: alloc:: vec:: Vec < i32 > ,
151
162
/// Index into the sample_type array to the default sample type.
@@ -230,10 +241,10 @@ pub struct Link {
230
241
#[ cfg_attr( feature = "with-serde" , serde( rename_all = "camelCase" ) ) ]
231
242
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
232
243
pub struct ValueType {
233
- /// Index into ProfilesData .string_table.
244
+ /// Index into ProfilesDictionary .string_table.
234
245
#[ prost( int32, tag = "1" ) ]
235
246
pub type_strindex : i32 ,
236
- /// Index into ProfilesData .string_table.
247
+ /// Index into ProfilesDictionary .string_table.
237
248
#[ prost( int32, tag = "2" ) ]
238
249
pub unit_strindex : i32 ,
239
250
#[ prost( enumeration = "AggregationTemporality" , tag = "3" ) ]
@@ -263,10 +274,10 @@ pub struct Sample {
263
274
/// lists of the originals.
264
275
#[ prost( int64, repeated, tag = "3" ) ]
265
276
pub value : :: prost:: alloc:: vec:: Vec < i64 > ,
266
- /// References to attributes in ProfilesData .attribute_table. \[optional\]
277
+ /// References to attributes in ProfilesDictionary .attribute_table. \[optional\]
267
278
#[ prost( int32, repeated, tag = "4" ) ]
268
279
pub attribute_indices : :: prost:: alloc:: vec:: Vec < i32 > ,
269
- /// Reference to link in ProfilesData .link_table. \[optional\]
280
+ /// Reference to link in ProfilesDictionary .link_table. \[optional\]
270
281
#[ prost( int32, optional, tag = "5" ) ]
271
282
pub link_index : :: core:: option:: Option < i32 > ,
272
283
/// Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
@@ -301,10 +312,10 @@ pub struct Mapping {
301
312
/// disk for the main binary and shared libraries, or virtual
302
313
/// abstractions like "\[vdso\]".
303
314
///
304
- /// Index into ProfilesData .string_table.
315
+ /// Index into ProfilesDictionary .string_table.
305
316
#[ prost( int32, tag = "4" ) ]
306
317
pub filename_strindex : i32 ,
307
- /// References to attributes in ProfilesData .attribute_table. \[optional\]
318
+ /// References to attributes in ProfilesDictionary .attribute_table. \[optional\]
308
319
#[ prost( int32, repeated, tag = "5" ) ]
309
320
pub attribute_indices : :: prost:: alloc:: vec:: Vec < i32 > ,
310
321
/// The following fields indicate the resolution of symbolic info.
@@ -323,7 +334,7 @@ pub struct Mapping {
323
334
#[ cfg_attr( feature = "with-serde" , serde( rename_all = "camelCase" ) ) ]
324
335
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
325
336
pub struct Location {
326
- /// Reference to mapping in ProfilesData .mapping_table.
337
+ /// Reference to mapping in ProfilesDictionary .mapping_table.
327
338
/// It can be unset if the mapping is unknown or not applicable for
328
339
/// this profile type.
329
340
#[ prost( int32, optional, tag = "1" ) ]
@@ -351,7 +362,7 @@ pub struct Location {
351
362
/// profile changes.
352
363
#[ prost( bool , tag = "4" ) ]
353
364
pub is_folded : bool ,
354
- /// References to attributes in ProfilesData .attribute_table. \[optional\]
365
+ /// References to attributes in ProfilesDictionary .attribute_table. \[optional\]
355
366
#[ prost( int32, repeated, tag = "5" ) ]
356
367
pub attribute_indices : :: prost:: alloc:: vec:: Vec < i32 > ,
357
368
}
@@ -361,7 +372,7 @@ pub struct Location {
361
372
#[ cfg_attr( feature = "with-serde" , serde( rename_all = "camelCase" ) ) ]
362
373
#[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
363
374
pub struct Line {
364
- /// Reference to function in ProfilesData .function_table.
375
+ /// Reference to function in ProfilesDictionary .function_table.
365
376
#[ prost( int32, tag = "1" ) ]
366
377
pub function_index : i32 ,
367
378
/// Line number in source code. 0 means unset.
0 commit comments