Skip to content

Commit 7b3db0b

Browse files
authored
chore: Bump otel-proto v1.7.0 (#3018)
1 parent 082213e commit 7b3db0b

File tree

3 files changed

+48
-35
lines changed

3 files changed

+48
-35
lines changed

opentelemetry-proto/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## vNext
44

5+
- Update proto definitions to v1.7.0.
6+
57
## 0.30.0
68

79
Released 2025-May-23

opentelemetry-proto/src/proto/tonic/opentelemetry.proto.profiles.v1development.rs

Lines changed: 45 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
11
// 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+
}
233
/// ProfilesData represents the profiles data that can be stored in persistent storage,
334
/// OR can be embedded by other protocols that transfer OTLP profiles data but do not
435
/// implement the OTLP protocol.
@@ -23,29 +54,9 @@ pub struct ProfilesData {
2354
/// Resource.attributes and semantic conventions.
2455
#[prost(message, repeated, tag = "1")]
2556
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>,
4960
}
5061
/// A collection of ScopeProfiles from a Resource.
5162
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
@@ -116,7 +127,7 @@ pub struct Profile {
116127
/// The set of samples recorded in this profile.
117128
#[prost(message, repeated, tag = "2")]
118129
pub sample: ::prost::alloc::vec::Vec<Sample>,
119-
/// References to locations in ProfilesData.location_table.
130+
/// References to locations in ProfilesDictionary.location_table.
120131
#[prost(int32, repeated, tag = "3")]
121132
pub location_indices: ::prost::alloc::vec::Vec<i32>,
122133
/// Time of collection (UTC) represented as nanoseconds past the epoch.
@@ -145,7 +156,7 @@ pub struct Profile {
145156
/// for human-friendly content. The profile must stay functional if this field
146157
/// is cleaned.
147158
///
148-
/// Indices into ProfilesData.string_table.
159+
/// Indices into ProfilesDictionary.string_table.
149160
#[prost(int32, repeated, tag = "8")]
150161
pub comment_strindices: ::prost::alloc::vec::Vec<i32>,
151162
/// Index into the sample_type array to the default sample type.
@@ -230,10 +241,10 @@ pub struct Link {
230241
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
231242
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
232243
pub struct ValueType {
233-
/// Index into ProfilesData.string_table.
244+
/// Index into ProfilesDictionary.string_table.
234245
#[prost(int32, tag = "1")]
235246
pub type_strindex: i32,
236-
/// Index into ProfilesData.string_table.
247+
/// Index into ProfilesDictionary.string_table.
237248
#[prost(int32, tag = "2")]
238249
pub unit_strindex: i32,
239250
#[prost(enumeration = "AggregationTemporality", tag = "3")]
@@ -263,10 +274,10 @@ pub struct Sample {
263274
/// lists of the originals.
264275
#[prost(int64, repeated, tag = "3")]
265276
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\]
267278
#[prost(int32, repeated, tag = "4")]
268279
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\]
270281
#[prost(int32, optional, tag = "5")]
271282
pub link_index: ::core::option::Option<i32>,
272283
/// Timestamps associated with Sample represented in nanoseconds. These timestamps are expected
@@ -301,10 +312,10 @@ pub struct Mapping {
301312
/// disk for the main binary and shared libraries, or virtual
302313
/// abstractions like "\[vdso\]".
303314
///
304-
/// Index into ProfilesData.string_table.
315+
/// Index into ProfilesDictionary.string_table.
305316
#[prost(int32, tag = "4")]
306317
pub filename_strindex: i32,
307-
/// References to attributes in ProfilesData.attribute_table. \[optional\]
318+
/// References to attributes in ProfilesDictionary.attribute_table. \[optional\]
308319
#[prost(int32, repeated, tag = "5")]
309320
pub attribute_indices: ::prost::alloc::vec::Vec<i32>,
310321
/// The following fields indicate the resolution of symbolic info.
@@ -323,7 +334,7 @@ pub struct Mapping {
323334
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
324335
#[derive(Clone, PartialEq, ::prost::Message)]
325336
pub struct Location {
326-
/// Reference to mapping in ProfilesData.mapping_table.
337+
/// Reference to mapping in ProfilesDictionary.mapping_table.
327338
/// It can be unset if the mapping is unknown or not applicable for
328339
/// this profile type.
329340
#[prost(int32, optional, tag = "1")]
@@ -351,7 +362,7 @@ pub struct Location {
351362
/// profile changes.
352363
#[prost(bool, tag = "4")]
353364
pub is_folded: bool,
354-
/// References to attributes in ProfilesData.attribute_table. \[optional\]
365+
/// References to attributes in ProfilesDictionary.attribute_table. \[optional\]
355366
#[prost(int32, repeated, tag = "5")]
356367
pub attribute_indices: ::prost::alloc::vec::Vec<i32>,
357368
}
@@ -361,7 +372,7 @@ pub struct Location {
361372
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
362373
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
363374
pub struct Line {
364-
/// Reference to function in ProfilesData.function_table.
375+
/// Reference to function in ProfilesDictionary.function_table.
365376
#[prost(int32, tag = "1")]
366377
pub function_index: i32,
367378
/// Line number in source code. 0 means unset.

0 commit comments

Comments
 (0)