github open-telemetry/opentelemetry-go v1.48.0
v1.48.0/v0.70.0/v0.24.0/v0.1.1

one hour ago

This release contains the first stable release of the OpenTelemetry Go stdout log exporter.
Our project stability guarantees now apply to the go.opentelemetry.io/otel/exporters/stdout/stdoutlog module.
See our versioning policy for more information about these stability guarantees.

Added

  • Add go.opentelemetry.io/otel/semconv/v1.45.0 and its metric convenience subpackages from OpenTelemetry Semantic Conventions v1.45.0.
    See the migration documentation for upgrading from go.opentelemetry.io/otel/semconv/v1.44.0. (#9484)
  • Add experimental WithFinish support for Int64UpDownCounter and Float64UpDownCounter Sum aggregation in go.opentelemetry.io/otel/sdk/metric/x. (#9251)
  • Add experimental WithFinish support for Int64Gauge and Float64Gauge LastValue aggregation in go.opentelemetry.io/otel/sdk/metric/x.
    Ignore delayed Finish calls that predate the resolved series lifetime. (#9252)
  • Support the OTEL_METRIC_EXPORT_MAX_BATCH_SIZE environment variable in NewPeriodicReader in go.opentelemetry.io/otel/sdk/metric. The WithMaxExportBatchSize option takes precedence. (#9316)
  • Add go.opentelemetry.io/otel/semconv/v1.44.0 package. The package contains semantic conventions from the v1.44.0 version of the OpenTelemetry Semantic Conventions.
    See the migration documentation for information on how to upgrade from go.opentelemetry.io/otel/semconv/v1.43.0. (#9265)
  • Generate floating-point instruments for metrics that record fractional values in go.opentelemetry.io/otel/semconv/v1.44.0 and let caller-supplied histogram options override the recommended boundaries without mutating the option slice. (#9332)
  • Implement per-series start timestamps for cumulative asynchronous instruments when OTEL_GO_X_PER_SERIES_START_TIMESTAMPS=true is set in go.opentelemetry.io/otel/sdk/metric. (#9311)
  • Add experimental WithOptIn instrument option in go.opentelemetry.io/otel/metric/x and experimental View Enabled configuration (Stream, View, NewView, and WithView) in go.opentelemetry.io/otel/sdk/metric/x. (#9298)
  • Add experimental WithFinish support for Float64Counter Sum aggregation in go.opentelemetry.io/otel/sdk/metric/x. (#9186)
  • Add experimental WithFinish support for Int64Counter Sum aggregation,
    including cancellable provider shutdown and parked waits for in-flight measurements,
    in go.opentelemetry.io/otel/sdk/metric/x. (#8962)
  • Add experimental support for enabling/disabling Meters per instrumentation scope via MeterConfigurator, MeterConfig, and MeterConfiguratorHandle in go.opentelemetry.io/otel/sdk/metric/x. Configuration is set at MeterProvider construction via WithMeterConfigurator and can be updated live through MeterConfiguratorHandle.Set. This gates recording (Add/Record/Observe) only. MeterProviders without it are unaffected. (#8743)
  • Add WithViewMatchingMode and ViewMatchingMode in go.opentelemetry.io/otel/sdk/metric/x to support composable view matching. (#8510)

Changed

  • Move go.opentelemetry.io/otel/log/global from the Logs API to a deprecated compatibility module with a single planned release, v1.48.0.
    To keep using the existing import, run go mod tidy after upgrading the Logs API to record the compatibility module and its checksums.
    To migrate, use Logger, GetLoggerProvider, and SetLoggerProvider from go.opentelemetry.io/otel. (#9639)
  • Adopt OpenTelemetry Semantic Conventions v1.45.0 across SDK components and exporters, including the schema URL reported by resource detectors and SDK metric instrumentation scopes. (#9492)
  • Use one unbounded histogram bucket by default for the experimental otel.sdk.exporter.operation.duration and otel.sdk.metric_reader.collection.duration metrics. This preserves count and sum. Configure a View with explicit aggregation to collect a bucket distribution. (#9492)
  • Rename rpc.response.status_code to rpc.status_code in experimental self-observability metrics emitted by
    go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc,
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, and
    go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc. (#9492)
  • Stabilize the go.opentelemetry.io/otel/exporters/stdout/stdoutlog module.
    The exporter's output format may still change, as documented in the package documentation. (#9472)
  • ErrorType in go.opentelemetry.io/otel/semconv/v1.44.0 now unwraps single-error errors.Join wrappers when deriving the error.type attribute. (#9466)
  • go.opentelemetry.io/otel/sdk/log now unwraps single-error errors.Join wrappers when deriving the exception.type attribute from errors on log records. (#9466)
  • Clarify in go.opentelemetry.io/otel/exporters/stdout/stdouttrace that the exporter is intended for testing and debugging and its output format has no stability or compatibility guarantees. (#9473)
  • Document the concurrency guarantees of the Exporter in go.opentelemetry.io/otel/exporters/stdout/stdoutlog. (#9444)
  • Clarify the security-related versioning exception by linking to the OpenTelemetry client specification. (#9436)
  • Emit attributes using the OpenTelemetry representation for non-OTLP protocols in go.opentelemetry.io/otel/exporters/stdout/stdouttrace. (#9307)
  • Emit attributes using the OpenTelemetry representation for non-OTLP protocols in go.opentelemetry.io/otel/exporters/stdout/stdoutmetric.
    The default JSON encoder rejects unsupported aggregation types with an explicit error. (#9308)
  • Support custom encoders implementing SetIndent with WithPrettyPrint in go.opentelemetry.io/otel/exporters/stdout/stdoutmetric. (#9308)
  • Emit log bodies and attributes using the OpenTelemetry representation for non-OTLP protocols in go.opentelemetry.io/otel/exporters/stdout/stdoutlog. (#9150)
  • Reduce scrape allocations in go.opentelemetry.io/otel/exporters/prometheus by reusing label data and descriptors within each scrape. (#9248, #9325, #9337)
  • Improve performance of exponential histogram measurements in go.opentelemetry.io/otel/sdk/metric. (#9277, #9481)
  • Improve the performance of sum, last-value, and explicit-bucket histogram measurements immediately after collection in go.opentelemetry.io/otel/sdk/metric for delta temporality by lazily clearing storage. (#8276)
  • Document a compatibility regression introduced in go.opentelemetry.io/otel v1.47.0 that breaks compilation with go.opentelemetry.io/otel/bridge/opentracing v1.46.0 and earlier.
    Include instructions for upgrading the bridge to v1.47.0.
    See the bridge version compatibility documentation. (#9209)
  • Document the concurrency guarantees of the Exporter in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc and go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. (#9244)
  • Upgrade github.com/cenkalti/backoff from v5 to v7 in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (#9267)
  • TracerProvider.Shutdown and TracerProvider.UnregisterSpanProcessor in go.opentelemetry.io/otel/sdk/trace now wait for in-flight OnStart, OnEnd, and ForceFlush calls to complete before invoking the processor's Shutdown.
    As a result, they must no longer be called directly or indirectly from a SpanProcessor method, and Shutdown returns ctx.Err() without shutting down any processor if ctx is done while waiting. (#9070)

Deprecated

  • The go.opentelemetry.io/otel/bridge/opentracing module and its opentracing and migration packages are deprecated.
    v1.48.0 is the final planned release of this module.
    Use native OpenTelemetry APIs and SDKs instead; see Migrating from OpenTracing. (#9218)
  • The go.opentelemetry.io/otel/bridge/opencensus module and package are deprecated.
    v1.48.0 is the final planned release of this module.
    Use native OpenTelemetry APIs and SDKs instead; see Migrating from OpenCensus. (#9221)

Fixed

  • ⚠️ Breaking Change: Let an http or https scheme in OTEL_EXPORTER_OTLP_ENDPOINT or the signal-specific endpoint environment variable take precedence over OTEL_EXPORTER_OTLP_INSECURE and the signal-specific insecure environment variable in go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, and go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp. (#9273)
    Previously, OTEL_EXPORTER_OTLP_INSECURE=true made these exporters send plaintext to an https:// endpoint.
    Programmatic options still take precedence over environment variables.
  • Prevent credential exposure in malformed header and endpoint environment-variable diagnostics in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (GHSA-g3pw-h497-xqr9)
  • Redact invalid WithEndpointURL inputs and timeout environment-variable values from diagnostics in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (GHSA-g3pw-h497-xqr9)
  • Redact invalid compression environment-variable values from diagnostics in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp, and invalid insecure environment-variable values from diagnostics in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc and go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. (GHSA-g3pw-h497-xqr9)
  • Redact invalid numeric environment-variable values from log SDK setting diagnostics in go.opentelemetry.io/otel/sdk/log and periodic metric reader duration and maximum export batch size diagnostics in go.opentelemetry.io/otel/sdk/metric. (GHSA-g3pw-h497-xqr9)
  • Redact invalid temporality preference and default histogram aggregation environment-variable values from warnings in go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc and go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp. (GHSA-g3pw-h497-xqr9)
  • Redact invalid integer settings, OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG values from diagnostics in go.opentelemetry.io/otel/sdk/trace, and malformed OTEL_RESOURCE_ATTRIBUTES entries from diagnostics in go.opentelemetry.io/otel/sdk/resource. (GHSA-g3pw-h497-xqr9)
  • Redact invalid WithCompressor values from diagnostics in go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc. (GHSA-g3pw-h497-xqr9)
  • Remove raw endpoint and target strings from observability Debug logs in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (GHSA-g3pw-h497-xqr9)
  • Drop headers with invalid names passed to WithHeaders and report an error that does not include the name in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. The gRPC exporters now also reject header names gRPC metadata does not accept, in both WithHeaders and the environment variables. (GHSA-g3pw-h497-xqr9)
  • Avoid duration overflow when checking RetryConfig.MaxElapsedTime against the selected retry delay in
    go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc,
    go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp,
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc,
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp,
    go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc,
    go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp.
  • Reject a negative or unrepresentable timeout in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc and go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. A negative WithTimeout argument and a negative or overflowing OTEL_EXPORTER_OTLP_*_TIMEOUT value are ignored and reported through the error handler; the default timeout applies only when no other valid timeout is configured. (#9254)
  • Remove the leading v prefix from the self-observability instrumentation scope version in go.opentelemetry.io/otel/exporters/stdout/stdoutlog to match other exporters. (#9689)
  • Preserve percent-encoded surrounding whitespace in environment-configured header values in
    go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc,
    go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp,
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, and
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp. (#9666)
  • Fix the OTLP retry MaxElapsedTime check to include the backoff delay in
    go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc,
    go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp,
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc,
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp,
    go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc,
    and go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp,
    so a retry that cannot fit in the retry budget is abandoned before waiting. (#9632)
  • Export the trace state of span links as Link.trace_state in go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. It was previously dropped. (#9611)
  • Combine multiple tracestate header values via ValuesGetter in TraceContext.Extract in go.opentelemetry.io/otel/propagation. (#9581)
  • Ignore optional whitespace-only list-members when parsing tracestate headers in ParseTraceState in go.opentelemetry.io/otel/trace. (#9582)
  • Percent-encoded whitespace in OTEL_EXPORTER_OTLP_*_HEADERS environment values is now preserved by the convHeaders functions in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc and go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. (#9253)
  • Record otel.sdk.processor.log.processed with error.type="queue_full" synchronously when BatchProcessor.OnEmit drops a log record due to a full queue in go.opentelemetry.io/otel/sdk/log. (#9524)
  • Fix Set.Equivalent and Hasher.Distinct in go.opentelemetry.io/otel/attribute returning the same Distinct for different attributes when adjacent strings or nested slices and maps share a boundary, such as []string{"ab", "c"} and []string{"a", "bc"}.
    This prevented those attribute sets from being kept as separate metric streams in go.opentelemetry.io/otel/sdk/metric. (#9508)
  • Replace go.opentelemetry.io/proto/otlp with go.opentelemetry.io/proto/slim/otlp in
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp and go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, removing the
    google.golang.org/grpc and github.com/grpc-ecosystem/grpc-gateway/v2 dependencies.
    Public exporter APIs and ordinary OTLP payloads remain compatible.
    Applications depending on OTLP protobuf reflection identities or external google.protobuf.Any type URLs should review the
    upstream compatibility notes. (#9499)
  • Use otlp_http_json_span_exporter for otel.component.type and the component name prefix when JSON encoding is configured in go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (#9492)
  • Honor explicitly empty histogram bucket-boundary advice in go.opentelemetry.io/otel/sdk/metric, producing a single bucket while preserving count and sum.
    Calling WithExplicitBucketBoundaries in go.opentelemetry.io/otel/metric with no arguments or a nil slice now explicitly advises a single unbounded bucket.
    Omitting the option preserves the reader's boundaries. (#9495)
  • Record Prometheus exporter self-observability otel.sdk.exporter.metric_data_point.inflight and otel.sdk.exporter.metric_data_point.exported metrics per scrape batch instead of per metric family, accounting for metrics dropped during resource, scope, or metric validation in go.opentelemetry.io/otel/exporters/prometheus. (#9465)
  • Warn and ignore invalid compression environment values instead of overriding existing settings in
    go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc,
    go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp,
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, and
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp. (#9516)
  • Ignore non-positive batch span processor environment sizes in go.opentelemetry.io/otel/sdk/trace and fall back to the defaults. (#9490)
  • Reject AggregationBase2ExponentialHistogram with a MaxScale below the minimum of -10, and report MaxScale instead of MaxSize when MaxScale is above the maximum of 20, in go.opentelemetry.io/otel/sdk/metric. (#9506)
  • Use prometheus_http_text_metric_exporter for otel.component.type in go.opentelemetry.io/otel/exporters/prometheus. (#9464)
  • Record error.type="rejected" (and rpc.status_code="OK" for gRPC) on partial-success rejections in self-observability metrics for go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (#9454)
  • Remove the duplicated /metric package path segment from otel.component.type (go.opentelemetry.io/otel/sdk/metric.ManualReader) in go.opentelemetry.io/otel/sdk/metric. (#9463)
  • Do not record a duplicate otel.sdk.metric_reader.collection.duration measurement per scrape in go.opentelemetry.io/otel/exporters/prometheus when OTEL_GO_X_OBSERVABILITY=true. (#9462)
  • Record otel.span.parent.origin as "none" on otel.sdk.span.started when a span is started with trace.WithNewRoot in go.opentelemetry.io/otel/sdk/trace. (#9453)
  • Do not record a queue_full span drop on otel.sdk.processor.span.processed when BatchSpanProcessor.ForceFlush is canceled while the queue is full in go.opentelemetry.io/otel/sdk/trace. (#9461)
  • Record otel.sdk.processor.span.processed in SimpleSpanProcessor.OnEnd only when exporting a sampled span in go.opentelemetry.io/otel/sdk/trace. (#9460)
  • Keep experimental Finish Sum collections within the cardinality limit and preserve valid timestamps when new series are recorded concurrently in go.opentelemetry.io/otel/sdk/metric. (#9251)
  • Ignore delayed Finish calls that predate a Sum series lifetime in go.opentelemetry.io/otel/sdk/metric. (#9252)
  • Align gRPC endpoint URL handling across go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, and go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc. Preserve Unix socket targets configured through OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_LOGS_ENDPOINT, or WithEndpointURL, resolver targets, and scheme-less URLs with an authority using only the host and port, while retaining the configured transport security for URL options with unknown or empty schemes. (#9331)
  • Skip measurement preparation and recording for disabled observability instruments in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc. (#9318)
  • Export non-finite floating-point values as strings in go.opentelemetry.io/otel/exporters/stdout/stdouttrace. (#9307)
  • Export non-finite floating-point values as strings in go.opentelemetry.io/otel/exporters/stdout/stdoutmetric. (#9308)
  • Retry transient OTLP/HTTP network failures such as timeouts, EOF, connection reset, and connection refused in go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (#9300)
  • Export non-finite floating-point values as strings and retain populated instrumentation scope attributes in go.opentelemetry.io/otel/exporters/stdout/stdoutlog. (#9150)
  • Interpret OTLP log exporter compression environment variables case-insensitively in
    go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc and
    go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. WithCompressor in
    go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc now interprets its argument
    case-insensitively as well, where a differently-cased value previously reported an unknown
    compressor and fell back to no compression. (#9230)
  • Record diagnostics via the internal logger for recovered retryable export failures in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (#9281)
  • Prevent underflowed measurements from updating sum, min, or max in exponential histograms in go.opentelemetry.io/otel/sdk/metric. (#8077)
  • Report the module's registered version from Version() in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, which also corrects the exporter version sent in the default User-Agent. (#9232)
  • Preserve caller-provided metric data when removing timestamps from output in go.opentelemetry.io/otel/exporters/stdout/stdoutmetric. (#8843)
  • Report dropped event and link counts in the span snapshot when the event or link limit is 0 in go.opentelemetry.io/otel/sdk/trace.
    Previously, an ended span reported 0 dropped events and links even though the recording span had counted them. (#9238)
  • Decompress gzip OTLP/HTTP log responses when the request sets Accept-Encoding explicitly in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. (#9181)
  • Preserve escaped endpoint paths and generic endpoint base segments in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp, and go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp. (#9149)
  • Reject overflowing log export interval and timeout environment variables in go.opentelemetry.io/otel/sdk/log. (#9081)
  • Ignore nil writers passed to WithWriter in go.opentelemetry.io/otel/exporters/stdout/stdouttrace and
    go.opentelemetry.io/otel/exporters/stdout/stdoutmetric, preserving the default or previously configured writer or encoder. (#9164)
  • Ignore nil writers passed to WithWriter in go.opentelemetry.io/otel/exporters/stdout/stdoutlog, retaining the default or previously configured writer to prevent a panic during log export. (#9148)
  • Ignore nil span processors passed to WithSpanProcessor and TracerProvider.RegisterSpanProcessor in go.opentelemetry.io/otel/sdk/trace. (#9168)
  • Ignore nil processors passed to WithProcessor in go.opentelemetry.io/otel/sdk/log to prevent panics during log emission and provider lifecycle operations. (#9170)
  • Ignore nil views passed to WithView in go.opentelemetry.io/otel/sdk/metric, preserving valid views and their order. (#9167)
  • Ignore nil samplers passed to ParentBased sampler options in go.opentelemetry.io/otel/sdk/trace. (#9169)
  • Ignore nil temporality, aggregation, cardinality limit selector, and producer options in go.opentelemetry.io/otel/sdk/metric, including aggregation selector and producer options used by go.opentelemetry.io/otel/exporters/prometheus. (#9166)
  • Ignore nil loggers passed to WithLogger in go.opentelemetry.io/otel/exporters/zipkin, preserving the default or previously configured logger. (#9165)
  • Ignore nil callbacks passed to WithInt64Callback and WithFloat64Callback in go.opentelemetry.io/otel/metric, and to RegisterCallback in go.opentelemetry.io/otel/sdk/metric, including delegation through global meters in go.opentelemetry.io/otel, to prevent panics during metric collection. (#9171)
  • Preserve input span event timestamps when using WithoutTimestamps in go.opentelemetry.io/otel/exporters/stdout/stdouttrace. (#9092)
  • Bound export retries by WithTimeout in go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp,
    go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, and
    go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. (#9080)
  • Fix a data race in go.opentelemetry.io/otel/bridge/opentracing when OpenTracing baggage is read concurrently with Span.SetBaggageItem. (#9049)
  • Pass the context containing the new span to the auto-instrumentation hook in go.opentelemetry.io/otel/trace. (#9029)
  • Encode an empty attribute value nested in a slice or map as {} in go.opentelemetry.io/otel/trace, so the auto-instrumentation span that carries it is no longer dropped. (#9182)
  • Prevent processor operations from overlapping processor shutdown or being invoked after TracerProvider shutdown in go.opentelemetry.io/otel/sdk/trace. (#9070)
  • Match the response Content-Type media type case-insensitively and ignore parameters when reading OTLP/HTTP protobuf partial-success responses in go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp. (#9188)
  • Match the response Content-Type media type case-insensitively and ignore parameters when reading OTLP/HTTP partial-success responses in go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp and go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp. (#9303)
  • Do not report an error through the global error handler when WithCompressor("none") is passed to go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc or go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc. (#9056)
  • Interpret OTEL_EXPORTER_OTLP_COMPRESSION, OTEL_EXPORTER_OTLP_METRICS_COMPRESSION, and OTEL_EXPORTER_OTLP_TRACES_COMPRESSION case-insensitively in go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (#9268)
  • Decode gzip responses with explicitly configured Accept-Encoding headers in go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp and go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp, enforcing response limits after decompression. (#9203)
  • Preserve exemplar trace and span IDs in go.opentelemetry.io/otel/exporters/prometheus by dropping filtered attribute labels instead of the whole exemplar when the combined exemplar labels would exceed the prometheus client-go limit. (#9031)
  • Do not emit the target_info metric in go.opentelemetry.io/otel/exporters/prometheus when the OpenTelemetry Resource is empty. (#9296)
  • Populate the Prometheus created timestamp from StartTime on monotonic Sum (counter) and Histogram metrics in go.opentelemetry.io/otel/exporters/prometheus. (#9297)
  • Order concatenated values of colliding sanitized attribute keys in go.opentelemetry.io/otel/exporters/prometheus by the lexicographical order of the original keys instead of sorting by attribute value. (#9294)
  • Do not add empty trace_id or span_id exemplar labels in go.opentelemetry.io/otel/exporters/prometheus when an exemplar has no trace or span ID. (#9295)
  • Treat unix-abstract:// endpoints from OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_EXPORTER_OTLP_TRACES_ENDPOINT as insecure in go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp, matching unix:// endpoints and the metric exporters. (#9261)
  • Preserve ScopeMetrics slice capacity in PeriodicReader's sync.Pool by resetting slice length instead of overwriting the struct, avoiding per-cycle heap allocations in go.opentelemetry.io/otel/sdk/metric. (#8535)
  • Export strings that are not valid UTF-8 without failing the whole export request in go.opentelemetry.io/otel/exporters/otlp/otlptrace, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc, go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp, go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc, go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp, go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc, and go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp. (GHSA-49pp-h3pg-v763)
  • Reject negative and overflowing OTEL_EXPORTER_OTLP_TIMEOUT and OTEL_EXPORTER_OTLP_TRACES_TIMEOUT values in go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc and go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp. (#9338)
    Previously, such a value produced a negative timeout that removed the export deadline.
  • Reject negative and overflowing OTEL_EXPORTER_OTLP_TIMEOUT and OTEL_EXPORTER_OTLP_METRICS_TIMEOUT values in go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc and go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp. (#9338)
    Previously, such a value produced a negative timeout that removed the export deadline.
  • Trim surrounding whitespace from an OTEL_RESOURCE_ATTRIBUTES value that fails percent-decoding in go.opentelemetry.io/otel/sdk/resource. (#9442)

Removed

  • Remove the experimental WithUnsafeAttributes option from go.opentelemetry.io/otel/metric/x.
    Use metric.WithAttributes after any other attribute options to preserve precedence for duplicate keys. (#9276)
  • Remove the deprecated WithoutUnits and WithoutCounterSuffixes options in go.opentelemetry.io/otel/exporters/prometheus.
    Use WithTranslationStrategy instead. (#9275)
  • Remove support for the deprecated OTEL_GO_X_CARDINALITY_LIMIT environment variable in go.opentelemetry.io/otel/sdk/metric.
    Use WithCardinalityLimit instead, including WithCardinalityLimit(0) to disable the default limit of 2000. (#9210)

What's Changed

  • Synchronize OpenTracing baggage access by @MrAlias in #9049
  • Update open-telemetry/shared-workflows action to v0.18.0 by @renovate[bot] in #9075
  • Update module github.com/go-git/go-billy/v5 to v5.9.2 by @renovate[bot] in #9074
  • Update CodSpeedHQ/action action to v5.4.0 by @renovate[bot] in #9073
  • Update module github.com/dlclark/regexp2/v2 to v2.8.2 by @renovate[bot] in #9076
  • Update module golang.org/x/tools to v0.51.0 by @renovate[bot] in #9077
  • Update module github.com/timonwong/loggercheck to v0.12.1 by @renovate[bot] in #9072
  • Update otel/weaver Docker tag to v0.27.0 by @renovate[bot] in #9079
  • Update module github.com/uudashr/gocognit to v1.2.2 by @renovate[bot] in #9084
  • Update module github.com/go-git/go-git/v5 to v5.19.3 by @renovate[bot] in #9083
  • Update module github.com/dlclark/regexp2/v2 to v2.8.3 by @renovate[bot] in #9082
  • Update github.com/golangci/rowserrcheck digest to e0740d5 by @renovate[bot] in #9087
  • Update googleapis to fad4113 by @renovate[bot] in #9086
  • Update module github.com/uudashr/gocognit to v1.3.0 by @renovate[bot] in #9088
  • Update golang.org/x to 7677206 by @renovate[bot] in #9085
  • Update module github.com/mattn/go-colorable to v0.1.16 by @renovate[bot] in #9089
  • test(sdk/resource): add unit tests for Unix platformOSDescription by @shardool-patil in #9033
  • sdk/log: document supported environment variables by @om7057 in #9016
  • Update actions/upload-artifact action to v7.0.2 by @renovate[bot] in #9094
  • Update actions/download-artifact action to v8.0.2 by @renovate[bot] in #9093
  • Update module github.com/timonwong/loggercheck to v0.13.0 by @renovate[bot] in #9095
  • chore: Move inactive members to emeritus by @opentelemetrybot in #9059
  • Update module github.com/mgechev/revive to v1.17.1 by @renovate[bot] in #9096
  • refactor: remove the test-only newTicker hook using testing/synctest by @kijimad in #9034
  • Update golang.org/x to f45ad48 by @renovate[bot] in #9097
  • Update module github.com/mattn/go-runewidth to v0.0.31 by @renovate[bot] in #9100
  • Update module github.com/breml/bidichk to v0.3.4 by @renovate[bot] in #9098
  • Update module github.com/dlclark/regexp2/v2 to v2.8.4 by @renovate[bot] in #9099
  • test(metricdata): add unit tests for Extrema and Temporality by @shardool-patil in #9091
  • fix: bound OTLP HTTP exporter retries by WithTimeout by @mvanhorn in #9080
  • stdouttrace: preserve input event timestamps with WithoutTimestamps by @kanjih in #9092
  • Update module golang.org/x/net to v0.60.0 by @renovate[bot] in #9162
  • Update github/codeql-action action to v4.38.3 by @renovate[bot] in #9156
  • Update github.com/charmbracelet/ultraviolet digest to 6b8d4ba by @renovate[bot] in #9158
  • Update module github.com/prometheus/client_golang to v1.25.0 by @renovate[bot] in #9157
  • Update golang.org/x by @renovate[bot] in #9173
  • trace/auto: pass span context to auto-instrumentation start hook by @RonFed in #9029
  • Update CodSpeedHQ/action action to v5.4.2 by @renovate[bot] in #9172
  • Update mvdan.cc/unparam digest to 7a2c2c0 by @renovate[bot] in #9180
  • Update golang.org/x by @renovate[bot] in #9175
  • Update module github.com/kisielk/errcheck to v1.30.0 by @renovate[bot] in #9178
  • Update module github.com/prometheus/common to v0.72.1 by @renovate[bot] in #9179
  • metric: ignore nil callback registrations by @pellared in #9171
  • zipkin: ignore nil logger options by @pellared in #9165
  • sdk/metric: ignore nil reader option values by @pellared in #9166
  • sdk/trace: ignore nil ParentBased sampler options by @pellared in #9169
  • sdk/metric: ignore nil views by @pellared in #9167
  • sdk/log: ignore nil processor options by @pellared in #9170
  • stdout: ignore nil writer options by @pellared in #9164
  • stdoutlog: ignore nil writer options by @pellared in #9148
  • sdk/trace: ignore nil span processors by @pellared in #9168
  • test(otlploghttp-config-validation): add tests for invalid endpoint URL and insecure env var fallbacks by @shardool-patil in #9058
  • sdk/metric: wire experimental Int64Counter Finish by @MrAlias in #8962
  • Update golang.org/x/telemetry digest to 5b3465c by @renovate[bot] in #9184
  • sdk/resource: restore package state after tests by @kijimad in #9176
  • Update golang.org/x/telemetry digest to 3c2f983 by @renovate[bot] in #9189
  • Update googleapis to 4341edf by @renovate[bot] in #9190
  • Update module honnef.co/go/tools to v0.8.2 by @renovate[bot] in #9185
  • [chore] use math.MaxInt64 instead of hand-written int64 limits by @kijimad in #9078
  • trace: encode a nested empty attribute value as {} in auto telemetry JSON by @chrikrah in #9182
  • sdk/log: Reject overflowing export durations by @fallintoplace in #9081
  • Update module github.com/stretchr/objx to v0.7.0 by @renovate[bot] in #9191
  • Update golang.org/x/telemetry digest to f87725b by @renovate[bot] in #9194
  • Update open-telemetry/shared-workflows action to v0.20.0 by @renovate[bot] in #9196
  • fix(otlp): preserve configured HTTP endpoint paths by @pellared in #9149
  • Update module go.opentelemetry.io/collector/pdata to v1.69.0 by @renovate[bot] in #9202
  • Update golang.org/x to 2ab7f3c by @renovate[bot] in #9197
  • Update module github.com/Microsoft/go-winio to v0.6.4 by @renovate[bot] in #9198
  • otlploghttp: accept case-insensitive protobuf Content-Type by @Yusuf-Hussien in #9188
  • exporters/prometheus: remove stale NameValidationScheme default from WithTranslationStrategy docs by @NitinKumar004 in #9035
  • [chore] exporters/zipkin: document OTEL_EXPORTER_ZIPKIN_ENDPOINT by @aman99dex in #9009
  • otlploghttp: decompress gzip responses when Accept-Encoding is explicit by @SashaMIT in #9181
  • Update CodSpeedHQ/action action to v5.5.0 by @renovate[bot] in #9204
  • sdk/metric: add experimental Float64Counter Finish by @MrAlias in #9186
  • [chore] sdk/resource: document supported environment variables by @aman99dex in #9008
  • Update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.32.0 by @renovate[bot] in #9212
  • Update open-telemetry/shared-workflows action to v0.21.0 by @renovate[bot] in #9208
  • Update golang.org/x to f0251eb by @renovate[bot] in #9205
  • Update otel/weaver Docker tag to v0.28.0 by @renovate[bot] in #9211
  • Update module github.com/tomarrell/wrapcheck/v2 to v2.13.0 by @renovate[bot] in #9207
  • Update module github.com/stretchr/objx to v0.8.0 by @renovate[bot] in #9206
  • test(bridge/opentracing): bind gRPC server to loopback by @jstar0 in #8904
  • Update github/codeql-action action to v4.39.0 by @renovate[bot] in #9215
  • Document missing environment variables in internal/x READMEs by @om7057 in #9017
  • Update module github.com/dlclark/regexp2/v2 to v2.9.0 by @renovate[bot] in #9224
  • Update open-telemetry/shared-workflows action to v0.22.0 by @renovate[bot] in #9223
  • Update module github.com/breml/errchkjson to v0.4.2 by @renovate[bot] in #9226
  • Update golang.org/x/telemetry digest to b2e8be0 by @renovate[bot] in #9222
  • fix(otlpgrpc): accept "none" in WithCompressor without reporting an error by @pujitha24 in #9056
  • Deprecate the OpenCensus bridge by @pellared in #9221
  • Deprecate the OpenTracing bridge by @pellared in #9218
  • Update module github.com/golangci/golangci-lint/v2 to v2.15.0 by @renovate[bot] in #9227
  • Remove support for OTEL_GO_X_CARDINALITY_LIMIT by @pellared in #9210
  • sdk/metric: document supported environment variables by @om7057 in #9015
  • Document the OpenTracing bridge compatibility regression by @MrAlias in #9209
  • Add CI check for internal/baggage cross-module compatibility by @om7057 in #9200
  • Update open-telemetry/shared-workflows action to v0.23.0 by @renovate[bot] in #9235
  • Update module github.com/dlclark/regexp2/v2 to v2.9.1 by @renovate[bot] in #9234
  • Update ubuntu:26.04 Docker digest to 4252764 by @renovate[bot] in #9233
  • Update golang.org/x/telemetry digest to 824aa3d by @renovate[bot] in #9229
  • chore: enable merge group by @dmathieu in #9225
  • otlpmetrichttp: fix swapped WithProxy and WithHTTPClient subtest names by @kijimad in #9228
  • [chore] sdk/trace: document supported environment variables by @aman99dex in #9010
  • Fix span snapshot reporting 0 dropped events/links at zero limits by @ToniAdreal in #9238
  • Update googleapis to ce908d2 by @renovate[bot] in #9245
  • Update module github.com/timonwong/loggercheck to v0.13.1 by @renovate[bot] in #9243
  • Update module github.com/nishanths/predeclared to v0.3.1 by @renovate[bot] in #9242
  • Update module github.com/nishanths/exhaustive to v0.15.1 by @renovate[bot] in #9241
  • stdoutmetric: Preserve input when removing timestamps by @Sakshamm-Goyal in #8843
  • Improve benchmark coverage in exporters/prometheus by @dashpole in #9240
  • sdk/metric: add internal Finish-aware LastValue aggregation by @MrAlias in #9187
  • Update golang.org/x/telemetry digest to 7bf0a11 by @renovate[bot] in #9249
  • Update module github.com/nishanths/exhaustive to v0.16.0 by @renovate[bot] in #9250
  • otlpmetricgrpc: avoid 10s retry wait in TestSelfObservability by @kijimad in #9246
  • Update module github.com/nishanths/exhaustive to v0.16.1 by @renovate[bot] in #9260
  • Update golang.org/x/telemetry digest to 6cd571d by @renovate[bot] in #9257
  • Update github/codeql-action action to v4.39.1 by @renovate[bot] in #9258
  • chore: use shared fossa workflow by @codeboten in #9256
  • Use sync.Map for exponential histogram aggregations by @dashpole in #8077
  • Update CodSpeedHQ/action action to v5.6.0 by @renovate[bot] in #9264
  • [sdk/metric] Experimental support for MeterConfigurator by @ps-mir in #8743
  • Update github.com/charmbracelet/ultraviolet digest to a45b7c8 by @renovate[bot] in #9270
  • Update module github.com/prometheus/procfs to v0.23.0 by @renovate[bot] in #9271
  • Update module github.com/securego/gosec/v2 to v2.30.0 by @renovate[bot] in #9272
  • Update module github.com/dlclark/regexp2/v2 to v2.10.1 by @renovate[bot] in #9274
  • exporters/prometheus: preserve exemplar trace/span IDs over filtered attribute labels by @om7057 in #9031
  • [Dependency] Major version bump for backoff@v5 to v7 by @ps-mir in #9267
  • chore: remove emeritus approver flc1125 from CODEOWNERS by @pellared in #9269
  • otlplog: document Exporter concurrency guarantees by @saluja-ji in #9244
  • trace: use distinct timestamps in last-one-wins WithTimestamp test by @kijimad in #9279
  • otlptrace: treat unix-abstract env endpoints as insecure by @vignesh2027 in #9261
  • metric/x: remove experimental WithUnsafeAttributes option by @dashpole in #9276
  • Update module github.com/dlclark/regexp2/v2 to v2.11.0 by @renovate[bot] in #9288
  • Update googleapis to 2ffab32 by @renovate[bot] in #9283
  • Update module go.opentelemetry.io/collector/featuregate to v1.70.0 by @renovate[bot] in #9284
  • Update ubuntu:26.04 Docker digest to 157dc3d by @renovate[bot] in #9287
  • Update module go.opentelemetry.io/collector/pdata to v1.70.0 by @renovate[bot] in #9290
  • Update open-telemetry/shared-workflows action to v0.24.0 by @renovate[bot] in #9291
  • fix(otlphttp): decode gzip responses for trace and metric exporters by @jpdefo in #9203
  • Interpret OTLP log exporter compression environment variables case-insensitively by @sushant-me in #9230
  • Update module google.golang.org/grpc to v1.85.0 by @renovate[bot] in #9292
  • Update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.33.0 by @renovate[bot] in #9293
  • Update module golang.org/x/net to v0.62.0 by @renovate[bot] in #9302
  • sdk/metric: preserve ScopeMetrics slice capacity in PeriodicReader pool by @Dipanshusinghh in #8535
  • Update module github.com/prometheus/common to v0.73.0 by @renovate[bot] in #9310
  • Update module github.com/dlclark/regexp2/v2 to v2.12.0 by @renovate[bot] in #9312
  • Update module github.com/hashicorp/go-uuid to v1.0.4 by @renovate[bot] in #9315
  • [chore] Improve contribution guidelines for issues and PRs by @pellared in #9309
  • exporters/prometheus: do not emit target_info for empty Resource by @dashpole in #9296
  • exporters/prometheus: Remove deprecated WithoutUnits and WithoutCounterSuffixes options by @dashpole in #9275
  • Avoid redundant slice and map allocations in exporters/prometheus by @dashpole in #9248
  • Update module github.com/xo/terminfo to v1.3.0 by @renovate[bot] in #9319
  • Report the registered module version from Version() in otlploggrpc by @sushant-me in #9232
  • exporters/prometheus: omit empty trace_id and span_id exemplar labels by @dashpole in #9295
  • exporters/prometheus: order colliding sanitized label values by original key by @dashpole in #9294
  • exporters/prometheus: set created timestamp on counter and histogram metrics by @dashpole in #9297
  • Update module github.com/prometheus/common to v0.73.1 by @renovate[bot] in #9320
  • Add experimental metric WithOptIn and View Enabled configuration by @dashpole in #9298
  • sdk/metric: refactor expoBuckets to fixed-position circular storage by @dashpole in #9277
  • stdoutlog: use non-OTLP representation for log bodies and attributes by @pellared in #9150
  • Update github.com/golangci/rowserrcheck digest to 7f680fe by @renovate[bot] in #9330
  • Update module github.com/pandatix/go-abnf to v0.5.5 by @renovate[bot] in #9324
  • Update module github.com/cenkalti/backoff/v7 to v7.0.3 by @renovate[bot] in #9329
  • Update module github.com/nishanths/exhaustive to v0.17.1 by @renovate[bot] in #9321
  • Update CodSpeedHQ/action action to v5.6.1 by @renovate[bot] in #9322
  • Generate semconv v1.44.0 by @chethanm99 in #9265
  • fix(otlploggrpc): honor enabled observability instruments by @yumosx in #9318
  • sdk/metric: support per-series start timestamps for cumulative async instruments by @dashpole in #9311
  • Update mvdan.cc/unparam digest to 394cd0a by @renovate[bot] in #9333
  • exporters/prometheus: reuse *prometheus.Desc across data points with identical label keys by @dashpole in #9325
  • fix(otlploggrpc, otlptracegrpc, otlpmetricgrpc): preserve Unix socket endpoint URLs by @yumosx in #9331
  • otlptracehttp: replace 1s sleep in TestStopWhileExportingConcurrentSafe by @kijimad in #9326
  • sdk/metric: support OTEL_METRIC_EXPORT_MAX_BATCH_SIZE env by @Icarus9913 in #9316
  • fix(otlphttp): recognize case-insensitive response media types by @yeongsang2 in #9303
  • fix(otlptrace,otlpmetric): let endpoint scheme override insecure env vars by @vignesh2027 in #9273
  • Update github/codeql-action action to v4.39.2 by @renovate[bot] in #9335
  • Update CodSpeedHQ/action action to v5.6.3 by @renovate[bot] in #9334
  • Update module github.com/xo/terminfo to v1.3.1 by @renovate[bot] in #9434
  • Update googleapis to d1e00e9 by @renovate[bot] in #9433
  • Update github/codeql-action action to v4.39.3 by @renovate[bot] in #9339
  • Fix semconv v1.44 metric generation by @MrAlias in #9332
  • Update module dev.gaijin.team/go/golib to v0.9.0 by @renovate[bot] in #9438
  • exporters/prometheus: cache sanitized label names per scrape by @dashpole in #9337
  • [sdk/metric/x] Add Experimental Composable Views by @dashpole in #8510
  • sdk/metric: add internal Finish-aware explicit bucket histogram by @MrAlias in #9259
  • sdk/metric: add experimental Gauge Finish by @MrAlias in #9252
  • Update module github.com/raeperd/recvcheck to v0.3.2 by @renovate[bot] in #9441
  • Update module github.com/golangci/golines to v0.16.1 by @renovate[bot] in #9439
  • Update module github.com/ldez/structtags to v0.6.2 by @renovate[bot] in #9440
  • chore: Update renovate.json with new options and thresholds by @thompson-tomo in #9435
  • Clarify security-related versioning policy by @pellared in #9436
  • Update module github.com/spf13/pflag to v1.1.0 by @renovate[bot] in #9443
  • sdk/metric: add experimental UpDownCounter Finish by @MrAlias in #9251
  • Expand metric cardinality upgrade guidance by @pellared in #9437
  • Update github.com/timakin/bodyclose digest to 8bb60b1 by @renovate[bot] in #9459
  • Update module github.com/gofrs/flock to v0.13.2 by @renovate[bot] in #9468
  • Update module github.com/dlclark/regexp2/v2 to v2.13.0 by @renovate[bot] in #9458
  • Update module codeberg.org/polyfloyd/go-errorlint to v1.9.1 by @renovate[bot] in #9457
  • Update golang.org/x to 47ce03d by @renovate[bot] in #9445
  • Update module go.opentelemetry.io/collector/pdata to v1.71.0 by @renovate[bot] in #9456
  • Update golang.org/x/tools digest to 4f7264d by @renovate[bot] in #9470
  • stdoutlog: document exporter concurrency guarantees by @pellared in #9444
  • sdk/trace: only record span.processed when SimpleSpanProcessor exports a span by @dashpole in #9460
  • sdk/metric: Deduplicate pos/neg bucket logic in expoHistogramDataPoint by @dashpole in #9323
  • semconv,sdk/log: unwrap single-error errors.Join wrappers in error type derivation by @dashpole in #9466
  • sdk/trace: do not record queue_full span drop when ForceFlush is canceled by @dashpole in #9461
  • sdk/trace: record parent origin as none on otel.sdk.span.started with WithNewRoot by @dashpole in #9453
  • Update golang.org/x by @renovate[bot] in #9474
  • Update googleapis to 09e21b2 by @renovate[bot] in #9477
  • Stabilize stdout log exporter by @pellared in #9472
  • stdouttrace: document exporter usage and format guarantees by @pellared in #9473
  • stdouttrace: use non-OTLP representation for span attributes by @pellared in #9307
  • stdoutmetric: use non-OTLP attributes and export non-finite values by @pellared in #9308
  • exporters/prometheus: avoid duplicate collection.duration self-observability metric by @dashpole in #9462
  • sdk/metric: remove duplicated package path segment from manualReaderType by @dashpole in #9463
  • exporters/otlp: fix partial-success error.type and gRPC status_code on self-observability metrics by @dashpole in #9454
  • exporters/prometheus: use semconv OTelComponentTypePrometheusHTTPTextMetricExporter by @dashpole in #9464
  • [chore] Add missing clause to GoDoc by @jkoronaAtCisco in #9485
  • Update golang.org/x by @renovate[bot] in #9486
  • Update ubuntu:26.04 Docker digest to 0d5255b by @renovate[bot] in #9489
  • Prevent processor calls after processor shutdown by @dmathieu in #9070
  • semconv: generate v1.45.0 by @pellared in #9484
  • Update module github.com/prometheus/common to v0.74.0 by @renovate[bot] in #9491
  • fix(exporters/otlp): log diagnostics for recovered retryable export failures by @shivamS0-78 in #9281
  • Update golang.org/x to dab199d by @renovate[bot] in #9497
  • Update module github.com/sourcegraph/go-diff to v0.10.0 by @renovate[bot] in #9498
  • Update golang.org/x by @renovate[bot] in #9501
  • Update module charm.land/lipgloss/v2 to v2.1.1 by @renovate[bot] in #9504
  • Update golang.org/x by @renovate[bot] in #9503
  • Add ExampleBaggage_SetMember by @tech-nightcode in #9507
  • Document that the base environment is merged with the one provided by WithResource. by @matt-hoiland in #9488
  • Interpret OTLP metric and trace compression env vars case-insensitively by @Roxen-AS in #9268
  • Update golang.org/x by @renovate[bot] in #9511
  • Update module github.com/sergi/go-diff to v1.4.4 by @renovate[bot] in #9512
  • Update googleapis to fd2c768 by @renovate[bot] in #9517
  • Update actions/setup-go action to v7.1.0 by @renovate[bot] in #9518
  • Update build-tools to v0.31.0 by @renovate[bot] in #9519
  • Update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.34.0 by @renovate[bot] in #9520
  • Update module github.com/sergi/go-diff to v1.4.5 by @renovate[bot] in #9521
  • [chore] Document 2-approval ruleset on .go files in CONTRIBUTING.md by @dashpole in #9500
  • Add ExampleNewMemberRaw by @tech-nightcode in #9513
  • otlp: ignore invalid compression environment values by @kanjih in #9516
  • Update module github.com/dlclark/regexp2/v2 to v2.13.1 by @renovate[bot] in #9533
  • Update golang.org/x by @renovate[bot] in #9525
  • sdk/trace: ignore non-positive BSP environment sizes by @ViktorBystrov72 in #9490
  • [sdk/metric] Fix manual reader instrumentation and global MeterProvider test isolation by @chethanm99 in #9478
  • exporters/prometheus: record ExportMetrics per scrape batch instead of per metric family by @dashpole in #9465
  • Lazily delete map elements for delta metrics to re-use storage. by @dashpole in #8276
  • sdk/metric: honor empty histogram bucket advice by @pellared in #9495
  • Update googleapis to c8830f6 by @renovate[bot] in #9542
  • Update golang.org/x by @renovate[bot] in #9540
  • Update module github.com/charmbracelet/x/ansi to v0.11.10 by @renovate[bot] in #9535
  • semconv: adopt v1.45.0 by @pellared in #9492
  • fix(otlptrace,otlpmetric): reject negative and overflowing timeout env values by @vignesh2027 in #9338
  • Update golang.org/x by @renovate[bot] in #9549
  • Update open-telemetry/shared-workflows action to v0.25.0 by @renovate[bot] in #9551
  • Update github.com/charmbracelet/ultraviolet digest to 8ecbcf0 by @renovate[bot] in #9548
  • Update github/codeql-action action to v4.39.4 by @renovate[bot] in #9557
  • Update golang.org/x to b6de8d3 by @renovate[bot] in #9561
  • sdk/metric: add internal bound Sum aggregation by @dashpole in #9278
  • sdk/log: record queue_full metric synchronously in BatchProcessor.OnEmit by @dashpole in #9524
  • Update module go.opentelemetry.io/auto/sdk to v1.2.2 by @renovate[bot] in #9562
  • Update golang.org/x to e1094ee by @renovate[bot] in #9563
  • Update module github.com/dlclark/regexp2/v2 to v2.13.2 by @renovate[bot] in #9566
  • Update CodSpeedHQ/action action to v5.8.0 by @renovate[bot] in #9567
  • Delimit strings in attribute hashing by @vignesh2027 in #9508
  • Update golang.org/x by @renovate[bot] in #9585
  • Update github/codeql-action action to v4.39.5 by @renovate[bot] in #9592
  • Update module go.opentelemetry.io/collector/pdata to v1.72.0 by @renovate[bot] in #9593
  • Update open-telemetry/shared-workflows action to v0.26.0 by @renovate[bot] in #9594
  • Update googleapis to 1e707ab by @renovate[bot] in #9584
  • trace: add ExampleContextWithRemoteSpanContext by @ssssunat in #9544
  • sdk/resource: trim an OTEL_RESOURCE_ATTRIBUTES value that fails to decode by @chrikrah in #9442
  • Update github.com/charmbracelet/ultraviolet digest to 8ed4998 by @renovate[bot] in #9601
  • Update module github.com/charmbracelet/x/ansi to v0.12.0 by @renovate[bot] in #9605
  • Remove obsolete encoding cache claims from attribute.Set by @AnujTiwari-Student in #9595
  • sdk/metric: correct exemplar ID field docs for unsampled spans by @ssssunat in #9572
  • Update module github.com/sourcegraph/go-diff to v0.11.0 by @renovate[bot] in #9610
  • Update github.com/opentracing-contrib/go-grpc/test digest to 4e7bc15 by @renovate[bot] in #9608
  • Update module github.com/dlclark/regexp2/v2 to v2.13.3 by @renovate[bot] in #9609
  • trace: add ExampleSpanFromContext by @ssssunat in #9543
  • Remove gRPC dependencies from metric and log OTLP HTTP exporters by @pellared in #9499
  • Update module github.com/dlclark/regexp2/v2 to v2.14.0 by @renovate[bot] in #9631
  • Update golang.org/x to f63ec7c by @renovate[bot] in #9617
  • Update open-telemetry/shared-workflows action to v0.27.0 by @renovate[bot] in #9620
  • Update module github.com/nishanths/exhaustive to v0.18.0 by @renovate[bot] in #9629
  • Update module github.com/nishanths/predeclared to v0.4.0 by @renovate[bot] in #9630
  • Update golang.org/x/tools digest to 9aeae95 by @renovate[bot] in #9633
  • sdk/metric: validate minimum MaxScale for exponential histogram aggregation by @yuminn-k in #9506
  • docs: link SDK log test examples by @azrex-git in #9619
  • otlptracehttp: retry transient network errors such as EOF by @atkinsonm in #9300
  • sdk/log: use a no-op processor in logger benchmarks by @kijimad in #9469
  • fix(exporters/otlp): preserve percent-encoded whitespace in log exporter headers by @NUAAwqy in #9253
  • Add ExampleMerge by @rgallegocode in #9537
  • Fix TestExporterAttributeLists timezone sensitivity by @rgallegocode in #9539
  • Update golang.org/x/tools digest to ddc11b0 by @renovate[bot] in #9644
  • Update googleapis to 828f6ef by @renovate[bot] in #9646
  • Update module github.com/manuelarte/funcorder to v0.6.1 by @renovate[bot] in #9645
  • Update module github.com/breml/errchkjson to v0.5.0 by @renovate[bot] in #9656
  • otlploggrpc: link existing package example and overview by @pratstick in #9530
  • docs: clarify internal logging levels in SetLogger by @prashantenjapuri in #9589
  • Add ExampleContextWithoutBaggage by @FarazAhsanSprintX in #9657
  • docs: update Trace API section in README with SDK package link by @mexirica in #9640
  • [chore] docs(otlploghttp): link package example, overview, and gRPC sibling by @givemehat in #9556
  • [chore] docs(otlpmetrichttp): link package example, overview, and gRPC sibling by @givemehat in #9555
  • [chore] docs(sdk/metric): link setup example and reader documentation by @givemehat in #9553
  • docs(sdk/trace): link construction and shutdown documentation by @nimeshkummar in #9568
  • Update golang.org/x to 3a02d0e by @renovate[bot] in #9660
  • Update CodSpeedHQ/action action to v5.8.1 by @renovate[bot] in #9661
  • attribute: add merge iterator example by @vivekbhat07 in #9577
  • baggage: document duplicate keys in New by @ssssunat in #9573
  • log: split global into a deprecated compatibility module by @pellared in #9639
  • [docs] Fix broken documentation links in log/embedded by @chethanm99 in #9604
  • sdk/metric: lockless fast-path for exponential histogram bucket recording by @dashpole in #9481
  • Update github.com/golangci/rowserrcheck digest to 0dcc322 by @renovate[bot] in #9659
  • Update googleapis to 28d205f by @renovate[bot] in #9664
  • Update module github.com/go-git/go-git/v5 to v5.19.4 by @renovate[bot] in #9669
  • Update golang.org/x by @renovate[bot] in #9662
  • Update ubuntu:26.04 Docker digest to 59ece4b by @renovate[bot] in #9671
  • trace: ignore OWS-only list-members in ParseTraceState by @xgbtxy in #9582
  • Clarify instrument name character rules in metric package docs by @hyunsuhahaha in #9515
  • docs: improve Prometheus exporter README by @MinuteHanD in #9532
  • docs(baggage): add package navigation links by @vivekbhat07 in #9576
  • docs(log): add Record.Clone example by @MiroslavVelikov in #9575
  • docs(baggage): demonstrate partial Parse results by @MiroslavVelikov in #9578
  • propagation: combine multiple tracestate header values via ValuesGetter by @xgbtxy in #9581
  • Update module github.com/spf13/afero to v1.16.0 by @renovate[bot] in #9674
  • Update module github.com/spf13/afero to v1.16.1 by @renovate[bot] in #9679
  • attribute: document Set.Value result for absent keys by @ssssunat in #9565
  • replace open-telemetry/oteps references with open-telemetry/specifica… by @konradodwrot in #9636
  • trace: add ExampleTraceFlags_WithSampled by @55408suga in #9663
  • Show stopping a TraceState walk early by @havie2309 in #9654
  • docs(attribute): demostrate Set.Filter results by @MiroslavVelikov in #9583
  • Update golang.org/x by @renovate[bot] in #9686
  • Update googleapis to 22e8acf by @renovate[bot] in #9688
  • Update golang.org/x/tools digest to 81fb305 by @renovate[bot] in #9692
  • [chore] docs(otlptracegrpc): link package example, overview, and HTTP sibling by @dallars3 in #9665
  • docs(otlpmetricgrpc): add package navigation links by @vivekbhat07 in #9570
  • otlptrace: export the trace state of span links by @vignesh2027 in #9611
  • [chore] Add an example distinguishing unset Extrema from zero by @antonio-mazzini in #9672
  • Add ExampleProperty_Value by @FarazAhsanSprintX in #9670
  • docs(otlptracehttp): add getting-started and config links to README by @givemehat in #9678
  • Include backoff delay in OTLP retry MaxElapsedTime check by @Devpaul-01 in #9632
  • Update module go.yaml.in/yaml/v3 to v3.0.6 by @renovate[bot] in #9694
  • otlp: preserve encoded whitespace in trace and metric headers by @kanjih in #9666
  • stdoutlog: drop leading v prefix from internal.Version by @dashpole in #9689
  • Add getting-started links to the resource README by @FarazAhsanSprintX in #9697
  • fix(exporters/otlp): reject negative and overflowing log exporter timeouts by @NUAAwqy in #9254
  • Update github.com/charmbracelet/ultraviolet digest to 9eea7fd by @renovate[bot] in #9698
  • [chore] trace: document hex id parsing and spancontext config by @iamsiddhesh-dev in #9682
  • [chore] baggage: fix property value and setmember docs by @iamsiddhesh-dev in #9681
  • [chore] attribute: fix set docs and add examples by @iamsiddhesh-dev in #9680
  • Fix import formatting in generated OTLP metric options by @pellared in #9706
  • Add OSS Scanner environment and basic threat model by @pellared in #9534
  • Release 1.48.0/0.70.0/0.24.0/0.1.1 by @pellared in #9588

New Contributors

Full Changelog: v1.47.0...v1.48.0

Don't miss a new opentelemetry-go release

NewReleases is sending notifications on new releases.