github open-telemetry/opentelemetry-go-contrib v1.44.0
v1.44.0/v2.5.1/v0.69.0/v0.37.1/v0.24.0/v0.19.0/v0.16.1/v0.16.0

5 hours ago

Added

  • Add error.type attribute to http.client.request.duration for transport failures in otelhttp. (#8801)
  • Add examples for prometheus compatibility document. (#8716)
  • Add support for cardinality_limits in PeriodicMetricReader in otelconf. (#8885)
  • Add Resource method to SDK in go.opentelemetry.io/contrib/otelconf/x to expose the resolved SDK resource from declarative configuration. (#8913)
  • Add go.opentelemetry.io/contrib/detectors/hetzner, a new resource detector for Hetzner Cloud servers, ported from github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/hetzner. Detects cloud.provider, cloud.platform, cloud.region, cloud.availability_zone, host.id, and host.name. (#8979)

Changed

  • Set error field as record.SetErr instead of a plain attribute in go.opentelemetry.io/contrib/bridges/otellogrus. (#8776)
  • Set the "error" field (e.g. created via zap.Error) as record.SetErr instead of a plain attribute in go.opentelemetry.io/contrib/bridges/otelzap. (#8719)
  • Set fields implementing error interface from slog records as record.SetErr instead of plain attributes in go.opentelemetry.io/contrib/bridges/otelslog. (#8774)
  • Set emitted errors in go.opentelemetry.io/contrib/bridges/otellogr as record errors (Record.SetErr) instead of exception.message attributes. (#8775)

Fixed

  • Fix header attributes lost when using sub-spans in go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace. (#8797)
  • Validate encoding configuration for OTLP HTTP exporters in go.opentelemetry.io/contrib/otelconf. (#8772)
  • Remove the custom body wrapper from the request's body after the request is processed to allow body type comparisons with the original type in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp and go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#6914)
  • Unknown or empty HTTP methods now report "_OTHER" instead of "GET" across all HTTP instrumentations to align with OpenTelemetry semantic conventions. (#8868)
  • The default span name formatter in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp now conforms to the OpenTelemetry HTTP semantic conventions for server span names. (#8871)
    • The default span name is now {method} {route} (e.g. GET /foo/{id}) when a route pattern is available, or {method} (e.g. GET) otherwise.

Removed

  • Remove the deprecated WithSpanOptions option in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#8991)

What's Changed

  • otelconf: validate encoding configuration for OTLP HTTP exporters by @sonalgaud12 in #8772
  • fix(deps): update module github.com/aws/aws-sdk-go-v2/service/s3 to v1.99.0 by @renovate[bot] in #8780
  • chore(deps): update prom/prometheus docker tag to v3.11.1 by @renovate[bot] in #8779
  • otellogrus: Set error field as record.SetErr by @sonalgaud12 in #8778
  • chore(deps): update module golang.org/x/sys to v0.43.0 by @renovate[bot] in #8783
  • chore(deps): update golang.org/x/telemetry digest to 93c7c8a by @renovate[bot] in #8786
  • chore(deps): update module github.com/mattn/go-isatty to v0.0.21 by @renovate[bot] in #8787
  • chore(deps): update module github.com/mattn/go-runewidth to v0.0.23 by @renovate[bot] in #8788
  • chore(deps): update golang.org/x by @renovate[bot] in #8791
  • chore(deps): update actions/github-script action to v9 by @renovate[bot] in #8795
  • fix(deps): update golang.org/x by @renovate[bot] in #8794
  • otelzap: set error field as record.SetErr by @iblancasa in #8719
  • fix(deps): update golang.org/x to 746e56f by @renovate[bot] in #8796
  • chore(deps): update module golang.org/x/arch to v0.26.0 by @renovate[bot] in #8798
  • Check if otelgrpc metrics are enabled by @dashpole in #8792
  • chore(deps): update actions/upload-artifact action to v7.0.1 by @renovate[bot] in #8800
  • Check instrument enabled in deprecatedruntime by @dashpole in #8793
  • chore(deps): update module github.com/ashanbrown/forbidigo/v2 to v2.3.1 by @renovate[bot] in #8804
  • chore(deps): update module github.com/ashanbrown/makezero/v2 to v2.2.1 by @renovate[bot] in #8802
  • chore(deps): update module github.com/manuelarte/funcorder to v0.6.0 by @renovate[bot] in #8803
  • chore(deps): update prom/prometheus docker tag to v3.11.2 by @renovate[bot] in #8806
  • chore(deps): update googleapis to 3e5c5a5 by @renovate[bot] in #8807
  • chore(deps): update actions/cache action to v5.0.5 by @renovate[bot] in #8805
  • chore(deps): update googleapis to afd174a by @renovate[bot] in #8811
  • fix(deps): update module golang.org/x/vuln to v1.2.0 by @renovate[bot] in #8810
  • chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.150.1 by @renovate[bot] in #8809
  • Add snippets for prometheus clients compatibility documentation by @jack-berg in #8716
  • build(deps): bump google.golang.org/grpc from 1.79.2 to 1.79.3 in /examples/prometheus-compatibility by @dependabot[bot] in #8813
  • build(deps): bump go.opentelemetry.io/otel/sdk from 1.42.0 to 1.43.0 in /examples/prometheus-compatibility by @dependabot[bot] in #8814
  • build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp from 1.42.0 to 1.43.0 in /examples/prometheus-compatibility by @dependabot[bot] in #8812
  • chore(deps): update golang.org/x by @renovate[bot] in #8818
  • chore(deps): update module go.yaml.in/yaml/v2 to v2.4.4 by @renovate[bot] in #8817
  • chore(deps): update module github.com/prometheus/common to v0.67.5 by @renovate[bot] in #8820
  • chore(deps): update googleapis to afd174a by @renovate[bot] in #8816
  • chore(deps): update module github.com/dave/dst to v0.27.4 by @renovate[bot] in #8819
  • chore(deps): update module github.com/prometheus/procfs to v0.20.1 by @renovate[bot] in #8821
  • fix(deps): update module go.mongodb.org/mongo-driver/v2 to v2.5.1 by @renovate[bot] in #8825
  • chore(deps): update k8s.io/kube-openapi digest to ec9c827 by @renovate[bot] in #8824
  • chore(deps): update golang.org/x/telemetry digest to fac6e1c by @renovate[bot] in #8823
  • otelhttp: record error.type metric on transport failures by @sonalgaud12 in #8801
  • test(otelconf): replace expiring TLS fixtures with runtime certs by @MrAlias in #8835
  • build(deps): bump github.com/go-git/go-git/v5 from 5.17.2 to 5.18.0 in /tools by @dependabot[bot] in #8838
  • otelhttp: Add sonalgaud12 as codeowner by @sonalgaud12 in #8831
  • fix(deps): update kubernetes monorepo to v0.35.4 by @renovate[bot] in #8827
  • chore(deps): update github/codeql-action action to v4.35.2 by @renovate[bot] in #8826
  • chore(deps): update module github.com/labstack/gommon to v0.5.0 by @renovate[bot] in #8843
  • chore(deps): update module github.com/dlclark/regexp2 to v1.12.0 by @renovate[bot] in #8840
  • fix(deps): update module github.com/aws/smithy-go to v1.25.0 by @renovate[bot] in #8833
  • chore(deps): update go-openapi packages by @renovate[bot] in #8828
  • chore(deps): update module sigs.k8s.io/structured-merge-diff/v6 to v6.4.0 by @renovate[bot] in #8832
  • chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.29.0 by @renovate[bot] in #8829
  • fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #8836
  • otellogr: set error field as record.SetErr by @iblancasa in #8775
  • chore(deps): update googleapis to e10c466 by @renovate[bot] in #8849
  • chore(deps): update module go.opentelemetry.io/build-tools to v0.30.0 by @renovate[bot] in #8845
  • fix(deps): update build-tools to v0.30.0 by @renovate[bot] in #8846
  • test: improve sampler startup test with cleanup and eventual assertion by @pellared in #8848
  • chore(deps): update golang.org/x/telemetry digest to 392afab by @renovate[bot] in #8853
  • Use dynamic certs everywhere in otelconf and remove the static ones by @dmathieu in #8844
  • fix(deps): update module golang.org/x/vuln to v1.3.0 by @renovate[bot] in #8859
  • otelconf: improve exporter tests stability by @pellared in #8855
  • fix(deps): update module github.com/aws/aws-sdk-go-v2/service/s3 to v1.100.0 by @renovate[bot] in #8857
  • fix(deps): update module github.com/aws/smithy-go to v1.25.1 by @renovate[bot] in #8862
  • otelconf: Improve TestPrometheusReaderDotStyleLabels by @sonalgaud12 in #8856
  • chore(deps): update golang.org/x/telemetry digest to 329d219 by @renovate[bot] in #8861
  • chore(deps): update module github.com/sourcegraph/go-diff to v0.8.0 by @renovate[bot] in #8864
  • Auto-ping codeowners on issues by @dmathieu in #8782
  • chore(deps): update module github.com/mattn/go-isatty to v0.0.22 by @renovate[bot] in #8870
  • chore(deps): update module github.com/bytedance/sonic to v1.15.1 by @renovate[bot] in #8872
  • otelslog: set error field as record.SetErr by @iblancasa in #8774
  • fix(deps): update module go.uber.org/zap to v1.28.0 by @renovate[bot] in #8877
  • fix(deps): update module go.mongodb.org/mongo-driver/v2 to v2.6.0 by @renovate[bot] in #8876
  • chore(deps): update module github.com/securego/gosec/v2 to v2.26.1 by @renovate[bot] in #8878
  • chore(deps): update k8s.io/kube-openapi digest to 8949caa by @renovate[bot] in #8875
  • chore(deps): update prom/prometheus docker tag to v3.11.3 by @renovate[bot] in #8874
  • chore(deps): update googleapis to 7cedc36 by @renovate[bot] in #8873
  • otelhttp: Add test scenarios for the 'no filters' case by @Leshana in #8865
  • chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.151.0 by @renovate[bot] in #8882
  • chore(deps): update golang.org/x/telemetry digest to 76f71b9 by @renovate[bot] in #8880
  • fix(instrumentation): http fallback method to _OTHER by @Rahul-Baradol in #8868
  • chore(deps): update module github.com/alecthomas/chroma/v2 to v2.24.0 by @renovate[bot] in #8884
  • jaegerremote: stabilize TestRemotelyControlledSampler by @pellared in #8883
  • xrayconfig: improve mock collector synchronization and test assertions by @pellared in #8881
  • chore(deps): update module github.com/fsnotify/fsnotify to v1.10.0 by @renovate[bot] in #8887
  • fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #8886
  • chore(deps): update module github.com/cloudwego/base64x to v0.1.7 by @renovate[bot] in #8889
  • chore(deps): update module github.com/alecthomas/chroma/v2 to v2.24.1 by @renovate[bot] in #8890
  • chore(deps): update module github.com/bombsimon/wsl/v5 to v5.8.0 by @renovate[bot] in #8894
  • chore(deps): update k8s.io/kube-openapi digest to c903c40 by @renovate[bot] in #8891
  • chore(deps): update module github.com/klauspost/compress to v1.18.6 by @renovate[bot] in #8893
  • chore(deps): update module github.com/masterminds/semver/v3 to v3.5.0 by @renovate[bot] in #8892
  • fix(deps): update module github.com/shirou/gopsutil/v4 to v4.26.4 by @renovate[bot] in #8895
  • chore(deps): update github/codeql-action action to v4.35.3 by @renovate[bot] in #8897
  • chore(deps): update k8s.io/kube-openapi digest to 927ab1f by @renovate[bot] in #8899
  • chore(deps): update module github.com/pelletier/go-toml/v2 to v2.3.1 by @renovate[bot] in #8900
  • fix(deps): update module github.com/labstack/echo/v4 to v4.15.2 by @renovate[bot] in #8901
  • chore(deps): update module github.com/pjbgf/sha1cd to v0.6.0 by @renovate[bot] in #8896
  • chore(deps): update k8s.io/kube-openapi digest to b7f5293 by @renovate[bot] in #8902
  • fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.12.1 by @renovate[bot] in #8898
  • fix(deps): update module google.golang.org/grpc to v1.81.0 by @renovate[bot] in #8905
  • chore(deps): update github.com/charmbracelet/ultraviolet digest to 6603726 by @renovate[bot] in #8906
  • chore(deps): update github.com/golangci/rowserrcheck digest to 8d53bbc by @renovate[bot] in #8907
  • Fix otelhttp span names to match the semantic conventions by @dmathieu in #8871
  • otelhttptrace: fix header attributes lost when using sub-spans by @imorte in #8797
  • chore(deps): update module github.com/ryancurrah/gomodguard/v2 to v2.1.3 by @renovate[bot] in #8908
  • chore(deps): update module github.com/uudashr/iface to v1.4.2 by @renovate[bot] in #8909
  • chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.2 by @renovate[bot] in #8911
  • chore(deps): update module github.com/fsnotify/fsnotify to v1.10.1 by @renovate[bot] in #8910
  • chore(deps): update googleapis to 60b97b3 by @renovate[bot] in #8916
  • chore(deps): update k8s.io/kube-openapi digest to 7bfe71f by @renovate[bot] in #8919
  • chore(deps): update k8s.io/kube-openapi digest to 3334182 by @renovate[bot] in #8921
  • fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.12.2 by @renovate[bot] in #8922
  • chore(deps): update module github.com/go-git/go-billy/v5 to v5.9.0 by @renovate[bot] in #8923
  • chore(deps): update golang.org/x/telemetry digest to 5a0966d by @renovate[bot] in #8925
  • chore(deps): update module github.com/ghostiam/protogetter to v0.3.21 by @renovate[bot] in #8926
  • chore(deps): update module github.com/go-git/go-git/v5 to v5.19.0 by @renovate[bot] in #8927
  • chore(deps): update module github.com/raeperd/recvcheck to v0.3.0 by @renovate[bot] in #8928
  • fix(deps): update module github.com/aws/aws-sdk-go-v2/service/s3 to v1.101.0 by @renovate[bot] in #8929
  • Add SDK.Resource() to otelconf/x by @iblancasa in #8913
  • chore(deps): update module github.com/abirdcfly/dupword to v0.1.8 by @renovate[bot] in #8931
  • chore(deps): update golang.org/x by @renovate[bot] in #8932
  • chore(deps): update module github.com/jgautheron/goconst to v1.10.1 by @renovate[bot] in #8930
  • chore(deps): update k8s.io/utils digest to ff6756f by @renovate[bot] in #8934
  • chore(deps): update k8s.io/kube-openapi digest to 19c3011 by @renovate[bot] in #8936
  • chore(deps): update github/codeql-action action to v4.35.4 by @renovate[bot] in #8933
  • chore(deps): update golang.org/x by @renovate[bot] in #8937
  • docs: Add SIG meeting info and welcoming language by @cijothomas in #8935
  • chore(deps): update module mvdan.cc/gofumpt to v0.10.0 by @renovate[bot] in #8917
  • chore(deps): update golang.org/x by @renovate[bot] in #8938
  • fix(deps): update golang.org/x by @renovate[bot] in #8971
  • fix(deps): update golang.org/x/exp digest to 74f9aab by @renovate[bot] in #8972
  • chore(deps): update k8s.io/kube-openapi digest to b540ad9 by @renovate[bot] in #8973
  • chore(deps): update module github.com/quic-go/quic-go to v0.59.1 by @renovate[bot] in #8974
  • chore(deps): update github.com/charmbracelet/ultraviolet digest to c840852 by @renovate[bot] in #8976
  • chore(deps): update googleapis to 3700d41 by @renovate[bot] in #8978
  • chore(deps): update k8s.io/kube-openapi digest to da4e56f by @renovate[bot] in #8980
  • detectors/hetzner: add Hetzner Cloud resource detector by @paulojmdias in #8979
  • bump OTel Go by @pellared in #9006
  • chore: re-enable revive.context-as-argument rule by @alexandear in #9002
  • chore(deps): update module github.com/tklauser/go-sysconf to v0.4.0 by @renovate[bot] in #8981
  • fix(deps): update golang.org/x by @renovate[bot] in #9015
  • chore(deps): update module google.golang.org/protobuf to v1.36.11 by @renovate[bot] in #8997
  • chore(deps): update github.com/charmbracelet/ultraviolet digest to 948f455 by @renovate[bot] in #9013
  • chore(deps): update module github.com/go-git/go-git/v5 to v5.19.1 [security] by @renovate[bot] in #9005
  • chore(deps): update googleapis to 3dc84a4 by @renovate[bot] in #9009
  • chore(deps): update module github.com/uudashr/iface to v1.5.0 by @renovate[bot] in #8992
  • chore(deps): update module 4d63.com/gocheckcompilerdirectives to v1.4.0 by @renovate[bot] in #8988
  • chore(deps): update module github.com/kisielk/errcheck to v1.20.0 by @renovate[bot] in #8987
  • chore(deps): update k8s.io/kube-openapi digest to aa012df by @renovate[bot] in #8986
  • chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.153.0 by @renovate[bot] in #8983
  • fix(deps): update module go.opentelemetry.io/otel to v1.44.0 by @renovate[bot] in #9028
  • fix(deps): update module github.com/jaegertracing/jaeger-idl to v0.9.0 by @renovate[bot] in #9027
  • chore(deps): update module github.com/prometheus/procfs to v0.20.1 by @renovate[bot] in #9025
  • chore(deps): update github/codeql-action action to v4.36.0 by @renovate[bot] in #9023
  • fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #9021
  • chore(deps): update module github.com/ebitengine/purego to v0.10.1 by @renovate[bot] in #9020
  • chore(deps): update module github.com/clickhouse/clickhouse-go-linter to v1.2.1 by @renovate[bot] in #9019
  • chore(deps): update module github.com/antonboom/nilnil to v1.1.2 by @renovate[bot] in #9018
  • chore(deps): update codecov/codecov-action action to v6.0.1 by @renovate[bot] in #9016
  • chore(deps): update module github.com/prometheus/common to v0.67.5 by @renovate[bot] in #9024
  • fix(deps): update module google.golang.org/grpc to v1.81.1 by @renovate[bot] in #9022
  • chore(deps): update module github.com/antonboom/errname to v1.1.2 by @renovate[bot] in #9017
  • feat(otelgrpc): remove deprecated WithSpanOptions by @SAY-5 in #8991
  • chore(deps): update module github.com/jgautheron/goconst to v1.10.2 by @renovate[bot] in #9030
  • chore(deps): update module go.yaml.in/yaml/v2 to v2.4.4 by @renovate[bot] in #8994
  • otelconf: implement cardinality_limits support in PeriodicMetricReader by @sonalgaud12 in #8885
  • docs(otelhttptrace): add performance guidance for WithoutSubSpans by @imorte in #8785
  • otelhttp: Remove custom wrapper after handling request by @VirrageS in #6914
  • fix(deps): update module github.com/aws/smithy-go to v1.26.0 by @renovate[bot] in #9032
  • fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #9031
  • fix(deps): update module github.com/hetznercloud/hcloud-go/v2 to v2.41.2 by @renovate[bot] in #9026
  • chore(deps): update module github.com/alecthomas/chroma/v2 to v2.26.0 by @renovate[bot] in #9034
  • Release v1.44.0/v2.5.1/v0.69.0/v0.37.1/v0.24.0/v0.19.0/v0.16.1/v0.16.0 by @pellared in #9033

New Contributors

Full Changelog: v1.43.0...v1.44.0

Don't miss a new opentelemetry-go-contrib release

NewReleases is sending notifications on new releases.