Release v1.32.0/v0.57.0/v0.26.0/v0.12.0/v0.7.0/v0.5.0/v0.4.0
Overview
Added
- Add the
WithSourceoption to thego.opentelemetry.io/contrib/bridges/otelsloglog bridge to set thecode.*attributes in the log record that includes the source location where the record was emitted. (#6253) - Add
ContextWithStartTimeandStartTimeFromContexttogo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp, which allows setting the start time using go context. (#6137) - Set the
code.*attributes ingo.opentelemetry.io/contrib/bridges/otelzapif thezap.Loggerwas created with theAddCallerorAddStacktraceoption. (#6268) - Add a
LogProcessortogo.opentelemetry.io/contrib/processors/baggagecopyto copy baggage members to log records. (#6277)- Use
baggagecopy.NewLogProcessorwhen configuring a Log Provider.NewLogProcessoraccepts aFilterfunction type that selects which baggage members are added to the log record.
- Use
Changed
- Transform raw (
slog.KindAny) attribute values to matchinglog.Valuetypes.
For example,[]string{"foo", "bar"}attribute value is now transformed tolog.SliceValue(log.StringValue("foo"), log.StringValue("bar"))instead oflog.String("[foo bar"]). (#6254) - Upgrade
go.opentelemetry.io/otel/semconv/v1.17.0togo.opentelemetry.io/otel/semconv/v1.21.0ingo.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo. (#6272) - Resource doesn't merge with defaults if a valid resource is configured in
go.opentelemetry.io/contrib/config. (#6289)
Fixed
- Transform nil attribute values to
log.Valuezero value instead of panicking ingo.opentelemetry.io/contrib/bridges/otellogrus. (#6237) - Transform nil attribute values to
log.Valuezero value instead of panicking ingo.opentelemetry.io/contrib/bridges/otelzap. (#6237) - Transform nil attribute values to
log.Valuezero value instead oflog.StringValue("<nil>")ingo.opentelemetry.io/contrib/bridges/otelslog. (#6246) - Fix
NewClientHandlerso thatrpc.client.request.*metrics measure requests instead of responses andrpc.client.responses.*metrics measure responses instead of requests ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#6250) - Fix issue in
go.opentelemetry.io/contrib/configcausingotelprom.WithResourceAsConstantLabelsconfiguration to not be respected. (#6260) otel.Handleis no longer called on a successful shutdown of the Prometheus exporter ingo.opentelemetry.io/contrib/config. (#6299)
What's Changed
- fix(deps): update module go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.56.0 by @renovate in #6251
- chore(deps): update module github.com/gabriel-vasile/mimetype to v1.4.6 by @renovate in #6247
- fix(deps): update module go.opentelemetry.io/contrib/bridges/otelslog to v0.6.0 by @renovate in #6249
- Fix panic for nil attributes and move convert funcs to internal/shared/logutil by @m1heng in #6237
- otelslog: Transform nil attribute to empty log.Value by @pellared in #6246
- fix(deps): update module github.com/prometheus/client_golang to v1.20.5 by @renovate in #6255
- fix(deps): update googleapis to 796eee8 by @renovate in #6257
- fix(deps): update module github.com/googlecloudplatform/opentelemetry-operations-go/detectors/gcp to v1.24.3 by @renovate in #6258
- oteslog: Improve transforming slog.KindAny attributes by @pellared in #6254
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate in #6259
- otelgrpc: Fix NewClientHandler to emit proper request/response metrics by @bogdandrutu in #6250
- config: fix bug where WithResourceAsConstantLabels wasn't set by @codeboten in #6260
- otelslog: Add WithSource option by @Jesse0Michael in #6253
- otelhttp: Allow setting start time using context by @dashpole in #6137
- chore(deps): update module github.com/bytedance/sonic/loader to v0.2.1 by @renovate in #6267
- chore(deps): update module github.com/ebitengine/purego to v0.8.1 by @renovate in #6269
- fix(deps): update googleapis to 324edc3 by @renovate in #6270
- chore(deps): update prom/prometheus docker tag to v2.55.0 by @renovate in #6271
- otelzap: Add caller and stacktrace to attributes if present by @suniastar in #6268
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.112.0 by @renovate in #6274
- chore(deps): update kubernetes packages to v0.31.2 by @renovate in #6273
- chore(deps): update module github.com/prometheus/common to v0.60.1 by @renovate in #6275
- fix(deps): update module github.com/aws/aws-sdk-go-v2/service/s3 to v1.66.1 by @renovate in #6276
- fix(deps): update module github.com/atombender/go-jsonschema to v0.17.0 by @renovate in #6278
- otellogr: Implement LevelSeverity, Enabled by @scorpionknifes in #6206
- otelmongo semconv 1.21.0 bump by @prestonvasquez in #6272
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate in #6280
- Add Cheng-Zhen as a triager by @dmathieu in #6279
- fix(deps): update module github.com/aws/aws-sdk-go-v2/service/route53 to v1.46.0 by @renovate in #6284
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.23.0 by @renovate in #6288
- fix(deps): update module github.com/googlecloudplatform/opentelemetry-operations-go/detectors/gcp to v1.25.0 by @renovate in #6287
- fix(deps): update module github.com/shirou/gopsutil/v4 to v4.24.10 by @renovate in #6286
- chore(deps): update k8s.io/utils digest to 3ea5e8c by @renovate in #6290
- config: update resource to return only configured values by @codeboten in #6289
- feat: add LogProcessor to baggagecopy by @Jesse0Michael in #6277
- fix(deps): update googleapis to dd2ea8e by @renovate in #6292
- chore(deps): update k8s.io/utils digest to 6fe5fd8 by @renovate in #6291
- chore(deps): update module github.com/bytedance/sonic to v1.12.4 by @renovate in #6293
- chore(deps): update prom/prometheus docker tag to v2.55.1 by @renovate in #6297
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate in #6298
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.113.0 by @renovate in #6301
- fix(deps): update module go.opentelemetry.io/build-tools/gotmpl to v0.15.0 by @renovate in #6303
- fix(deps): update module go.opentelemetry.io/build-tools/crosslink to v0.15.0 by @renovate in #6302
- config: don't log an error on close by @codeboten in #6299
- chore(deps): update module github.com/klauspost/cpuid/v2 to v2.2.9 by @renovate in #6304
- fix(deps): update module go.opentelemetry.io/build-tools/multimod to v0.15.0 by @renovate in #6305
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate in #6308
- fix(deps): update module google.golang.org/grpc to v1.68.0 by @renovate in #6306
- Release v1.32.0/v0.57.0/v0.26.0/v0.12.0/v0.7.0/v0.5.0/v0.4.0 by @pellared in #6311
New Contributors
- @m1heng made their first contribution in #6237
- @Jesse0Michael made their first contribution in #6253
- @suniastar made their first contribution in #6268
Full Changelog: v1.31.0...v1.32.0