opentelemetry-go/trace
Damien Mathieu a85ae98dce
Release v1.36.0/v0.58.0/v0.12.0 (#6793)
# Overview

Closes https://github.com/open-telemetry/opentelemetry-go/issues/6786

### Added

- Add exponential histogram support in
`go.opentelemetry.io/otel/exporters/prometheus`. (#6421)
- The `go.opentelemetry.io/otel/semconv/v1.31.0` package.
The package contains semantic conventions from the `v1.31.0` version of
the OpenTelemetry Semantic Conventions.
See the [migration documentation](./semconv/v1.31.0/MIGRATION.md) for
information on how to upgrade from
`go.opentelemetry.io/otel/semconv/v1.30.0`. (#6479)
- Add `Recording`, `Scope`, and `Record` types in
`go.opentelemetry.io/otel/log/logtest`. (#6507)
- Add `WithHTTPClient` option to configure the `http.Client` used by
`go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`.
(#6751)
- Add `WithHTTPClient` option to configure the `http.Client` used by
`go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp`.
(#6752)
- Add `WithHTTPClient` option to configure the `http.Client` used by
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#6688)
- Add `ValuesGetter` in `go.opentelemetry.io/otel/propagation`, a
`TextMapCarrier` that supports retrieving multiple values for a single
key. (#5973)
- Add `Values` method to `HeaderCarrier` to implement the new
`ValuesGetter` interface in `go.opentelemetry.io/otel/propagation`.
(#5973)
- Update `Baggage` in `go.opentelemetry.io/otel/propagation` to retrieve
multiple values for a key when the carrier implements `ValuesGetter`.
(#5973)
- Add `AssertEqual` function in `go.opentelemetry.io/otel/log/logtest`.
(#6662)
- The `go.opentelemetry.io/otel/semconv/v1.32.0` package.
The package contains semantic conventions from the `v1.32.0` version of
the OpenTelemetry Semantic Conventions.
See the [migration documentation](./semconv/v1.32.0/MIGRATION.md) for
information on how to upgrade from
`go.opentelemetry.io/otel/semconv/v1.31.0`(#6782)
- Add `Transform` option in `go.opentelemetry.io/otel/log/logtest`.
(#6794)
- Add `Desc` option in `go.opentelemetry.io/otel/log/logtest`. (#6796)

### Removed

- Drop support for [Go 1.22]. (#6381, #6418)
- Remove `Resource` field from `EnabledParameters` in
`go.opentelemetry.io/otel/sdk/log`. (#6494)
- Remove `RecordFactory` type from
`go.opentelemetry.io/otel/log/logtest`. (#6492)
- Remove `ScopeRecords`, `EmittedRecord`, and `RecordFactory` types from
`go.opentelemetry.io/otel/log/logtest`. (#6507)
- Remove `AssertRecordEqual` function in
`go.opentelemetry.io/otel/log/logtest`, use `AssertEqual` instead.
(#6662)

### Changed

- ⚠️ Update `github.com/prometheus/client_golang` to `v1.21.1`, which
changes the `NameValidationScheme` to `UTF8Validation`.
This allows metrics names to keep original delimiters (e.g. `.`), rather
than replacing with underscores.
This can be reverted by setting
`github.com/prometheus/common/model.NameValidationScheme` to
`LegacyValidation` in `github.com/prometheus/common/model`. (#6433)
- Initialize map with `len(keys)` in `NewAllowKeysFilter` and
`NewDenyKeysFilter` to avoid unnecessary allocations in
`go.opentelemetry.io/otel/attribute`. (#6455)
- `go.opentelemetry.io/otel/log/logtest` is now a separate Go module.
(#6465)
- `go.opentelemetry.io/otel/sdk/log/logtest` is now a separate Go
module. (#6466)
- `Recorder` in `go.opentelemetry.io/otel/log/logtest` no longer
separately stores records emitted by loggers with the same
instrumentation scope. (#6507)
- Improve performance of `BatchProcessor` in
`go.opentelemetry.io/otel/sdk/log` by not exporting when exporter cannot
accept more. (#6569, #6641)

### Deprecated

- Deprecate support for `model.LegacyValidation` for
`go.opentelemetry.io/otel/exporters/prometheus`. (#6449)

### Fixes

- Stop percent encoding header environment variables in
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc` and
`go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp`. (#6392)
- Ensure the `noopSpan.tracerProvider` method is not inlined in
`go.opentelemetry.io/otel/trace` so the `go.opentelemetry.io/auto`
instrumentation can instrument non-recording spans. (#6456)
- Use a `sync.Pool` instead of allocating `metricdata.ResourceMetrics`
in `go.opentelemetry.io/otel/exporters/prometheus`. (#6472)

---------

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
2025-05-21 09:35:39 +02:00
..
embedded Add READMEs to every package (#5103) 2024-03-26 20:13:54 +01:00
internal/telemetry Release v1.36.0/v0.58.0/v0.12.0 (#6793) 2025-05-21 09:35:39 +02:00
noop [chore]: enable expected-actual rule from testifylint (#5848) 2024-09-26 12:04:33 +02:00
README.md Add READMEs to every package (#5103) 2024-03-26 20:13:54 +01:00
auto.go trace/auto pass stack allocated span context var to ebpf (#6434) 2025-03-13 09:35:35 -07:00
auto_test.go Add the `golines` golangci-lint formatter (#6513) 2025-03-30 03:46:44 -07:00
config.go Fix span option typo in SDK span End, and WithAttributes only being available on span start (#6006) 2024-11-27 16:53:10 +01:00
config_test.go Add TestSpanStartConfigAttributeMutability (#5591) 2024-07-10 12:02:01 -07:00
context.go Fix typos (#5763) 2024-09-09 08:53:15 +02:00
context_test.go trace: SpanFromContext and SpanContextFromContext make no allocs (#5049) 2024-03-12 08:39:28 +01:00
doc.go Fix typos (#5763) 2024-09-09 08:53:15 +02:00
go.mod Release v1.36.0/v0.58.0/v0.12.0 (#6793) 2025-05-21 09:35:39 +02:00
go.sum fix(deps): update module github.com/google/go-cmp to v0.7.0 (#6359) 2025-02-23 08:21:15 -08:00
nonrecording.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
noop.go Do not inline `noopSpan.tracerProvider` (#6456) 2025-03-19 14:50:43 -07:00
noop_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
provider.go Separate trace API components into own files (#5620) 2024-07-16 08:32:40 -07:00
span.go Separate trace API components into own files (#5620) 2024-07-16 08:32:40 -07:00
span_test.go Separate trace API components into own files (#5620) 2024-07-16 08:32:40 -07:00
trace.go Separate trace API components into own files (#5620) 2024-07-16 08:32:40 -07:00
trace_test.go Separate trace API components into own files (#5620) 2024-07-16 08:32:40 -07:00
tracer.go Separate trace API components into own files (#5620) 2024-07-16 08:32:40 -07:00
tracestate.go OpenCensus bridge to support TraceState (#5651) 2024-08-21 17:33:56 +02:00
tracestate_benchkmark_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
tracestate_test.go Fix tracestate benchmarks (#6690) 2025-04-24 09:33:59 +02:00

README.md

Trace API

PkgGoDev