Skip to content

Release v1.32.0/v0.57.0/v0.26.0/v0.12.0/v0.7.0/v0.5.0/v0.4.0

Compare
Choose a tag to compare
@pellared pellared released this 08 Nov 19:24
· 170 commits to main since this release
v1.32.0
519f10d

Overview

Added

  • Add the WithSource option to the go.opentelemetry.io/contrib/bridges/otelslog log bridge to set the code.* attributes in the log record that includes the source location where the record was emitted. (#6253)
  • Add ContextWithStartTime and StartTimeFromContext to go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp, which allows setting the start time using go context. (#6137)
  • Set the code.* attributes in go.opentelemetry.io/contrib/bridges/otelzap if the zap.Logger was created with the AddCaller or AddStacktrace option. (#6268)
  • Add a LogProcessor to go.opentelemetry.io/contrib/processors/baggagecopy to copy baggage members to log records. (#6277)
    • Use baggagecopy.NewLogProcessor when configuring a Log Provider.
      • NewLogProcessor accepts a Filter function type that selects which baggage members are added to the log record.

Changed

  • Transform raw (slog.KindAny) attribute values to matching log.Value types.
    For example, []string{"foo", "bar"} attribute value is now transformed to log.SliceValue(log.StringValue("foo"), log.StringValue("bar")) instead of log.String("[foo bar"]). (#6254)
  • Upgrade go.opentelemetry.io/otel/semconv/v1.17.0 to go.opentelemetry.io/otel/semconv/v1.21.0 in go.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.Value zero value instead of panicking in go.opentelemetry.io/contrib/bridges/otellogrus. (#6237)
  • Transform nil attribute values to log.Value zero value instead of panicking in go.opentelemetry.io/contrib/bridges/otelzap. (#6237)
  • Transform nil attribute values to log.Value zero value instead of log.StringValue("<nil>") in go.opentelemetry.io/contrib/bridges/otelslog. (#6246)
  • Fix NewClientHandler so that rpc.client.request.* metrics measure requests instead of responses and rpc.client.responses.* metrics measure responses instead of requests in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#6250)
  • Fix issue in go.opentelemetry.io/contrib/config causing otelprom.WithResourceAsConstantLabels configuration to not be respected. (#6260)
  • otel.Handle is no longer called on a successful shutdown of the Prometheus exporter in go.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

Full Changelog: v1.31.0...v1.32.0