Skip to content

Release 1.5.0

Latest

Choose a tag to compare

@brettmc brettmc released this 05 Nov 12:01
· 2 commits to main since this release

Breaking changes

  • Requires PHP 8.2 (#2091) and open-telemetry/sdk 1.16 (#2095).
  • Requires open-telemetry/gen-otlp-protobuf 1.11.1, which requires google/protobuf 4.31.
    ext-protobuf, if installed, must also be 4.31. The exporters throw a RuntimeException on
    construction if it is older. JSON export encodes enums with
    PrintOptions::ALWAYS_PRINT_ENUMS_AS_INTS, and the fallback for older versions is removed
    (#2110).

Added

  • OTEL_EXPORTER_OTLP_[SIGNAL_]CERTIFICATE, OTEL_EXPORTER_OTLP_[SIGNAL_]CLIENT_CERTIFICATE and
    OTEL_EXPORTER_OTLP_[SIGNAL_]CLIENT_KEY are passed to the transport (#2059).
  • OTEL_EXPORTER_OTLP_[SIGNAL_]INSECURE. A gRPC endpoint without a scheme uses https, or
    http when this is true (#2059).
  • MetricExporter accepts an AggregationTemporalitySelectorInterface (#2095).

Changed

  • The User-Agent header is OTel-OTLP-Exporter-PHP/<version>, as the spec says (#2092).
  • Histogram data points without min and max, such as from record_min_max: false, are exported
    without them (#2093).

Deprecated

  • A gRPC endpoint with a path. It is used as is, with a deprecation warning, and will become an
    error (#2059).

Fixed

  • With grpc and no endpoint set, the exporter used the HTTP default http://localhost:4318. It
    uses http://localhost:4317 (#2059).
  • A signal-specific gRPC endpoint, such as OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, was used without
    the gRPC method (#2059).
  • A trailing / on a gRPC endpoint was read as a path (#2095).
  • OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is applied per instrument kind. delta made
    up-down counters delta too (#2095).
  • A configured User-Agent was sent beside the default one when its case differed. Header names
    merge case-insensitively, and a configured header wins (#2095).
  • Declarative config headers_list values are percent-decoded, as OTEL_EXPORTER_OTLP_HEADERS
    values are (#2095).

Full Changelog: 1.4.0...1.5.0