Skip to content

Commit fd7d2b9

Browse files
committed
update proto version
1 parent d0ef365 commit fd7d2b9

File tree

4 files changed

+30
-10
lines changed

4 files changed

+30
-10
lines changed

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

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ pub struct ResourceLogs {
3737
#[prost(message, repeated, tag = "2")]
3838
pub scope_logs: ::prost::alloc::vec::Vec<ScopeLogs>,
3939
/// The Schema URL, if known. This is the identifier of the Schema that the resource data
40-
/// is recorded in. To learn more about Schema URL see
40+
/// is recorded in. Notably, the last part of the URL path is the version number of the
41+
/// schema: http\[s\]://server\[:port\]/path/<version>. To learn more about Schema URL see
4142
/// <https://opentelemetry.io/docs/specs/otel/schemas/#schema-url>
4243
/// This schema_url applies to the data in the "resource" field. It does not apply
4344
/// to the data in the "scope_logs" field which have their own schema_url field.
@@ -60,7 +61,8 @@ pub struct ScopeLogs {
6061
#[prost(message, repeated, tag = "2")]
6162
pub log_records: ::prost::alloc::vec::Vec<LogRecord>,
6263
/// The Schema URL, if known. This is the identifier of the Schema that the log data
63-
/// is recorded in. To learn more about Schema URL see
64+
/// is recorded in. Notably, the last part of the URL path is the version number of the
65+
/// schema: http\[s\]://server\[:port\]/path/<version>. To learn more about Schema URL see
6466
/// <https://opentelemetry.io/docs/specs/otel/schemas/#schema-url>
6567
/// This schema_url applies to all logs in the "logs" field.
6668
#[prost(string, tag = "3")]
@@ -178,6 +180,20 @@ pub struct LogRecord {
178180
)
179181
)]
180182
pub span_id: ::prost::alloc::vec::Vec<u8>,
183+
/// A unique identifier of event category/type.
184+
/// All events with the same event_name are expected to conform to the same
185+
/// schema for both their attributes and their body.
186+
///
187+
/// Recommended to be fully qualified and short (no longer than 256 characters).
188+
///
189+
/// Presence of event_name on the log record identifies this record
190+
/// as an event.
191+
///
192+
/// \[Optional\].
193+
///
194+
/// Status: \[Development\]
195+
#[prost(string, tag = "12")]
196+
pub event_name: ::prost::alloc::string::String,
181197
}
182198
/// Possible values for LogRecord.SeverityNumber.
183199
#[cfg_attr(feature = "with-schemars", derive(schemars::JsonSchema))]

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ pub struct ResourceMetrics {
5555
#[prost(message, repeated, tag = "2")]
5656
pub scope_metrics: ::prost::alloc::vec::Vec<ScopeMetrics>,
5757
/// The Schema URL, if known. This is the identifier of the Schema that the resource data
58-
/// is recorded in. To learn more about Schema URL see
58+
/// is recorded in. Notably, the last part of the URL path is the version number of the
59+
/// schema: http\[s\]://server\[:port\]/path/<version>. To learn more about Schema URL see
5960
/// <https://opentelemetry.io/docs/specs/otel/schemas/#schema-url>
6061
/// This schema_url applies to the data in the "resource" field. It does not apply
6162
/// to the data in the "scope_metrics" field which have their own schema_url field.
@@ -78,7 +79,8 @@ pub struct ScopeMetrics {
7879
#[prost(message, repeated, tag = "2")]
7980
pub metrics: ::prost::alloc::vec::Vec<Metric>,
8081
/// The Schema URL, if known. This is the identifier of the Schema that the metric data
81-
/// is recorded in. To learn more about Schema URL see
82+
/// is recorded in. Notably, the last part of the URL path is the version number of the
83+
/// schema: http\[s\]://server\[:port\]/path/<version>. To learn more about Schema URL see
8284
/// <https://opentelemetry.io/docs/specs/otel/schemas/#schema-url>
8385
/// This schema_url applies to all metrics in the "metrics" field.
8486
#[prost(string, tag = "3")]
@@ -437,7 +439,7 @@ pub struct HistogramDataPoint {
437439
/// events, and is assumed to be monotonic over the values of these events.
438440
/// Negative events *can* be recorded, but sum should not be filled out when
439441
/// doing so. This is specifically to enforce compatibility w/ OpenMetrics,
440-
/// see: <https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram>
442+
/// see: <https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram>
441443
#[prost(double, optional, tag = "5")]
442444
pub sum: ::core::option::Option<f64>,
443445
/// bucket_counts is an optional field contains the count values of histogram
@@ -520,7 +522,7 @@ pub struct ExponentialHistogramDataPoint {
520522
/// events, and is assumed to be monotonic over the values of these events.
521523
/// Negative events *can* be recorded, but sum should not be filled out when
522524
/// doing so. This is specifically to enforce compatibility w/ OpenMetrics,
523-
/// see: <https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#histogram>
525+
/// see: <https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#histogram>
524526
#[prost(double, optional, tag = "5")]
525527
pub sum: ::core::option::Option<f64>,
526528
/// scale describes the resolution of the histogram. Boundaries are
@@ -643,7 +645,7 @@ pub struct SummaryDataPoint {
643645
/// events, and is assumed to be monotonic over the values of these events.
644646
/// Negative events *can* be recorded, but sum should not be filled out when
645647
/// doing so. This is specifically to enforce compatibility w/ OpenMetrics,
646-
/// see: <https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#summary>
648+
/// see: <https://github.com/prometheus/OpenMetrics/blob/v1.0.0/specification/OpenMetrics.md#summary>
647649
#[prost(double, tag = "5")]
648650
pub sum: f64,
649651
/// (Optional) list of values at different quantiles of the distribution calculated

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ pub struct ResourceSpans {
3737
#[prost(message, repeated, tag = "2")]
3838
pub scope_spans: ::prost::alloc::vec::Vec<ScopeSpans>,
3939
/// The Schema URL, if known. This is the identifier of the Schema that the resource data
40-
/// is recorded in. To learn more about Schema URL see
40+
/// is recorded in. Notably, the last part of the URL path is the version number of the
41+
/// schema: http\[s\]://server\[:port\]/path/<version>. To learn more about Schema URL see
4142
/// <https://opentelemetry.io/docs/specs/otel/schemas/#schema-url>
4243
/// This schema_url applies to the data in the "resource" field. It does not apply
4344
/// to the data in the "scope_spans" field which have their own schema_url field.
@@ -60,7 +61,8 @@ pub struct ScopeSpans {
6061
#[prost(message, repeated, tag = "2")]
6162
pub spans: ::prost::alloc::vec::Vec<Span>,
6263
/// The Schema URL, if known. This is the identifier of the Schema that the span data
63-
/// is recorded in. To learn more about Schema URL see
64+
/// is recorded in. Notably, the last part of the URL path is the version number of the
65+
/// schema: http\[s\]://server\[:port\]/path/<version>. To learn more about Schema URL see
6466
/// <https://opentelemetry.io/docs/specs/otel/schemas/#schema-url>
6567
/// This schema_url applies to all spans and span events in the "spans" field.
6668
#[prost(string, tag = "3")]

0 commit comments

Comments
 (0)