Skip to content

Commit b70771a

Browse files
authored
chore: bump otel-proto to v1.8.0 (#3156)
1 parent 7660a35 commit b70771a

13 files changed

+382
-288
lines changed

opentelemetry-proto/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## vNext
44

5-
- Update proto definitions to v1.7.0.
5+
- Update proto definitions to v1.8.0.
66
- Added Rust generated protos for profiles collector. [#3077](https://github.com/open-telemetry/opentelemetry-rust/pull/3077)
77
- **Breaking change**: package opentelemetry_proto::tonic::profiles::v1 renamed to opentelemetry_proto::tonic::profiles::v1development. [#3077](https://github.com/open-telemetry/opentelemetry-rust/pull/3077)
88
- Update `tonic` dependency version to 0.14.1

opentelemetry-proto/src/proto/tonic/opentelemetry.proto.collector.logs.v1.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct ExportLogsServiceRequest {
1717
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
1818
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
1919
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
20-
#[derive(Clone, PartialEq, ::prost::Message)]
20+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2121
pub struct ExportLogsServiceResponse {
2222
/// The details of a partially successful export request.
2323
///
@@ -31,7 +31,7 @@ pub struct ExportLogsServiceResponse {
3131
/// In such cases, the `rejected_<signal>` MUST have a value of `0` and
3232
/// the `error_message` MUST be non-empty.
3333
///
34-
/// A `partial_success` message with an empty value (rejected_<signal> = 0 and
34+
/// A `partial_success` message with an empty value (rejected\_<signal> = 0 and
3535
/// `error_message` = "") is equivalent to it not being set/present. Senders
3636
/// SHOULD interpret it the same way as in the full success case.
3737
#[prost(message, optional, tag = "1")]
@@ -40,7 +40,7 @@ pub struct ExportLogsServiceResponse {
4040
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
4141
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
4242
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
43-
#[derive(Clone, PartialEq, ::prost::Message)]
43+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4444
pub struct ExportLogsPartialSuccess {
4545
/// The number of rejected log records.
4646
///

opentelemetry-proto/src/proto/tonic/opentelemetry.proto.collector.metrics.v1.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct ExportMetricsServiceRequest {
1717
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
1818
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
1919
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
20-
#[derive(Clone, PartialEq, ::prost::Message)]
20+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2121
pub struct ExportMetricsServiceResponse {
2222
/// The details of a partially successful export request.
2323
///
@@ -31,7 +31,7 @@ pub struct ExportMetricsServiceResponse {
3131
/// In such cases, the `rejected_<signal>` MUST have a value of `0` and
3232
/// the `error_message` MUST be non-empty.
3333
///
34-
/// A `partial_success` message with an empty value (rejected_<signal> = 0 and
34+
/// A `partial_success` message with an empty value (rejected\_<signal> = 0 and
3535
/// `error_message` = "") is equivalent to it not being set/present. Senders
3636
/// SHOULD interpret it the same way as in the full success case.
3737
#[prost(message, optional, tag = "1")]
@@ -40,7 +40,7 @@ pub struct ExportMetricsServiceResponse {
4040
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
4141
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
4242
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
43-
#[derive(Clone, PartialEq, ::prost::Message)]
43+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4444
pub struct ExportMetricsPartialSuccess {
4545
/// The number of rejected data points.
4646
///

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct ExportProfilesServiceRequest {
2222
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
2323
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
2424
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
25-
#[derive(Clone, PartialEq, ::prost::Message)]
25+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2626
pub struct ExportProfilesServiceResponse {
2727
/// The details of a partially successful export request.
2828
///
@@ -36,7 +36,7 @@ pub struct ExportProfilesServiceResponse {
3636
/// In such cases, the `rejected_<signal>` MUST have a value of `0` and
3737
/// the `error_message` MUST be non-empty.
3838
///
39-
/// A `partial_success` message with an empty value (rejected_<signal> = 0 and
39+
/// A `partial_success` message with an empty value (rejected\_<signal> = 0 and
4040
/// `error_message` = "") is equivalent to it not being set/present. Senders
4141
/// SHOULD interpret it the same way as in the full success case.
4242
#[prost(message, optional, tag = "1")]
@@ -45,7 +45,7 @@ pub struct ExportProfilesServiceResponse {
4545
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
4646
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
4747
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
48-
#[derive(Clone, PartialEq, ::prost::Message)]
48+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4949
pub struct ExportProfilesPartialSuccess {
5050
/// The number of rejected profiles.
5151
///

opentelemetry-proto/src/proto/tonic/opentelemetry.proto.collector.trace.v1.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct ExportTraceServiceRequest {
1717
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
1818
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
1919
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
20-
#[derive(Clone, PartialEq, ::prost::Message)]
20+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
2121
pub struct ExportTraceServiceResponse {
2222
/// The details of a partially successful export request.
2323
///
@@ -31,7 +31,7 @@ pub struct ExportTraceServiceResponse {
3131
/// In such cases, the `rejected_<signal>` MUST have a value of `0` and
3232
/// the `error_message` MUST be non-empty.
3333
///
34-
/// A `partial_success` message with an empty value (rejected_<signal> = 0 and
34+
/// A `partial_success` message with an empty value (rejected\_<signal> = 0 and
3535
/// `error_message` = "") is equivalent to it not being set/present. Senders
3636
/// SHOULD interpret it the same way as in the full success case.
3737
#[prost(message, optional, tag = "1")]
@@ -40,7 +40,7 @@ pub struct ExportTraceServiceResponse {
4040
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
4141
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
4242
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
43-
#[derive(Clone, PartialEq, ::prost::Message)]
43+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
4444
pub struct ExportTracePartialSuccess {
4545
/// The number of rejected spans.
4646
///

opentelemetry-proto/src/proto/tonic/opentelemetry.proto.common.v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pub struct InstrumentationScope {
113113
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
114114
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
115115
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]
116-
#[derive(Clone, PartialEq, ::prost::Message)]
116+
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
117117
pub struct EntityRef {
118118
/// The Schema URL, if known. This is the identifier of the Schema that the entity data
119119
/// is recorded in. To learn more about Schema URL see

opentelemetry-proto/src/proto/tonic/opentelemetry.proto.logs.v1.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ pub struct LogRecord {
9999
/// For converting OpenTelemetry log data to formats that support only one timestamp or
100100
/// when receiving OpenTelemetry log data by recipients that support only one timestamp
101101
/// internally the following logic is recommended:
102-
/// - Use time_unix_nano if it is present, otherwise use observed_time_unix_nano.
102+
///
103+
/// * Use time_unix_nano if it is present, otherwise use observed_time_unix_nano.
103104
///
104105
/// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
105106
/// Value of 0 indicates unknown or missing timestamp.
@@ -148,8 +149,9 @@ pub struct LogRecord {
148149
///
149150
/// The receivers SHOULD assume that the log record is not associated with a
150151
/// trace if any of the following is true:
151-
/// - the field is not present,
152-
/// - the field contains an invalid value.
152+
///
153+
/// * the field is not present,
154+
/// * the field contains an invalid value.
153155
#[prost(bytes = "vec", tag = "9")]
154156
#[cfg_attr(
155157
feature = "with-serde",
@@ -169,8 +171,9 @@ pub struct LogRecord {
169171
///
170172
/// The receivers SHOULD assume that the log record is not associated with a
171173
/// span if any of the following is true:
172-
/// - the field is not present,
173-
/// - the field contains an invalid value.
174+
///
175+
/// * the field is not present,
176+
/// * the field contains an invalid value.
174177
#[prost(bytes = "vec", tag = "10")]
175178
#[cfg_attr(
176179
feature = "with-serde",
@@ -299,8 +302,7 @@ impl SeverityNumber {
299302
/// a bit-mask. To extract the bit-field, for example, use an
300303
/// expression like:
301304
///
302-
/// (logRecord.flags & LOG_RECORD_FLAGS_TRACE_FLAGS_MASK)
303-
///
305+
/// (logRecord.flags & LOG_RECORD_FLAGS_TRACE_FLAGS_MASK)
304306
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]
305307
#[cfg_attr(feature = "with-serde", derive(serde::Serialize, serde::Deserialize))]
306308
#[cfg_attr(feature = "with-serde", serde(rename_all = "camelCase"))]

0 commit comments

Comments
 (0)