Protobuf definitions for the OpenTelemetry protocol (OTLP) (grpc依赖)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 KiB

Changelog

Unreleased

The full list of changes can be found in the compare view for the respective release at https://github.com/open-telemetry/opentelemetry-proto/releases.

1.3.2 - 2024-06-28

Changed

  • profiles: add missing java_package option to pprofextended. #558

1.3.1 - 2024-05-07

Changed

  • profiles: fix versioning in selector. #551

1.3.0 - 2024-04-24

Added

  • Add new profile signal. #534

1.2.0 - 2024-03-29

Added

  • Indicate if a Span's parent or link is remote using 2 bit flag. #484
  • Add metric.metadata for supporting additional metadata on metrics #514
  • Add example of an Event #538

Changed

1.1.0 - 2024-01-10

Full list of differences found in this compare.

Added

  • Add flags field to Span and Span/Link for W3C-specified Trace Context flags. #503

Changed

  • Update and fix OTLP JSON examples. #516, #510, #499
  • Remove irrelevant comments from metric name field. #512
  • Add comment to explain schema_url fields. #504

1.0.0 - 2023-07-03

Full list of differences found in this compare.

Maturity

  • Add note about the possibility to have unstable components after 1.0.0 #489
  • Add maturity JSON entry per package #490

0.20.0 - 2023-06-06

Full list of differences found in this compare.

Maturity

  • Declare OTLP/JSON Stable. #436 #435
  • Provide stronger symbolic stability guarantees. #432
  • Clarify how additive changes are handled. #455

Changed

  • Change the exponential histogram boundary condition. #409
  • Clarify behavior for empty/not present/invalid trace_id and span_id fields. #442
  • Change the collector trace endpoint to /v1/traces. #449

Added

  • Introduce zero_threshold field to ExponentialHistogramDataPoint. #441 #453

Removed

  • Delete requirement to generate new trace/span id if an invalid id is received. #444

0.19.0 - 2022-08-03

Full list of differences found in this compare.

Changed

  • Add csharp_namespace option to protos. (#399)
  • Fix some out-of-date urls which link to specification. (#402)
  • 🛑 [BREAKING] Delete deprecated InstrumentationLibrary, InstrumentationLibraryLogs, InstrumentationLibrarySpans and InstrumentationLibraryMetrics messages. Delete deprecated instrumentation_library_logs, instrumentation_library_spans and instrumentation_library_metrics fields.

Added

  • Introduce Scope Attributes. #395
  • Introduce partial success fields in Export<signal>ServiceResponse. #414

0.18.0 - 2022-05-17

Full list of differences found in this compare.

Changed

  • Declare logs Stable. (#376)
  • Metrics ExponentialHistogramDataPoint makes the sum optional (follows the same change in HistogramDataPOint in 0.15). #392

0.17.0 - 2022-05-06

Full list of differences found in this compare.

Changed

  • Introduce optional min and max fields to the Histogram and ExponentialHistogram data points. (#279)

0.16.0 - 2022-03-31

Full list of differences found in this compare.

Removed

  • Remove deprecated LogRecord.Name field (#373).

0.15.0 - 2022-03-19

Full list of differences found in this compare.

Changed

  • Rename InstrumentationLibrary to InstrumentationScope (#362)

Added

  • Use optional for sum field to mark presence (#366)

0.14.0 - 2022-03-08

Full list of differences found in this compare.

Removed

  • Deprecate LogRecord.Name field (#357)

0.13.0 - 2022-02-10

Full list of differences found in this compare.

Changed

  • Swagger generation updated to openapiv2 due to the use of an updated version of protoc in otel/build-protobuf
  • Clarify attribute key uniqueness requirement (#350)
  • Fix path to Go packages (#360)

Added

  • Add ObservedTimestamp to LogRecord. (#351)
  • Add native kotlin support (#337)

Removed

  • Remove unused deprecated message StringKeyValue (#358)
  • Remove experimental metrics config service (#359)

0.12.0 - 2022-01-19

Full list of differences found in this compare.

Changed

  • Rename logs to log_records in InstrumentationLibraryLogs. (#352)

Removed

  • Remove deprecated messages and fields from traces. (#341)
  • Remove deprecated messages and fields from metrics. (#342)

0.11.0 - 2021-10-07

Full list of differences found in this compare.

Added

  • ExponentialHistogram is a base-2 exponential histogram described in OTEP 149. (#322)
  • Adds TracesData, MetricsData, and LogsData container types for common use in transporting multiple ResourceSpans, ResourceMetrics, and ResourceLogs. (#332)

0.10.0 - 2021-09-07

Full list of differences found in this compare.

Maturity

  • collector/logs/* is now considered Beta. (#311)
  • logs/* is now considered Beta. (#311)

Added

  • Metrics data points add a flags field with one bit to represent explicitly missing data. (#316)

0.9.0 - 2021-04-12

Full list of differences found in this compare.

Maturity

  • collector/metrics/* is now considered stable. (#305)

Changed: Metrics

  • 🛑 [DATA MODEL CHANGE] Histogram/Summary sums must be monotonic counters of events (#302)
  • 🛑 [DATA MODEL CHANGE] Clarify requirements and semantics for start time (#295)
  • 🛑 [BREAKING] Deprecate labels field from NumberDataPoint, HistogramDataPoint, SummaryDataPoint and add equivalent attributes field (#283)
  • 🛑 [BREAKING] Deprecate filtered_labels field from Exemplars and add equivalent filtered_attributes field (#283)

Added

  • Common - Add bytes (binary) as data type to AnyValue (#297)
  • Common - Add schema_url fields as described in OTEP 0152 (#298)

Removed

  • Remove if no changes for this section before release.

0.8.0 - 2021-03-23

Full list of differences found in this compare.

Historical breaking change notice

Release 0.8 was the last in the line of releases marked as "unstable". This release broke compatibility in more ways than were recognized and documented at the time of its release. In particular, #278 created the NumberDataPoint type and used it in several locations in place of the former DoubleDataPoint. The new oneof in NumberDataPoint re-used the former DoubleDataPoint tag number, which means that pre-0.8 DoubleSum and DoubleGauge points would parse correctly as a 0.8 Sum and Gauge points containing double-valued numbers.

However, by virtue of a syntax = "proto3" declaration, the protocol compiler for all versions of OTLP have not included field presence, which means 0 values are not serialized. The result is that valid OTLP 0.7 DoubleSum and DoubleGauge points would not parse correctly as OTLP 0.8 data. Instead, they parse as NumberDataPoint with a missing value in the oneof field.

Changed: Metrics

  • 🛑 [DEPRECATION] Deprecate IntSum, IntGauge, and IntDataPoint (#278)
  • 🛑 [DEPRECATION] Deprecate IntExemplar (#281)
  • 🛑 [DEPRECATION] Deprecate IntHistogram (#270)
  • 🛑 [BREAKING] Rename DoubleGauge to Gauge (#278)
  • 🛑 [BREAKING] Rename DoubleSum to Sum (#278)
  • 🛑 [BREAKING] Rename DoubleDataPoint to NumberDataPoint (#278)
  • 🛑 [BREAKING] Rename DoubleSummary to Summary (#269)
  • 🛑 [BREAKING] Rename DoubleExemplar to Exemplar (#281)
  • 🛑 [BREAKING] Rename DoubleHistogram to Histogram (#270)
  • 🛑 [DATA MODEL CHANGE] Make explicit bounds compatible with OM/Prometheus (#262)

0.7.0 - 2021-01-28

Full list of differences found in this compare.

Maturity

$$$Protobuf Encodings:**

  • collector/metrics/* is now considered Beta. (#223)
  • collector/logs/* is now considered Alpha. (#228)
  • logs/* is now considered Alpha. (#228)
  • metrics/* is now considered Beta. (#223)

Changed

  • Common/Logs/Metrics/Traces - Clarify empty instrumentation (#245)

Added

  • Metrics - Add SummaryDataPoint support to Metrics proto (#227)

0.6.0 - 2020-10-28

Full list of differences found in this compare.

Maturity

  • Clarify maturity guarantees (#225)

Changed

  • Traces - Deprecated old Span status code and added a new status code according to specification (#224) ** Marked for removal 2021-10-22 given Stability Guarantees.
  • Rename ProbabilitySampler to TraceIdRatioBased (#221)

0.5.0 - 2020-08-31

Full list of differences found in this compare.

Maturity Changes

Protobuf Encodings:

  • collector/trace/* is now Stable.
  • common/* is now Stable.
  • resource/* is now Stable.
  • trace/trace.proto is now Stable. (#160)

JSON Encodings:

  • All messages are now Alpha.

Changed

  • 🛑 [BREAKING] Metrics - protocol was refactored, and lots of breaking changes.
    • Removed MetricDescriptor and embedded into Metric and the new data types.
    • Add new data types Gauge/Sum/Histogram.
    • Make use of the "AggregationTemporality" into the data types that allow that support.
  • Rename enum values to follow the proto3 style guide.

Added

  • Enable build to use docker image otel/build-protobuf to be used in CI. ** Can also be used by the languages to generate protos.

Removed

  • 🛑 [BREAKING] Remove generated golang structs from the repository

Errata

The following was announced in the release, but has not yet been considered stable. Please see the latest README.md for actual status.

This is a Release Candidate to declare Metrics part of the protocol Stable.

0.4.0 - 2020-06-23

Full list of differences found in this compare.

Changed

  • Metrics - Add temporality to MetricDescriptor (#140).

Added

  • Metrics - Add Monotonic Types (#145)
  • Common/Traces - Added support for arrays and maps for attribute values (AnyValue) (#157).

Removed

  • 🛑 [BREAKING] Metrics - Removed common labels from MetricDescriptor (#144).

Errata

The following was announced in the release, but this was not considered Stable until v0.5.0

This is a Release Candidate to declare Traces part of the protocol Stable.

0.3.0 - 2020-03-23

  • Initial protos for trace, metrics, resource and OTLP.