This release dramatically improves interoperability with Go's log/slog package. In particular, logr.NewContext and logr.NewContextWithSlogLogger use the same context key, which allows logr.FromContext and logr.FromContextAsSlogLogger to return logr.Logger or *slog.Logger respectively, including transparently converting each to the other as needed.
Functions logr/slogr.NewLogr and logr/slogr.ToSlogHandler have been superceded by logr.FromSlogHandler and logr.ToSlogHandler respectively, and type logr/slogr.SlogSink has been superceded by logr.SlogSink. All of the old names in logr/slogr remain, for compatibility.
Package logr/funcr now supports logr.SlogSink, meaning that it's output passes all but one of the Slog conformance tests (that exception being that funcr handles the timestamp itself).
Users who have a logr.Logger and need a *slog.Logger can call slog.New(logr.ToSlogHandler(...)) and all output will go through the same stack.
Users who have a *slog.Logger or slog.Handler can call logr.FromSlogHandler(...) and all output will go through the same stack.
chore(deps): bump google.golang.org/grpc from 1.61.1 to 1.62.0 in /modules/qdrant (#2281) @dependabot
chore(deps): bump github.com/ClickHouse/clickhouse-go/v2 from 2.18.0 to 2.20.0 in /modules/clickhouse (#2290) @dependabot
chore(deps): bump github.com/Shopify/toxiproxy/v2 from 2.7.0 to 2.8.0 in /examples/toxiproxy (#2282) @dependabot
chore(deps): bump github.com/neo4j/neo4j-go-driver/v5 from 5.16.0 to 5.18.0 in /modules/neo4j (#2278) @dependabot
chore(deps): bump github.com/minio/minio-go/v7 from 7.0.66 to 7.0.68 in /modules/minio (#2304) @dependabot
chore(deps): bump github.com/tmc/langchaingo from 0.1.4 to 0.1.5 in /modules/ollama (#2318) @dependabot
chore(deps): bump github.com/elastic/go-elasticsearch/v8 from 8.11.1 to 8.12.1 in /modules/elasticsearch (#2303) @dependabot
chore(deps): bump google.golang.org/api from 0.167.0 to 0.168.0 in /modules/gcloud (#2317) @dependabot
chore(deps): bump github.com/aws/aws-sdk-go-v2/credentials from 1.16.14 to 1.17.5 in /modules/localstack, github.com/aws/aws-sdk-go-v2 from 1.24.1 to 1.25.2 in /modules/localstack (#2320) @mdelapenya
chore(deps): bump github.com/twmb/franz-go from 1.15.4 to 1.16.1 in /modules/redpanda, github.com/twmb/franz-go/pkg/kadm from 1.10.0 to 1.11.0 in /modules/redpanda (#2322) @mdelapenya
chore(deps): bump github.com/hashicorp/vault-client-go from 0.3.3 to 0.4.3 in /modules/vault, github.com/tidwall/gjson from 1.17.0 to 1.17.1 in /modules/vault (#2321) @mdelapenya
chore(deps): bump github.com/jackc/pgx/v5 from 5.5.3 to 5.5.4 in /modules/postgres, github.com/jackc/pgx/v5 from 5.5.3 to 5.5.4 in /modules/cockroachdb (#2323) @mdelapenya
chore(deps): bump golang.org/x/mod from 0.12.0 to 0.16.0 (#2316) @mdelapenya
chore(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 in /modulegen (#2298) @dependabot
chore(deps): bump github.com/docker/docker from 25.0.2+incompatible to 25.0.3+incompatible (#2296) @mdelapenya
chore(deps): bump github.com/couchbase/gocb/v2 from 2.7.1 to 2.7.2 in /modules/couchbase, github.com/tidwall/gjson from 1.17.0 to 1.17.1 in /modules/couchbase (#2297) @mdelapenya
... (truncated)
Commits
08c2385 chore: use new version (v0.29.1) in modules and examples
Add client metric support to go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#4707)
Add peer attributes to spans recorded by NewClientHandler, NewServerHandler in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#4873)
Add support for cloud.account.id, cloud.availability_zone and cloud.region in the AWS ECS detector. (#4860)
Changed
The fallback options in go.opentelemetry.io/contrib/exporters/autoexport now accept factory functions. (#4891)
WithFallbackMetricReader(metric.Reader) MetricOption is replaced with func WithFallbackMetricReader(func(context.Context) (metric.Reader, error)) MetricOption.
WithFallbackSpanExporter(trace.SpanExporter) SpanOption is replaced with WithFallbackSpanExporter(func(context.Context) (trace.SpanExporter, error)) SpanOption.
The http.server.request_content_length metric in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp is changed to http.server.request.size.(#4707)
The http.server.response_content_length metric in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp is changed to http.server.response.size.(#4707)
Deprecated
The RequestCount, RequestContentLength, ResponseContentLength, ServerLatency constants in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp are deprecated. (#4707)
Add support for Summary metrics to go.opentelemetry.io/contrib/bridges/prometheus. (#5089)
Add support for Exponential (native) Histograms in go.opentelemetry.io/contrib/bridges/prometheus. (#5093)
Implemented setting the cloud.resource_id resource attribute in go.opentelemetry.io/detectors/aws/ecs based on the ECS Metadata v4 endpoint. (#5091)
Removed
The deprecated RequestCount constant in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp is removed. (#4894)
The deprecated RequestContentLength constant in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp is removed. (#4894)
The deprecated ResponseContentLength constant in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp is removed. (#4894)
The deprecated ServerLatency constant in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp is removed. (#4894)
Fixed
Retrieving the body bytes count in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp does not cause a data race anymore. (#5080)
[1.23.0/0.48.0/0.17.0/0.3.0] - 2024-02-06
Added
Add client metric support to go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#4707)
Add peer attributes to spans recorded by NewClientHandler, NewServerHandler in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#4873)
Add support for cloud.account.id, cloud.availability_zone and cloud.region in the AWS ECS detector. (#4860)
Changed
The fallback options in go.opentelemetry.io/contrib/exporters/autoexport now accept factory functions. (#4891)
WithFallbackMetricReader(metric.Reader) MetricOption is replaced with func WithFallbackMetricReader(func(context.Context) (metric.Reader, error)) MetricOption.
WithFallbackSpanExporter(trace.SpanExporter) SpanOption is replaced with WithFallbackSpanExporter(func(context.Context) (trace.SpanExporter, error)) SpanOption.
The http.server.request_content_length metric in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp is changed to http.server.request.size.(#4707)
The http.server.response_content_length metric in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp is changed to http.server.response.size.(#4707)
Deprecated
The RequestCount, RequestContentLength, ResponseContentLength, ServerLatency constants in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp are deprecated. (#4707)
Fixed
Do not panic in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc if MeterProvider returns a nil instrument. (#4875)
Add exemplar support to go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc. (#4900)
Add exemplar support to go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp. (#4900)
The go.opentelemetry.io/otel/log module is added.
This module includes OpenTelemetry Go's implementation of the Logs Bridge API.
This module is in an alpha state, it is subject to breaking changes.
See our versioning policy for more info. (#4961)
Fixed
Fix registration of multiple callbacks when using the global meter provider from go.opentelemetry.io/otel. (#4945)
Fix negative buckets in output of exponential histograms. (#4956)
[1.23.1] 2024-02-07
Fixed
Register all callbacks passed during observable instrument creation instead of just the last one multiple times in go.opentelemetry.io/otel/sdk/metric. (#4888)
[1.23.0] 2024-02-06
This release contains the first stable, v1, release of the following modules:
See our versioning policy for more information about these stability guarantees.
Added
Add WithEndpointURL option to the exporters/otlp/otlpmetric/otlpmetricgrpc, exporters/otlp/otlpmetric/otlpmetrichttp, exporters/otlp/otlptrace/otlptracegrpc and exporters/otlp/otlptrace/otlptracehttp packages. (#4808)
Experimental exemplar exporting is added to the metric SDK.
See metric documentation for more information about this feature and how to enable it. (#4871)
ErrSchemaURLConflict is added to go.opentelemetry.io/otel/sdk/resource.
This error is returned when a merge of two Resources with different (non-empty) schema URL is attempted. (#4876)
Changed
The Merge and New functions in go.opentelemetry.io/otel/sdk/resource now returns a partial result if there is a schema URL merge conflict.
Bumps the go-modules group with 21 updates:
0.11.4
0.12.0
1.0.3
1.0.4
1.3.0
1.4.1
1.5.3
1.5.4
1.17.6
1.17.7
3.24.1
3.24.2
2.15.1
2.15.2
0.27.0
0.29.1
0.45.0
0.49.0
1.19.0
1.24.0
1.19.0
1.24.0
1.19.0
1.24.0
0.19.0
0.20.0
0.0.0-20230510235704-dd950f8aeaea
0.0.0-20231006140011-7918f672742d
0.15.0
0.16.0
0.21.0
0.22.0
0.17.0
0.18.0
0.17.0
0.19.0
0.0.0-20231120223509-83a465c0220f
0.0.0-20240123012728-ef4313101c80
1.61.0
1.62.0
1.32.0
1.33.0
Updates
github.com/Microsoft/hcsshim
from 0.11.4 to 0.12.0Release notes
Sourced from github.com/Microsoft/hcsshim's releases.
... (truncated)
Commits
fe8c673
updatenewBinaryCmd
URL path handling (#2041)85086d7
Upgrade to go1.21 + fix lint errors8039310
[deps] Omni-bus dependency update (#2039)7458e58
Update Cmd IO handling (#1937)5f9910a
Fix CodeQL pipeline failure (#2032)c56a09c
Merge pull request #1998 from yyatmsft/removeInternalTests2c767380
Don't create container scratch per base layer (#2002)23e9056
tests: update docker images. (#2012)bbbf092
remove blanks40f4a91
Merge pull request #2003 from katiewasnothere/kabaldau/assigned_devices_retur...Updates
github.com/felixge/httpsnoop
from 1.0.3 to 1.0.4Release notes
Sourced from github.com/felixge/httpsnoop's releases.
Commits
c5817c2
codegen: fix generated header comment (#25)661666c
Support (ignore) 1xx status codes. (#24)8b7a371
tests: refactor benchmarks to remove test server overhead (#20)dcf093d
chore: switch to github actions (#21)Updates
github.com/go-logr/logr
from 1.3.0 to 1.4.1Release notes
Sourced from github.com/go-logr/logr's releases.
Commits
dcdc3f2
slogr: fix unintended API break in v0.8.0 (#253)5d88f52
funcr: Add LogInfoLevel Option to skip logging level in the info log (#240)177005d
build(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0e7f489a
build(deps): bump github/codeql-action from 2.22.9 to 3.22.11cf56c3b
build(deps): bump actions/setup-go from 4 to 52ad296e
build(deps): bump github/codeql-action from 2.22.8 to 2.22.9d55b4e2
Merge pull request #241 from thockin/master98ee9d9
Clean up slog testing and restore coverageb228ba8
Break examples to new file6432877
Add benchmarks for slogSinkUpdates
github.com/golang/protobuf
from 1.5.3 to 1.5.4Release notes
Sourced from github.com/golang/protobuf's releases.
Commits
75de7c0
Merge pull request #1597 from golang/updatedescb7697bb
all: update descriptor.proto to latest versionUpdates
github.com/klauspost/compress
from 1.17.6 to 1.17.7Release notes
Sourced from github.com/klauspost/compress's releases.
Commits
1e2b275
tests: Rename fuzz helpers back. (#931)68b7039
s2: Fix literal+repeat exceeds dst (#930)5895eb4
s2: Add AsyncFlush method: Complete the block without flushing (#927)4c49017
ci: Build with Go 1.22.x - deprecate 1.19 (#926)8e5ae40
Update README.mdUpdates
github.com/shirou/gopsutil/v3
from 3.24.1 to 3.24.2Release notes
Sourced from github.com/shirou/gopsutil/v3's releases.
Commits
e767a0f
Merge pull request #1599 from shirou/feat/add_macos_on_github_action_test53fb8ca
[darwin][ci]: skip frequency check on GitHub Action25c3f40
[ci]: add macos-13 and macos-14 on GitHub Action146bae2
Merge pull request #1597 from vlnaum/cwd_windowsd3057c2
cwd support windows doc8aeaf16
Merge pull request #1594 from jmatthew/openbsd-riscv64cbbb240
Merge pull request #1595 from shirou/dependabot/github_actions/golangci/golan...d0037dd
chore(deps): bump golangci/golangci-lint-action from 3.7.0 to 4.0.06ccc605
update list OpenBSD arch list27ffa28
add support for OpenBSD/riscv64Updates
github.com/sylabs/sif/v2
from 2.15.1 to 2.15.2Release notes
Sourced from github.com/sylabs/sif/v2's releases.
Commits
0ab3a72
build(deps): bump github.com/sigstore/sigstore from 1.8.1 to 1.8.2 (#354)7cb9507
Merge pull request #353 from tri-adam/go-1.22-ci5f2a42d
ci: test against Go 1.227cf41e5
Merge pull request #352 from tri-adam/fix-lint418fb7a
fix: remove unused params in function literals4960f05
Merge pull request #350 from tri-adam/golangci-lint-1.5663ad8ef
ci: bump golangci-lint to v1.56c5ee168
build(deps): bump github.com/ProtonMail/go-crypto (#345)116a179
build(deps): bump github.com/google/go-containerregistry (#349)f112619
build(deps): bump github.com/google/uuid from 1.5.0 to 1.6.0 (#348)Updates
github.com/testcontainers/testcontainers-go
from 0.27.0 to 0.29.1Release notes
Sourced from github.com/testcontainers/testcontainers-go's releases.
... (truncated)
Commits
08c2385
chore: use new version (v0.29.1) in modules and examples4d7a27e
fix: incorrect versione48323c
chore: prepare for next minor development cycle ()c17ba62
chore: use new version (v0.29.0) in modules and examples12f23f8
generic.go: GenericContainer(): clearer error message (#2327)cfd60e9
chore: confirm support for new mongo images (#2326)85361fe
Add k3s WithManifest option (#1920)755bbb8
chore(deps): bump google.golang.org/grpc in /modules/qdrant (#2281)ba92e0e
chore(deps): bump github.com/ClickHouse/clickhouse-go/v2 (#2290)245c8b0
chore(deps): bump github.com/Shopify/toxiproxy/v2 in /examples/toxiproxy (#2282)Updates
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
from 0.45.0 to 0.49.0Release notes
Sourced from go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp's releases.
... (truncated)
Changelog
Sourced from go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp's changelog.
... (truncated)
Commits
e22317f
Release v1.24.0/v0.49.0/v0.18.0/v0.4.0 (#5141)b39c371
Add links checking actions (#5136)1dc457c
Fix broken link (#5135)65f3667
support exponential histograms in the prometheus bridge (#5093)c78da11
Add support for summary metrics in the prometheus bridge (#5089)dabfd13
fix httpconv changes in docs from semconv 1.17 to 1.20 (#4799)4e9ecc2
add package comment to otelgrpc/internal/test (#5085)72f859c
Support and test Go 1.22 (#5082)43ec73b
Use an atomic.Int64 as bodyWrapper read bytes counter (#5080)ee76330
fork a subset of google.golang.org/grpc/interop to otelgrpc (#4897)Updates
go.opentelemetry.io/otel
from 1.19.0 to 1.24.0Release notes
Sourced from go.opentelemetry.io/otel's releases.
Changelog
Sourced from go.opentelemetry.io/otel's changelog.
... (truncated)
Commits
e6e186b
Release v1.24.0/v0.46.0/v0.0.1-alpha (#4966)a5ec3fc
Add experimental-logs module set (#4961)27e495d
Looks like these dependencies are updatable in another way, so this is no longer needed.