Releases: open-telemetry/opentelemetry-go-contrib
Release list
Release v1.45.0/v2.5.2/v0.70.0/v0.37.2/v0.25.0/v0.20.0/v0.16.2/v0.17.0
Overview
Added
- Add
go.opentelemetry.io/contrib/detectors/ibmcloud/vpc, a new resource detector for IBM Cloud VPC virtual server instances, ported fromgithub.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/ibmcloud/vpc. Detectscloud.provider,cloud.platform,cloud.region,cloud.availability_zone,cloud.account.id,cloud.resource_id,host.id,host.image.id,host.image.name,host.name, andhost.type. (#9011) - Add
go.opentelemetry.io/contrib/detectors/k8sapi, a new resource detector that queries the Kubernetes API. Detectsk8s.node.nameandk8s.node.uidwhenK8S_NODE_NAMEis set via the downward API, andk8s.cluster.uidderived from the kube-system namespace UID (works on any Kubernetes distribution). (#9108) - Add new
elasticbeanstalkresource detector for AWS Elastic Beanstalk, ported fromprocessor/resourcedetectionprocessor/internal/aws/elasticbeanstalkin opentelemetry-collector-contrib. (#8993) - The resource created by
go.opentelemetry.io/contrib/otelconfnow includes default SDK attributes. (#8990) - Add support for the
aws.ecsresource detector ingo.opentelemetry.io/contrib/otelconf/x. (#8915) - Add support for the
aws.eksresource detector ingo.opentelemetry.io/contrib/otelconf/x. (#9138) - Add support for the
azure.vmresource detector ingo.opentelemetry.io/contrib/otelconf/x. (#9074) - Add support for the
gcpresource detector ingo.opentelemetry.io/contrib/otelconf/x. (#9137) - Add
go.opentelemetry.io/contrib/detectors/azure/azureappservice, a new resource detector for Azure App Service. Detectscloud.*,service.name,azure.resource_group.name,azure.app_service.instance.id, anddeployment.environment.namefrom theWEBSITE_*andREGION_NAMEenvironment variables. (#9289) - Add
azurecontainerappsresource detector for Azure Container Apps. (#8939) - Add
go.opentelemetry.io/contrib/detectors/azure/azurefunctions, a new resource detector for Azure Functions. Detectscloud.*,service.name,azure.resource_group.name,faas.instance, anddeployment.environment.namefrom theFUNCTIONS_*,WEBSITE_*,CONTAINER_NAME, andREGION_NAMEenvironment variables. (#9290) - Add
NewResourceDetectoralong with theWithAttributeFilterandWithTagKeyFilteroptions ingo.opentelemetry.io/contrib/detectors/azure/azurevm.WithAttributeFilterrestricts the returned resource to the attributes the filter accepts.WithTagKeyFilteropts in toazure.tag.<name>attributes for the VM tags whose keys satisfy the provided predicate; no VM tags are emitted without it. (#9162) - Add
go.opentelemetry.io/contrib/detectors/vultr— a new resource detector for Vultr Cloud Compute instances, ported fromprocessor/resourcedetectionprocessor/internal/vultrinopentelemetry-collector-contrib. Detectscloud.provider,cloud.platform,cloud.region,host.id, andhost.name. (#8995)
Changed
- Upgrade
go.opentelemetry.io/otel/semconvtov1.43.0, including updates across instrumentation and detector modules.
See semantic-conventions v1.43.0 release for complete details. (#9337) - Upgrade
go.opentelemetry.io/otel/semconvtov1.42.0, including updates across instrumentation and detector modules.
See semantic-conventions v1.42.0 release for complete details. (#9196) - Use direct normalized-key lookups in
Carrier.GetandCarrier.Keysingo.opentelemetry.io/contrib/propagators/envcar. (#9112) - Update log bridge conversions to use attribute key-values instead of the removed log key-values in
go.opentelemetry.io/contrib/bridges/otellogr,go.opentelemetry.io/contrib/bridges/otellogrus,go.opentelemetry.io/contrib/bridges/otelslog, andgo.opentelemetry.io/contrib/bridges/otelzap. (#9180) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmuxhas been replaced byconst Version. (#9076) - Set
error.typeattribute instead of addingexceptionspan events ingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#8977) - Prefer the gRPC dial target over the resolved peer IP for the
server.addressandserver.portattributes ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#8904) - The detector in
go.opentelemetry.io/contrib/detectors/azure/azurevmnow also detectscloud.account.id,cloud.availability_zone,azure.vm.name,azure.vm.size,azure.vm.scaleset.name, andazure.resource_group.name, and prefersosProfile.computerNameforhost.name(falling back to the VM name), reconciling it with the collector-contrib Azure resource detector. (#9162)
Fixed
- Fix Prometheus reader resource label filter configuration in
go.opentelemetry.io/contrib/otelconf/v0.2.0. (#9062) - Apply
resource.detection/development.attributes.includedandexcludedfiltering to resource detector attributes ingo.opentelemetry.io/contrib/otelconf/x. (#9131) - Honor the context configured with
WithContextwhen constructing resources ingo.opentelemetry.io/contrib/otelconfandgo.opentelemetry.io/contrib/otelconf/x. (#9160) - Handle nil response bodies from custom
RoundTripperimplementations ingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttpwithout panicking. (#9184) - Fix incorrect (overestimated) sum calculation for runtime histograms in
go.opentelemetry.io/contrib/instrumentation/runtime. (#9063) - Fix
Severity.UnmarshalTextround trip for positiveFATALoffsets above the named range ingo.opentelemetry.io/contrib/processors/minsev. (#9197) - Reduce binary size by fetching ConfigMaps via
rest.HTTPClientForinstead of the Kubernetes clientset ingo.opentelemetry.io/contrib/detectors/aws/eks. (#9284) TextMapPropagatoringo.opentelemetry.io/contrib/propagators/autopropreturns the no-op propagator for empty input, matching the behavior ofnone. An unknownOTEL_PROPAGATORSvalue still returns an error with a nil propagator soNewTextMapPropagatorfalls back to the default TraceContext and Baggage propagators instead of disabling propagation. (#9163)- Preserve error-valued attributes nested in a group as grouped attributes instead of silently dropping them in
go.opentelemetry.io/contrib/bridges/otelslog. (#9238) - Fix a data race in
go.opentelemetry.io/contrib/bridges/otelslogwhere concurrentHandlecalls could corrupt each other's log attributes becausekvBuffer.KeyValuesreturned a slice aliasing a shared buffer. (#9229) - Avoid a panic in
go.opentelemetry.io/contrib/bridges/otelzapwhen a malformed error field contains a nil or non-error value. (#9068) - Use
azure.container_app.instance.idinstead ofservice.instance.idfor the replica name detected bygo.opentelemetry.io/contrib/detectors/azure/azurecontainerapps. (#9208) - Preserve the underlying metadata errors returned with partial resources from
go.opentelemetry.io/contrib/detectors/gcp. (#9069) - Copy
MultipartFormback to the requestotelmux.Middlewarewas given after the wrapped handler returns, sonet/httpcan find and remove the temp filesParseMultipartFormcreated on the context-derived request copy, whenotelmux.Middlewarewraps a handler directly, ingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. This does not cover a handler panic, nor the commonrouter.Use(...)integration, wheregorilla/mux's own routing step makes an additional request copy the middleware cannot write back through; see gorilla/mux#777. (#9361) - Report the
b3header fromFields()for the defaultB3Unspecifiedsingle-header injection encoding, matching whatInjectwrites, ingo.opentelemetry.io/contrib/propagators/b3. (#9273) - Fix
go.opentelemetry.io/contrib/propagators/aws/xrayproducing deterministic trace and span IDs when the seed read fromcrypto/randsilently failed, by switching tomath/rand/v2's concurrency-safe top-level generator. (#9359) - Strip connection number suffix from connection ID in
go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongoto prevent unbounded metric cardinality. (#9352) - Strip connection number suffix from connection ID in
go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongoso thenetwork.peer.addressandnet.peer.namespan attributes reflect the actual host instead of the raw connection ID. (#9352) - Record
network.protocol.version(andnetwork.protocol.name) from the response's negotiated protocol instead of the request's stampedProtoingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp, so an HTTP/1.1-shaped request that gets upgraded to HTTP/2 via ALPN is no longer misreported as HTTP/1.1 on the client span and request metrics. (#9371)
What's Changed
- chore(deps): update module github.com/alecthomas/chroma/v2 to v2.26.1 by @renovate[bot] in #9041
- fix(deps): update golang.org/x to c761662 by @renovate[bot] in #9037
- chore(deps): update module github.com/rogpeppe/go-internal to v1.15.0 by @renovate[bot] in #9035
- chore(deps): update prom/prometheus docker tag to v3.12.0 by @renovate[bot] in #9040
- chore(deps): update module github.com/mattn/go-colorable to v0.1.15 by @renovate[bot] in #9061
...
v1.44.0/v2.5.1/v0.69.0/v0.37.1/v0.24.0/v0.19.0/v0.16.1/v0.16.0
Added
- Add
error.typeattribute tohttp.client.request.durationfor transport failures inotelhttp. (#8801) - Add examples for prometheus compatibility document. (#8716)
- Add support for
cardinality_limitsinPeriodicMetricReaderinotelconf. (#8885) - Add
Resourcemethod toSDKingo.opentelemetry.io/contrib/otelconf/xto 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 fromgithub.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/hetzner. Detectscloud.provider,cloud.platform,cloud.region,cloud.availability_zone,host.id, andhost.name. (#8979)
Changed
- Set error field as
record.SetErrinstead of a plain attribute ingo.opentelemetry.io/contrib/bridges/otellogrus. (#8776) - Set the "error" field (e.g. created via
zap.Error) asrecord.SetErrinstead of a plain attribute ingo.opentelemetry.io/contrib/bridges/otelzap. (#8719) - Set fields implementing
errorinterface fromslogrecords asrecord.SetErrinstead of plain attributes ingo.opentelemetry.io/contrib/bridges/otelslog. (#8774) - Set emitted errors in
go.opentelemetry.io/contrib/bridges/otellogras record errors (Record.SetErr) instead ofexception.messageattributes. (#8775)
Fixed
- Fix header attributes lost when using sub-spans in
go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace. (#8797) - Validate
encodingconfiguration for OTLP HTTP exporters ingo.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/otelhttpandgo.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/otelhttpnow 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.
- The default span name is now
Removed
- Remove the deprecated
WithSpanOptionsoption ingo.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.SetErrby @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 https://github.com/open-telemetry/opentelemetry-go-cont...
Release v1.43.0/v2.5.0/v0.68.0/v0.37.0/v0.23.0/v0.18.0/v0.16.0/v0.15.0
Added
- Add
Resourcemethod toSDKingo.opentelemetry.io/contrib/otelconf/v0.3.0to expose the resolved SDK resource from declarative configuration. (#8660) - Add support to set the configuration file via
OTEL_CONFIG_FILEingo.opentelemetry.io/contrib/otelconf. (#8639) - Add support for
serviceresource detector ingo.opentelemetry.io/contrib/otelconf. (#8674) - Add support for
attribute_count_limitandattribute_value_length_limitin tracer provider configuration ingo.opentelemetry.io/contrib/otelconf. (#8687) - Add support for
attribute_count_limitandattribute_value_length_limitin logger provider configuration ingo.opentelemetry.io/contrib/otelconf. (#8686) - Add support for
server.addressandserver.portattributes ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#8723) - Add support for
OTEL_SEMCONV_STABILITY_OPT_INingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. Supported values arerpc(default),rpc/dupandrpc/old. (#8726) - Add the
http.routemetric attribute togo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#8632)
Changed
- Prepend
_to the normalized environment variable name when the key starts with a digit ingo.opentelemetry.io/contrib/propagators/envcar, ensuring POSIX compliance. (#8678) - Move experimental types from
go.opentelemetry.io/contrib/otelconftogo.opentelemetry.io/contrib/otelconf/x. (#8529) - Normalize cached environment variable names in
go.opentelemetry.io/contrib/propagators/envcar, aligningCarrier.Keysoutput with the carrier's normalized key format. (#8761)
Fixed
- Fix
go.opentelemetry.io/contrib/otelconfPrometheus reader converting OTel dot-style label names (e.g.service.name) to underscore-style (service_name) intarget_infowhen bothwithout_type_suffixandwithout_unitsare set. UseNoTranslationinstead ofUnderscoreEscapingWithoutSuffixesto preserve dot-style label names while still suppressing metric name suffixes. (#8763) - Limit the request body size at 1MB in
go.opentelemetry.io/contrib/zpages. (#8656) - Fix server spans using the client's address and port for
server.addressandserver.portattributes ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#8723)
Removed
- Host ID resource detector has been removed when configuring the
hostresource detector ingo.opentelemetry.io/contrib/otelconf. (#8581)
Deprecated
- Deprecate
OTEL_EXPERIMENTAL_CONFIG_FILEin favour ofOTEL_CONFIG_FILEingo.opentelemetry.io/contrib/otelconf. (#8639)
What's Changed
- chore(deps): update module github.com/jgautheron/goconst to v1.9.0 by @renovate[bot] in #8651
- chore(deps): update module go.yaml.in/yaml/v2 to v2.4.4 by @renovate[bot] in #8652
- chore(deps): update golang.org/x/telemetry digest to e526e8a by @renovate[bot] in #8647
- chore(deps): update module k8s.io/klog/v2 to v2.140.0 by @renovate[bot] in #8650
- chore(deps): update module github.com/mgechev/revive to v1.14.0 by @mmorel-35 in #8646
- chore(deps): update module github.com/mgechev/revive to v1.15.0 by @renovate[bot] in #8539
- chore: fix noctx issues by @mmorel-35 in #8645
- chore(deps): update golang.org/x by @renovate[bot] in #8655
- chore(deps): update module codeberg.org/chavacava/garif to v0.2.1 by @renovate[bot] in #8654
- chore(deps): update module github.com/mattn/go-runewidth to v0.0.21 by @renovate[bot] in #8653
- fix(deps): update module go.opentelemetry.io/proto/otlp to v1.10.0 by @renovate[bot] in #8657
- Limit the number of bytes read from the zpages body by @dmathieu in #8656
- fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.11.2 by @renovate[bot] in #8648
- fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.11.3 by @renovate[bot] in #8661
- chore(deps): update github.com/securego/gosec/v2 digest to 8895462 by @renovate[bot] in #8663
- otelconf: support OTEL_CONFIG_FILE as it is no longer experimental by @codeboten in #8639
- chore(deps): update module github.com/sonatard/noctx to v0.5.1 by @renovate[bot] in #8664
- chore(deps): update github.com/securego/gosec/v2 digest to 6e66a94 by @renovate[bot] in #8665
- chore(deps): update golang.org/x by @renovate[bot] in #8667
- chore(deps): update module github.com/montanaflynn/stats to v0.8.2 by @renovate[bot] in #8669
- chore(deps): update googleapis to 84a4fc4 by @renovate[bot] in #8668
- otelconf: remove host ID detector in host configuration by @codeboten in #8581
- chore(deps): update module github.com/goccy/go-json to v0.10.6 by @renovate[bot] in #8672
- fix(deps): update module golang.org/x/tools to v0.43.0 by @renovate[bot] in #8670
- fix(deps): update module github.com/aws/aws-sdk-go-v2/service/s3 to v1.97.0 by @renovate[bot] in #8675
- fix(deps): update golang.org/x by @renovate[bot] in #8673
- chore(deps): update github.com/securego/gosec/v2 digest to c2dfcec by @renovate[bot] in #8666
- chore(deps): update github.com/securego/gosec/v2 digest to dec52c4 by @renovate[bot] in #8680
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #8679
- chore(deps): update github/codeql-action action to v4.33.0 by @renovate[bot] in #8682
- envcar: refine normalization by @pellared in #8678
- chore(deps): update github.com/securego/gosec/v2 digest to 744bfb5 by @renovate[bot] in #8681
- otelconf: support service resource detector by @codeboten in #8674
- fix(otelgin,otelecho): use
MetricAttributes.Routeby @gaiaz-iusipov in #8677 - build(deps): bump google.golang.org/grpc from 1.79.2 to 1.79.3 in /samplers/jaegerremote by @dependabot[bot] in #8693
- build(deps): bump google.golang.org/grpc from 1.79.2 to 1.79.3 in /propagators/opencensus/examples by @dependabot[bot] in #8690
- build(deps): bump google.golang.org/grpc from 1.79.2 to 1.79.3 in /instrumentation/google.golang.org/grpc/otelgrpc/example by @dependabot[bot] in #8689
- build(deps): bump google.golang.org/grpc from 1.79.2 to 1.79.3 in /instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig by @dependabot[bot] in #8692
- chore(deps): update actions/cache action to v5.0.4 by @renovate[bot] in #8700
- chore(deps): update module github.com/bytedance/gopkg to v0.1.4 by @renovate[bot] in #8703
- chore(deps): update codecov/codecov-action action to v5.5.3 by @renovate[bot] in #8702
- fix(deps): update kubernetes monorepo to v0.35.3 by @renovate[bot] in #8705
- chore(deps): update module github.com/protonmail/go-crypto to v1.4.1 by @renovate[bot] in #8704
- chore(deps): update module github.com/securego/gosec/v2 to v2.25.0 by @renovate[bot] in #8707
- chore(deps): update module github.com/ryanrolds/sqlclosecheck to v0.6.0 by @renovate[bot] in #8706
- chore(deps): update k8s.io/utils digest to 28399d8 by @renovate[bot] in #8699
- chore(deps): update k8s.io/kube-openapi digest to 5883c5e by @renovate[bot] in #8698
- chore(deps): updat...
Release v1.42.0/v2.4.0/v0.67.0/v0.36.0/v0.22.0/v0.17.0/v0.15.0/v0.14.0
Added
- Add environment variables propagation carrier in
go.opentelemetry.io/contrib/propagators/envcar. (#8442)
Changed
-
Upgrade
go.opentelemetry.io/otel/semconvtov1.40.0, including updates across instrumentation and detector modules. (#8631)- The semantic conventions v1.40.0 release introduces RPC breaking changes applied in this repository:
- RPC spans and metrics no longer include
network.protocol.name,network.protocol.version, ornetwork.transportattributes. rpc.client.request.size,rpc.client.response.size,rpc.server.request.size, andrpc.server.response.sizeare no longer emitted ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.rpc.messagespan events and their message attributes are no longer emitted ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc(including whenWithMessageEventsis configured).
- RPC spans and metrics no longer include
See semantic-conventions v1.40.0 release for complete details.
- The semantic conventions v1.40.0 release introduces RPC breaking changes applied in this repository:
Fixed
- Ignore informational response status codes (
100-199) except101 Switching Protocolswhen storing the HTTP status code ingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttpandgo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#6913) - Make
Bodyhandling inTransportconsistent with stdlib ingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#8618) - Fix bucket boundaries for
rpc.server.call.durationandrpc.client.call.durationingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#8642) - Host resource detector in
go.opentelemetry.io/contrib/otelconfnow includesos.attributes. (#8578)
Removed
What's Changed
- chore(deps): update github artifact actions to v7 (major) by @renovate[bot] in #8605
- chore(deps): update module github.com/sonatard/noctx to v0.5.0 by @renovate[bot] in #8610
- chore(deps): update github/codeql-action action to v4.32.5 by @renovate[bot] in #8620
- fix(deps): update module github.com/aws/smithy-go to v1.24.2 by @renovate[bot] in #8614
- chore(deps): update go-openapi packages by @renovate[bot] in #8621
- fix(deps): update module github.com/shirou/gopsutil/v4 to v4.26.2 by @renovate[bot] in #8622
- chore(deps): update module github.com/kisielk/errcheck to v1.10.0 by @renovate[bot] in #8608
- chore(deps): update module github.com/protonmail/go-crypto to v1.4.0 by @renovate[bot] in #8609
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.147.0 by @renovate[bot] in #8625
- chore(deps): update module github.com/daixiang0/gci to v0.14.0 by @renovate[bot] in #8623
- Drop support for 1.24 by @dmathieu in #8628
- fix(deps): update golang.org/x by @renovate[bot] in #8554
- fix(deps): update kubernetes packages to v0.35.2 by @renovate[bot] in #8626
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #8598
- fix(deps): update module github.com/aws/aws-lambda-go to v1.53.0 by @renovate[bot] in #8630
- otelgrpc: modernize the example project by @ash2k in #8619
- chore(deps): update googleapis to a57be14 by @renovate[bot] in #8606
- fix(deps): update module github.com/gin-gonic/gin to v1.12.0 by @renovate[bot] in #8627
- chore(deps): update module github.com/prometheus/procfs to v0.20.1 by @renovate[bot] in #8624
- fix(otelhttp): make Body handling in Transport consistent with stdlib by @ash2k in #8618
- otelhttp: Ignore informational response status codes when persisting status by @VirrageS in #6913
- chore(deps): update golang.org/x/telemetry digest to 18da590 by @renovate[bot] in #8635
- Upgrade to
semconv/v1.40.0by @MrAlias in #8631 - chore(deps): update k8s.io/kube-openapi digest to 5b3e3fd by @renovate[bot] in #8636
- envcar: add environment carrier by @Joibel in #8442
- chore: enable modernize linter by @mmorel-35 in #8583
- chore(deps): update dependency codespell to v2.4.2 by @renovate[bot] in #8640
- chore(deps): update github/codeql-action action to v4.32.6 by @renovate[bot] in #8641
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #8643
- Use correct bucket boundaries for otelgrpc client and server histograms by @dashpole in #8642
- fix(deps): update module google.golang.org/grpc to v1.79.2 by @renovate[bot] in #8644
- otelconf: host detector should include os as well by @codeboten in #8578
- Release v1.42.0/v2.4.0/v0.67.0/v0.36.0/v0.22.0/v0.17.0/v0.15.0/v0.14.0 by @pellared in #8649
New Contributors
Full Changelog: v1.41.0...v1.42.0
v1.41.0/v2.3.0/v0.66.0/v0.35.0/v0.21.0/v0.16.0/v0.14.0/v0.13.0
This release is the last to support Go 1.24.
The next release will require at least Go 1.25.
Added
- Add
WithSpanKindoption ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpcto override the default span kind. (#8506) - Add
const Versioningo.opentelemetry.io/contrib/bridges/otelzap. (#8544) - Support testing of Go 1.26. (#8549)
- Add
const Versioningo.opentelemetry.io/contrib/detectors/autodetect. (#8555) - Add
const Versioningo.opentelemetry.io/contrib/detectors/azure/azurevm. (#8553) - Add
const Versioningo.opentelemetry.io/contrib/processors/baggagecopy. (#8557) - Add
const Versioningo.opentelemetry.io/contrib/detectors/aws/lambda. (#8510) - Add
const Versioningo.opentelemetry.io/contrib/propagators/autoprop. (#8488) - Add
const Versioningo.opentelemetry.io/contrib/processors/minsev. (#8590) - Add
const Versioningo.opentelemetry.io/contrib/exporters/autoexport. (#8612)
Fixed
- Change the
rpc.server.call.durationmetric value from milliseconds to seconds ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#8509) - Change the
rpc.response.status_codeattribute to the canonicalUPPER_SNAKE_CASEformat ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#8565) - Enforce that
client_certificate_fileandclient_key_fileare provided together ingo.opentelemetry.io/contrib/otelconf. (#8450) - Fix broken CSS and JavaScript CDN URLs in
go.opentelemetry.io/contrib/zpagesby replacing the inaccessible code.getmdl.io CDN with cdnjs.cloudflare.com. (#8502) - Use Prometheus translation strategy instead of deprecated funcs in
go.opentelemetry.io/contrib/otelconf. (#8595)
Removed
- Remove the deprecated zipkin exporter example in
go.opentelemetry.io/contrib/examples/zipkin. (#8501)
Changed
- Reduce allocations in the generated HTTP
internal/semconvpackages. (#8511)
Updated modules include:go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestfulgo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmuxgo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelechogo.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptracego.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
- Update the configuration schema used in
go.opentelemetry.io/contrib/otelconfto rc.3. (#8505)
Deprecated
WithMetricAttributesFningo.opentelemetry.io/contrib/instrumentation/net/http/otelhttpis deprecated and will be removed in a future release. UseLabelerinstead. (#8587)
What's Changed
- chore(deps): update golang.org/x/telemetry digest to fe4bb1c by @renovate[bot] in #8495
- chore(deps): update github/codeql-action action to v4.32.1 by @renovate[bot] in #8492
- chore(deps): update module github.com/clipperhouse/uax29/v2 to v2.5.0 by @renovate[bot] in #8489
- chore(deps): update googleapis to ce8ad4c by @renovate[bot] in #8496
- chore(deps): update golang.org/x/telemetry digest to aaaaaa5 by @renovate[bot] in #8500
- chore(deps): update googleapis to 546029d by @renovate[bot] in #8503
- fix(deps): update module github.com/aws/aws-sdk-go-v2/service/dynamodb to v1.55.0 by @renovate[bot] in #8504
- chore: update go-jsonschema dependency by @codeboten in #8494
- otelconf: validate client key/cert symmetry for mTLS by @sandy2008 in #8450
- Remove zipkin example by @pradhyum6144 in #8501
- Fix zpages CSS and JS CDN URLs by @pradhyum6144 in #8502
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.145.0 by @renovate[bot] in #8508
- otelgrpc: add WithSpanKind option by @rauanmayemir in #8506
- chore(deps): update fossas/fossa-action action to v1.8.0 by @renovate[bot] in #8517
- chore(deps): update github/codeql-action action to v4.32.2 by @renovate[bot] in #8515
- chore(deps): update module github.com/ghostiam/protogetter to v0.3.20 by @renovate[bot] in #8513
- chore(deps): update golang.org/x/telemetry digest to 86a5c4b by @renovate[bot] in #8512
- chore(deps): update golang.org/x by @renovate[bot] in #8521
- chore(deps): update module github.com/clipperhouse/uax29/v2 to v2.6.0 by @renovate[bot] in #8522
- chore(deps): update module sigs.k8s.io/structured-merge-diff/v6 to v6.3.2 by @renovate[bot] in #8520
- chore(deps): update module github.com/klauspost/compress to v1.18.4 by @renovate[bot] in #8523
- fix(deps): update module go.mongodb.org/mongo-driver to v1.17.9 by @renovate[bot] in #8519
- chore(deps): update googleapis to 4cfbd41 by @renovate[bot] in #8527
- fix(deps): update golang.org/x by @renovate[bot] in #8528
- chore(deps): update module github.com/go-git/go-git/v5 to v5.16.5 [security] by @renovate[bot] in #8531
- google.golang.org/grpc/otelgrpc: Fix for
elapsedTimerecords an incorrect metric value by @gaiaz-iusipov in #8509 - chore(deps): update k8s.io/utils digest to b8788ab by @renovate[bot] in #8534
- chore(deps): update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.27.8 by @renovate[bot] in #8535
- chore(deps): update module github.com/golangci/golines to v0.15.0 by @renovate[bot] in #8536
- chore(deps): update module github.com/golangci/misspell to v0.8.0 by @renovate[bot] in #8538
- otelconf: update to latest config schema rc by @codeboten in #8505
- chore(deps): update golang.org/x/telemetry digest to 9f66fae by @renovate[bot] in #8545
- Add version file for otelzap bridge by @lcorinna in #8544
- chore(deps): update golang docker tag to v1.26 by @renovate[bot] in #8537
- fix(deps): update module google.golang.org/grpc to v1.79.0 by @renovate[bot] in #8552
- Add support for Go 1.26 by @dmathieu in #8549
- fix(deps): update module google.golang.org/grpc to v1.79.1 by @renovate[bot] in #8556
- chore(deps): update github/codeql-action action to v4.32.3 by @renovate[bot] in #8558
- Add version file for Azure VM detector by @bamdadam in #8553
- chore(deps): update module github.com/kevinburke/ssh_config to v1.5.0 by @renovate[bot] in #8561
- Add version file for baggagecopy processor by @lcorinna in #8557
- chore(deps): update module github.com/kevinburke/ssh_config to v1.6.0 by @renovate[bot] in #8562
- chore(deps): update module github.com/godoc-lint/godoc-lint to v0.11.2 by @renovate[bot] in #8566
- chore(deps): update module github.com/clipperhouse/uax29/v2 to v2.7.0 by @renovate[bot] in #8564
- chore(deps): update github.com/lufia/plan9stats digest to b3301c5 by @renovate[bot] in #8563
- chore(deps): update module github.com/mattn/go-runewidth to v0.0.20 by @renovate[bot] in #8567
- Add version file for AWS Lambda resource detector by @ElenaZvereva in h...
Release v1.40.0/v2.2.0/v0.65.0/v0.34.0/v0.20.0/v0.15.0/v0.13.0/v0.12.0
Overview
Added
WithMetricAttributesFnoption ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpcto define dynamic attributes on auto-instrumented metrics. (#8191)- Add support for configuring propagators in
go.opentelemetry.io/contrib/otelconf. (#8281) - Add
const Versioningo.opentelemetry.io/contrib/bridges/prometheus. (#8401) - Add
const Versioningo.opentelemetry.io/contrib/otelconf. (#8461) - Add
const Versioningo.opentelemetry.io/contrib/bridges/otellogr. (#8477) - Add
const Versioningo.opentelemetry.io/contrib/bridges/otellogrus. (#8485) - Add
const Versioningo.opentelemetry.io/contrib/bridges/otelslog. (#8480)
Fixed
- Fix panic when passing nil
TracerProviderorMeterProvidertoWithTracerProviderorWithMeterProvideringo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#8323) Transportingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttpnow supports reading request body multiple times for subsequent requests that reusehttp.Request. (#8352)
Changed
- The
Version()function ingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttphas been replaced byconst Version. (#8142) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptracehas been replaced byconst Version. (#8302) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpchas been replaced byconst Version. (#8317) - The
Version()function ingo.opentelemetry.io/contrib/zpageshas been replaced byconst Version. (#8325) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongohas been replaced byconst Version. (#8340) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelginhas been replaced byconst Version. (#8341) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/runtimehas been replaced byconst Versionstring. (#8349) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelawshas been replaced byconst Version. (#8356) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambdahas been replaced byconst Version. (#8357) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/hosthas been replaced byconst Version. (#8358) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestfulhas been replaced byconst Version. (#8360) - The
Version()function ingo.opentelemetry.io/contrib/propagators/opencensushas been replaced byconst Version. (#8361) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelechohas been replaced byconst Version. (#8365) - The
Version()function ingo.opentelemetry.io/contrib/samplers/probability/consistenthas been replaced byconst Version. (#8366) - The
Version()function ingo.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongohas been replaced byconst Version. (#8370) - Set
error.typeattribute instead of addingexceptionspan events ingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#8386) - Set
error.typeattribute instead of addingexceptionspan events ingo.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws. (#8386) - Upgrade
go.opentelemetry.io/otel/semconvtov1.39.0, including updates across all instrumentation and detector modules. (#8404)-
The semantic conventions v1.39.0 release introduces breaking changes, including:
rpcspan and metric attributes have been renamed to align with naming guidelines:rpc.system→rpc.system.name(values:grpc,grpc_web,connectrpc,thrift,dubbo, etc.)rpc.methodandrpc.servicehave been merged into a fully-qualifiedrpc.methodattributerpc.client|server.duration→rpc.client|server.call.duration(unit changed to seconds)rpc.grpc.request.metadata/rpc.grpc.response.metadata→rpc.request.metadata/rpc.response.metadatarpc.grpc.status_code→ deprecated in favor ofrpc.response.status_coderpc.jsonrpc.request_id→jsonrpc.request.idrpc.jsonrpc.version→jsonrpc.protocol.version
systemandprocessmetrics:*.linux.memorymetrics renamed to*.memory.linuxsystem.process.status→process.statesystem.paging.typeandprocess.paging.fault_type→system.paging.fault.type
peer.serviceattribute has been deprecated in favor ofservice.peer.name
See semantic-conventions v1.39.0 release and v1.38.0 release for complete breaking change details.
-
Updated modules include:
go.opentelemetry.io/contrib/bridges/otellogrgo.opentelemetry.io/contrib/bridges/otellogrusgo.opentelemetry.io/contrib/bridges/otelsloggo.opentelemetry.io/contrib/bridges/otelzapgo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp- Uses
service.peer.nameattribute (deprecatedpeer.service)
- Uses
go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptracego.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc- Merged
rpc.methodandrpc.serviceinto fully-qualifiedrpc.method(e.g.,grpc.testing.TestService/EmptyCall) rpc.system→rpc.system.namewith updated values (e.g.,RPCSystemNameGRPC)rpc.grpc.status_code→rpc.response.status_code(e.g.,RPCResponseStatusCode("OK"))
- Merged
go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws- Merged
rpc.methodandrpc.serviceattributes (service/operation → fully-qualified method) rpc.system→rpc.system.namewithAWSSystemVal- New
MethodAttr()function for combined service/operation attribute
- Merged
go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambdago.opentelemetry.io/contrib/instrumentation/runtimego.opentelemetry.io/contrib/instrumentation/hostgo.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver(both v1 and v2)go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgingo.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestfulgo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelechogo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmuxgo.opentelemetry.io/contrib/detectors/gcpgo.opentelemetry.io/contrib/detectors/aws/ec2/v2go.opentelemetry.io/contrib/detectors/aws/ecsgo.opentelemetry.io/contrib/detectors/aws/eksgo.opentelemetry.io/contrib/detectors/azure/azurevmgo.opentelemetry.io/contrib/otelconf
-
Deprecated
ServiceAttr()function ingo.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelawsis deprecated. UseMethodAttr()instead, asrpc.servicehas been merged intorpc.methodin semantic conventions v1.39.0. (#8404)OperationAttr()function ingo.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelawsis deprecated. UseMethodAttr()instead, asrpc.servicehas been merged intorpc.methodin semantic conventions v1.39.0. (#8404)
Removed
- The deprecated
DefaultClient,Get,Head,Post, andPostFormingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. Use a custom*http.Clientwithotelhttp.NewTransport(http.DefaultTransport)instead. (#8266) - The deprecated
WithPublicEndpointingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. UseWithPublicEndpointFninstead. (#8267) - The deprecated
WithRouteTagingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. The route is already added automatically for spans. For metrics, the alternative is to use theWithMetricAttributesFnoption. (#8268)
What's Changed
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #8263
- fix(deps): update module github.com/aws/aws-lambda-go to v1.51.0 by @renovate[bot] in #8265
- chore(deps): update golang.org/x by @renovate[bot] in #8262
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #8264
- fix(deps): update golang.org/x by @renovate[bot] in #8269
- fix(deps): update module golang.org/x/tools to v0.40.0 by @renovate[bot] in #8271
- chore(deps): update go-openapi packages by @renovate[bot] in #8270
- refactor(otelhttp): change Version() func to const Version string by @dogedede in #8142
- chore(deps): update golang.org/x/exp/typeparams digest to 8475f28 by @renovate[bot] in #8273
- Remove the deprecated
otelhttpClientby @MrAlias in https://github.com/open-telemetry/opentelemetry-go-contrib/pu...
Release v1.39.0/v2.1.0/v0.64.0/v0.33.0/v0.19.0/v0.14.0/v0.12.0/v0.11.0
Overview
Added
ParseYAMLingo.opentelemetry.io/contrib/otelconfnow supports environment variables substitution in the format${[env:]VAR_NAME[:-defaultvalue]}. (#6215)- Add the
http.routemetric attribute togo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#7966) - Support
db.client.operation.durationmetric forgo.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo. (#7983) - Add a
WithSpanNameFormatteroption togo.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo. (#7986) - WithOnError option for otelecho middleware in
go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelechoto specify the behavior when an error occurs. (#8025) - Updated
go.opentelemetry.io/contrib/otelconfto include the v1.0.0-rc2 release candidate of schema which includes backwards incompatible changes. (#8026) - Introduce v1.0.0-rc.2 model in
go.opentelemetry.io/contrib/otelconf. (#8031) - Add unmarshaling and validation for
CardinalityLimitsandSpanLimitsto v1.0.0 model ingo.opentelemetry.io/contrib/otelconf. (#8043) - Add unmarshaling and validation for
BatchLogRecordProcessor,BatchSpanProcessor, andPeriodicMetricReaderto v1.0.0 model ingo.opentelemetry.io/contrib/otelconf. (#8049) - Add unmarshaling and validation for
TextMapPropagatorto v1.0.0 model ingo.opentelemetry.io/contrib/otelconf. (#8052) - Add
jaeger.sampler.type/jaeger.sampler.paramattributes for adaptive sampling support and optionWithAttributesDisabledingo.opentelemetry.io/contrib/samplers/jaegerremote. (#8073) - Add support for
OTEL_EXPERIMENTAL_CONFIG_FILEvia theNewSDKfunction ingo.opentelemetry.io/contrib/otelconf(#8106) - Add unmarshaling and validation for
OTLPHttpExporter,OTLPGrpcExporter,OTLPGrpcMetricExporterandOTLPHttpMetricExporterto v1.0.0 model ingo.opentelemetry.io/contrib/otelconf. (#8112) - Add unmarshaling and validation for
AttributeType,AttributeNameValue,SimpleSpanProcessor,SimpleLogRecordProcessor,ZipkinSpanExporter,NameStringValuePair,InstrumentType,ExperimentalPeerInstrumentationServiceMappingElem,ExporterDefaultHistogramAggregation,PullMetricReaderto v1.0.0 model ingo.opentelemetry.io/contrib/otelconf. (#8127) - Add support for
container,host,processresource detectors ingo.opentelemetry.io/contrib/otelconf. (#8180)
Changed
- Improve performance by reducing allocations in the gRPC stats handler in
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#8035) - Export the
ReadEventsandWriteEventsconstants ingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttpso they can be used inWithMessageEvents. (#8153) - Switched the default for
OTEL_SEMCONV_STABILITY_OPT_INto emit the v1.37.0 semantic conventions by default ingo.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo. Use the environment variableOTEL_SEMCONV_STABILITY_OPT_INto configure duplication with old semantic conventions if needed (i.e.OTEL_SEMCONV_STABILITY_OPT_IN="database/dup"). (#8230)
Deprecated
WithRouteTagingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttpis deprecated. The route is already added automatically for spans. For metrics, the alternative is to use theWithMetricAttributesFnoption. (#8117)WithPublicEndpointingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttpis deprecated. UseWithPublicEndpointFninstead. (#8152)DefaultClient,Get,Head,Post, andPostFormingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttpare deprecated. Use a custom*http.Clientwithotelhttp.NewTransport(http.DefaultTransport)instead. (#8140, #8201)
Removed
- Drop support for Go 1.23. (#7831)
- Remove deprecated
go.opentelemetry.io/contrib/detectors/aws/ec2module, please usego.opentelemetry.io/contrib/detectors/aws/ec2/v2instead. (#7841) - Remove the deprecated
ExtractandInjectfunctions fromgo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#7952)
What's Changed
- chore(deps): update go-openapi packages by @renovate[bot] in #7830
- chore(deps): update module github.com/spf13/pflag to v1.0.9 by @renovate[bot] in #7833
- fix(deps): update module github.com/shirou/gopsutil/v4 to v4.25.8 by @renovate[bot] in #7834
- Remove support for Go 1.23 by @MrAlias in #7831
- fix(deps): update golang.org/x by @renovate[bot] in #7733
- chore(deps): update googleapis to ef028d9 by @renovate[bot] in #7835
- chore(deps): update module github.com/securego/gosec/v2 to v2.22.8 by @renovate[bot] in #7836
- fix(deps): update kubernetes packages to v0.34.0 by @renovate[bot] in #7837
- fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.4.0 by @renovate[bot] in #7838
- chore(deps): update k8s.io/kube-openapi digest to d7b6acb by @renovate[bot] in #7840
- fix(deps): update module github.com/jaegertracing/jaeger-idl to v0.6.0 by @renovate[bot] in #7839
- Cleanup remnants of the
http/dupflag in shared semconv by @dmathieu in #7813 - chore(deps): update module github.com/spf13/cobra to v1.10.0 by @renovate[bot] in #7843
- chore(deps): update github/codeql-action action to v3.30.0 by @renovate[bot] in #7842
- chore(deps): update module github.com/spf13/cobra to v1.10.1 by @renovate[bot] in #7844
- chore(deps): update module github.com/bytedance/sonic to v1.14.1 by @renovate[bot] in #7846
- chore: remove deprecated EC2 detector by @flc1125 in #7841
- chore(deps): update module github.com/spf13/pflag to v1.0.10 by @renovate[bot] in #7850
- chore(deps): update module github.com/golangci/go-printf-func-name to v0.1.1 by @renovate[bot] in #7848
- chore(deps): update k8s.io/kube-openapi digest to 7fc2783 by @renovate[bot] in #7849
- chore(deps): update module github.com/ghostiam/protogetter to v0.3.16 by @renovate[bot] in #7847
- chore(deps): update module github.com/prometheus/common to v0.66.0 by @renovate[bot] in #7851
- chore(deps): update module mvdan.cc/gofumpt to v0.9.0 by @renovate[bot] in #7852
- fix(deps): update module go.opentelemetry.io/proto/otlp to v1.8.0 by @renovate[bot] in #7855
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.134.1 by @renovate[bot] in #7856
- chore(deps): update actions/stale action to v10 by @renovate[bot] in #7859
- chore(deps): update actions/setup-go action to v6 by @renovate[bot] in #7858
- fix(deps): update module github.com/aws/aws-sdk-go-v2/service/route53 to v1.58.0 by @renovate[bot] in #7857
- fix(deps): update module github.com/prometheus/client_golang to v1.23.1 by @renovate[bot] in #7861
- chore(deps): update module github.com/bombsimon/wsl/v5 to v5.2.0 by @renovate[bot] in #7863
- chore(deps): update codecov/codecov-action action to v5.5.1 by @renovate[bot] in #7860
- chore(deps): update golang.org/x/telemetry digest to 9b996f7 by @renovate[bot] in #7862
- chore(deps): update github.com/grafana/regexp digest to f7b3be9 by @renovate[bot] in #7864
- chore(deps): update github/codeql-action action to v3.30.1 by @renovate[bot] in #7865
- chore(deps): update module github.com/prometheus/common to v0.66.1 by @renovate[bot] in #7866
- chore(deps): update k8s.io/kube-openapi digest to 0bf3876 by @renovate[bot] in #7869
- chore(deps): update golang.org/x/telemetry digest to af835b0 by @renovate[bot] in https://github.co...
Release v1.38.0/v2.0.0/v0.63.0/v0.32.0/v0.18.0/v0.13.0/v0.11.0/v0.10.0
Overview
This release is the last to support Go 1.23. The next release will require at least Go 1.24.
Added
- Add v2 version of AWS EC2 detector
go.opentelemetry.io/contrib/detectors/aws/ec2/v2due to deprecation ofgithub.com/aws/aws-sdk-go. (#6961) - Add the unit
nsto deprecated runtime metricsprocess.runtime.go.gc.pause_total_nsandprocess.runtime.go.gc.pause_nsingo.opentelemetry.io/contrib/instrumentation/runtime. (#7490) - The
go.opentelemetry.io/contrib/detectors/autodetectpackage is added to automatically compose user definedresource.Detectors at runtime. (#7522) - Add the
WithLoggerProviderOptions,WithMeterProviderOptionsandWithTracerProviderOptionsoptions toNewSDKto allow passing custom options to providers ingo.opentelemetry.io/contrib/otelconf. (#7552) - Set
SeverityTextfield to logrus hook ingo.opentelemetry.io/contrib/bridges/otellogrus. (#7553) - Add the
WithTraceAttributeFnoption togo.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda. (#7556) - Add support for HTTP server metrics in
go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho. (#7668) - Support testing of [Go 1.25]. (#7732)
Changed
- Change the default span name to be
GET /pathso it complies with the HTTP semantic conventions ingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#7551) - Transform attribute values of
go.opentelemetry.io/otel/attribute.Valueandgo.opentelemetry.io/otel/log.Valuetypes to appropriatego.opentelemetry.io/otel/log.Valuetype instead oflog.StringValuein the modules below. (#7660)go.opentelemetry.io/contrib/bridges/otellogrgo.opentelemetry.io/contrib/bridges/otellogrusgo.opentelemetry.io/contrib/bridges/otelsloggo.opentelemetry.io/contrib/bridges/otelzap
- The
Severitytype fromgo.opentelemetry.io/contrib/processors/minsevnow implements thefmt.Stringer,encoding.TextMarshaler,encoding.TextUnmarshaler,encoding.TextAppender,json.Marshaler, andjson.Unmarshalerinterfaces. (#7652) - The
SeverityVartype fromgo.opentelemetry.io/contrib/processors/minsevnow implements thefmt.Stringer,encoding.TextMarshaler,encoding.TextUnmarshaler, andencoding.TextAppenderinterfaces. (#7652) - Change the faas.max_memory unit to be bytes instead of MB to comply with the semantic conventions in
go.opentelemetry.io/contrib/detectors/aws/lambda. (#7745) Severity.Severity()ingo.opentelemetry.io/contrib/processors/minsevnow returnslog.SeverityTrace1for severities less thanminsev.SeverityTrace1andlog.SeverityFatal4for severities greater thanminsev.SeverityFatal4instead oflog.SeverityUndefined. All other conversions are the same. (#7748)
Fixed
- Improve the ECS detector correctness in
go.opentelemetry.io/contrib/detectors/aws/ecs. (#7607)
Deprecated
WithSpanOptionsingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpcis deprecated. It is only used by the deprecated interceptor, and is unused byNewClientHandlerandNewServerHandler. (#7601)ExtractandInjectingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpcare deprecated. These functions were initially exposed in the public API, but are now considered unnecessary. (#7689)- The
go.opentelemetry.io/contrib/detectors/aws/ec2package is deprecated, usego.opentelemetry.io/contrib/detectors/aws/ec2/v2instead. (#7725)
Removed
- Remove support for the
OTEL_SEMCONV_STABILITY_OPT_INenvironment variable as well as support for semantic conventions v1.20.0 in the modules below. (#7584)go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestfulgo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmuxgo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelechogo.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptracego.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
- The deprecated
StreamClientInterceptorfunction fromgo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpcis removed. (#7646)
What's Changed
- fix(deps): update module github.com/aws/aws-sdk-go-v2/service/s3 to v1.82.0 by @renovate[bot] in #7512
- chore(deps): update module go.yaml.in/yaml/v2 to v3 by @renovate[bot] in #7511
- chore(deps): update k8s.io/kube-openapi digest to e0c7552 by @renovate[bot] in #7515
- chore(deps): update k8s.io/kube-openapi digest to af0a60a by @renovate[bot] in #7516
- Fix outdated community membership link by @opentelemetrybot in #7518
- chore(deps): update prom/prometheus docker tag to v3.4.2 by @renovate[bot] in #7517
- chore(deps): update github/codeql-action action to v3.29.1 by @renovate[bot] in #7519
- chore(deps): update module github.com/masterminds/semver/v3 to v3.4.0 by @renovate[bot] in #7521
- fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.2.0 by @renovate[bot] in #7527
- fix(deps): update module github.com/golangci/golangci-lint/v2 to v2.2.1 by @renovate[bot] in #7529
- chore(deps): update module go.yaml.in/yaml/v3 to v3.0.4 by @renovate[bot] in #7528
- chore(deps): update k8s.io/kube-openapi digest to d90c4fd by @renovate[bot] in #7524
- chore(deps): update module go.yaml.in/yaml/v3 to v3.0.4 by @renovate[bot] in #7530
- runtime: add ns unit to deprecated runtime metrics by @Machyne in #7490
- chore(deps): update github/codeql-action action to v3.29.2 by @renovate[bot] in #7532
- otelconf: replace sigs.k8s.io/yaml with go.yaml.in/yaml by @pellared in #7533
- chore(deps): update module github.com/uudashr/iface to v1.4.1 by @renovate[bot] in #7534
- fix(deps): update module github.com/aws/aws-sdk-go-v2/service/dynamodb to v1.44.0 by @renovate[bot] in #7535
- chore(deps): update module github.com/alecthomas/chroma/v2 to v2.19.0 by @renovate[bot] in #7537
- fix(deps): update module github.com/shirou/gopsutil/v4 to v4.25.6 by @renovate[bot] in #7536
- chore(deps): update golang.org/x/telemetry digest to 2f1f772 by @renovate[bot] in #7539
- chore(deps): update k8s.io/kube-openapi digest to 9bd5c66 by @renovate[bot] in #7540
- chore(deps): update module github.com/go-playground/validator/v10 to v10.27.0 by @renovate[bot] in #7543
- chore(deps): update module github.com/bombsimon/wsl/v5 to v5.1.0 by @renovate[bot] in #7542
- Add contents of the Go license by @psx95 in #7538
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.129.1 by @renovate[bot] in #7545
- chore(deps): update module github.com/sonatard/noctx to v0.3.5 by @renovate[bot] in #7544
- fix(deps): update module github.com/aws/aws-sdk-go-v2/service/s3 to v1.83.0 by @renovate[bot] in #7546
- chore(deps): update module github.com/prometheus/procfs to v0.17.0 by @renovate[bot] in #7547
- fix(deps): update module github.com/aws/aws-sdk-go-v2/service/route53 to v1.53.0 by @renovate[bot] in #7548
- chore(deps): update github.com/golangci/gofmt digest to 3e58ba0 by @renovate[bot] in #7550
- chore(deps): update module github.com/bytedance/sonic/loader to v0.3.0 by @renovate[bot] in #7555
- chore(deps): update module github.com/alwxsin/noinlineerr to v1.0.4 by @renovate[bot] in #7554
- chore(deps): update module go.opentelemetry.io/build-tools to v0.24.0 by @renovate[bot] in #7560
- chore(deps): update googleapis to 8d1bb00 by @renovate[bot] in #7559
- fix(deps): update build-...
Release 1.37.0/0.62.0/0.31.0/0.17.0/0.12.0/0.10.0/0.9.0
Added
- Add the
WithPublicEndpointandWithPublicEndpointFnoptions togo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#7407)
Changed
go.opentelemetry.io/contrib/instrumentation/runtimenow produces the new metrics by default. SetOTEL_GO_X_DEPRECATED_RUNTIME_METRICS=trueenvironment variable to additionally produce the deprecated metrics. (#7418)- The semantic conventions have been upgraded from
v1.30.0tov1.34.0ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#7361) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/detectors/aws/ec2. (#7373, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/detectors/aws/eks. (#7375, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/detectors/aws/ecs. (#7374, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/detectors/aws/lambda. (#7376, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/detectors/azure/azurevm. (#7377, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/bridges/otelslog. (#7361, #7484) - The semantic conventions have been upgraded from
v1.27.0tov1.34.0ingo.opentelemetry.io/contrib/bridges/otellogr. (#7387, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/bridges/otelzap. (#7389, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/detectors/gcp. (#7378, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful. (#7383, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#7383, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#7383, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace. (#7383, #7484) - The semantic conventions have been upgraded from
v1.26.0tov1.34.0ingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#7383, #7484) - The semantic conventions have been upgraded in
go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongotov1.34.0. (#7393, #7484) - The semantic conventions have been upgraded in
go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongotov1.34.0. (#7393, #7484) - The semantic conventions have been upgraded in
go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelawstov1.34.0. (#7394, #7484)- The
messaging.system=AmazonSQSattribute has been corrected tomessaging.system=aws.sqs. - The
net.peer.addrattribute key has been upgraded toserver.address. - The
http.status_codeattribute key has been upgraded tohttp.response.status_code. - The
db.system=dynamodbattribute has been corrected todb.system.name=aws.dynamodb. - The deprecated
messaging.operation.type=publishattribute has been corrected tomessaging.operation.type=send.
- The
- The semantic conventions have been upgraded from
v1.21.0tov1.34.0ingo.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda. (#7400, #7484) - The semantic conventions in
go.opentelemetry.io/contrib/instrumentation/hosthave been upgraded tov1.34.0. (#7390, #7484)- The description of
process.cpu.timeis updated to comply with semantic conventions. process.cpu.timenow uses thestateattribute instead ofcpu.mode.- The
system.cpu.timemetric is renamed tocpu.time. cpu.timenow uses thestateattribute instead ofcpu.mode.system.memory.usagenow uses thestateattribute instead ofsystem.memory.state.system.memory.utilizationnow uses thestateattribute instead ofsystem.memory.state.- The
system.memory.stateattribute (nowstate) value ofavailableis nowfreeinstead.
- The description of
Deprecated
AttributeCPUTimeUseringo.opentelemetry.io/contrib/instrumentation/hostis deprecated.
Usego.opentelemetry.io/otel/semconvinstead. (#7390)AttributeCPUTimeSystemingo.opentelemetry.io/contrib/instrumentation/hostis deprecated.
Usego.opentelemetry.io/otel/semconvinstead. (#7390)AttributeCPUTimeOtheringo.opentelemetry.io/contrib/instrumentation/hostis deprecated.
Usego.opentelemetry.io/otel/semconvinstead. (#7390)AttributeCPUTimeIdleingo.opentelemetry.io/contrib/instrumentation/hostis deprecated.
Usego.opentelemetry.io/otel/semconvinstead. (#7390)AttributeMemoryAvailableingo.opentelemetry.io/contrib/instrumentation/hostis deprecated.
Usego.opentelemetry.io/otel/semconvinstead. (#7390)AttributeMemoryUsedingo.opentelemetry.io/contrib/instrumentation/hostis deprecated.
Usego.opentelemetry.io/otel/semconvinstead. (#7390)AttributeNetworkTransmitingo.opentelemetry.io/contrib/instrumentation/hostis deprecated.
Usego.opentelemetry.io/otel/semconvinstead. (#7390)AttributeNetworkReceiveingo.opentelemetry.io/contrib/instrumentation/hostis deprecated.
Usego.opentelemetry.io/otel/semconvinstead. (#7390)
Fixed
- Fix EKS detector erroring outside of Kubernetes in
go.opentelemetry.io/contrib/detectors/aws/eks. (#7483) - Fix data race when writing log entries with
context.Contextfields ingo.opentelemetry.io/contrib/bridges/otelzap. (#7368) - Fix nil pointer dereference when
ClientTracerdid not have a span ingo.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace. (#7464) - Record all non-failure metrics on transport round trip errors in
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#7146)
Removed
- The deprecated
StreamServerInterceptorfunction fromgo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpcis removed. (#7362)
What's Changed
- chore: log bridges move benchmarks to bench_test.go files by @pellared in #7351
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate in #7355
- chore(deps): update module github.com/jgautheron/goconst to v1.8.2 by @renovate in #7357
- chore(deps): update module github.com/ebitengine/purego to v0.8.4 by @renovate in #7354
- chore(deps): update module github.com/protonmail/go-crypto to v1.3.0 by @renovate in #7358
- chore(deps): update module github.com/santhosh-tekuri/jsonschema/v6 to v6.0.2 by @renovate in #7360
- chore(deps): update module github.com/sashamelentyev/usestdlibvars to v1.29.0 by @renovate in #7363
- fix(deps): update module google.golang.org/grpc to v1.72.2 by @renovate in #7365
- Upgrade semconv to 1.32.0 in otelgrpc by @MrAlias in #7361
- chore(deps): update module github.com/golangci/plugin-module-register to v0.1.2 by @renovate in #7369
- chore(deps): update module github.com/ugorji/go/codec to v1.2.14 by @renovate in #7370
- chore(deps): update otel/opentelemetry-collector-contrib docker tag to v0.127.0 by @renovate in #7371
- fix(otelzap): write core.ctx only when init by @okhowang in #7368
- chore(deps): update module github.com/abirdcfly/dupword to v0.1.5 by @renovate in #7379
- Removed deprecated
StreamServerInterceptorfunction from otelgrpc by @sonalgaud12 in #7362 - fix(deps): update module github.com/go-logr/logr to v1.4.3 by @renovate in #7381
- chore(deps): update golang.org/x/telemetry digest to b2b9eea by @renovate in #7391
- Upgrade semconv to v1.32.0 in detectors/aws/ec2 by @MrAlias in #7373
- Upgrade semconv to v1.32.0 in detectors/aws/lambda by @MrAlias in #7376
- Upgrade semconv to 1.32.0 in detectors/aws/ecs by @MrAlias in #7374
- Upgrade semconv to v1.32.0 in detectors/gcp by @MrAlias in #7378
- Fix changelog entry for #7361 by @MrAlias in #7388
- chore(deps): update module github.com/goccy/go-yaml to v1.18.0 by @renovate in #7397
- ...
Release v1.36.0/v0.61.0/v0.30.0/v0.16.0/v0.11.0/v0.9.0/v0.8.0
Overview
Added
http.routeattribute to otelhttp server request spans, whennet/http.Request.Patternis set in the modules below. (#6905, #6937)go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestfulgo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmuxgo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelechogo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
- Add
WithAttributesoption to set instrumentation scope attributes on the createdlog.Loggeringo.opentelemetry.io/contrib/bridges/otelzap. (#6962) - Add
WithAttributesoption to set instrumentation scope attributes on the createdlog.Loggeringo.opentelemetry.io/contrib/bridges/otelslog. (#6965) - Add
WithAttributesoption to set instrumentation scope attributes on the createdlog.Loggeringo.opentelemetry.io/contrib/bridges/otellogrus. (#6966) - Add
WithAttributesoption to set instrumentation scope attributes on the createdlog.Loggeringo.opentelemetry.io/contrib/bridges/otellogr. (#6967) - Add the
WithGinMetricAttributesoption to allow setting dynamic, per-request metric attributes based on*gin.Contextingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#6932) - Use Gin's own
ClientIPmethod to detect the client's IP, which supports custom proxy headers ingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#6095) - Added test for Fields in
go.opentelemetry.io/contrib/propagators/jaeger. (#7119) - Allow configuring samplers in
go.opentelemetry.io/contrib/otelconf. (#7148) - Slog log bridge now sets
SeverityTextattribute using source value ingo.opentelemetry.io/contrib/bridges/otelslog. (#7198) - Add
http.routemetric attribute ingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#7275) - Add the
WithSpanStartOptionsoption to add custom options to new spansgo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#7261) - Add instrumentation support for
go.mongodb.org/mongo-driver/v2ingo.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo. (#6539) - Rerun the span name formatter after the request ran if a
req.Patternis set, so the span name can include it ingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#7192)
Changed
-
Jaeger remote sampler's probabilistic strategy now uses the same sampling algorithm as
trace.TraceIDRatioBasedingo.opentelemetry.io/contrib/samplers/jaegerremote. (#6892) -
Switched the default for
OTEL_SEMCONV_STABILITY_OPT_INto emit the v1.26.0 semantic conventions by default in the following modules.go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestfulgo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmuxgo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelechogo.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptracego.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
TheOTEL_SEMCONV_STABILITY_OPT_IN=http/dupenvironment variable can be still used to emit both the v1.20.0 and v1.26.0 semantic conventions.
It is however impossible to emit only the 1.20.0 semantic conventions, as the next release will drop support for that environment variable. (#6899)
-
Improve performance by reducing allocations for http request when using
OTEL_SEMCONV_STABILITY_OPT_IN=http/dupin the modules below. (#7180)go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestfulgo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmuxgo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelechogo.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptracego.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
-
Update the Jaeger remote sampler to use "github.com/jaegertracing/jaeger-idl/proto-gen/api_v2" in
go.opentelemetry.io/contrib/samplers/jaegerremote. (#7061) -
Improve performance by reducing allocations in the gRPC stats handler in
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#7186) -
Update
http.routeattribute to supportrequest.Patterningo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#7108) -
Change the default span name to be
GET /pathso it complies with the HTTP semantic conventions ingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#6381) -
Set
url.schemeattribute to the request URL.Scheme when possible for HTTP client metrics ingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#6938) -
The semantic conventions have been upgraded from
v1.17.0tov1.30.0ingo.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#7270)- All
net.peer.*andnet.host.*attributes are now set to correctserver.*attributes. - No
net.socket.*attributes are set.
- All
-
Only sample spans when
Sampled=1ingo.opentelemetry.io/contrib/propagators/aws/xray. (#7318)
Fixed
- Record request duration in seconds rather than milliseconds for semconv v1.26.0, per the specifications in the following packages. (#6942)
go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestfulgo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmuxgo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelechogo.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptracego.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
- Cleaned up indentations under
Unreleased/Fixedof./CHANGELOG.md. (#7163) - Removed a duplicate instance of the
Changedsubheader under1.18.0/0.43.0/0.12.0in./CHANGELOG.md. (#7163) - Check for TLS related options to be set before creating TLS config
go.opentelemetry.io/contrib/otelconf. (#6984) - Fixed handling of the
OTEL_SEMCONV_STABILITY_OPT_INenvironment variable ingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#7215) - Support mixed categories for
OTEL_SEMCONV_STABILITY_OPT_INopt-in in the following packages. (#7246)go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful.go.opentelemetry.io/contrib/instrumentation/gin-gonic/gin/otelgin.go.opentelemetry.io/contrib/instrumentation/gorilla/mux/otelmux.go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo.go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace.go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.
Removed
- Drop support for [Go 1.22]. (#6853)
- The deprecated
go.opentelemetry.io/contrib/configpackage is removed, usego.opentelemetry.io/contrib/otelconfinstead. (#6894) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda, useVersionfunction instead. (#7058) - The deprecated
SemVersionfunction ingo.opentelemetry.io/contrib/samplers/probability/consistentis removed, useVersioninstead. (#7072) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/testpackage, useVersioninstead. (#7077) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux, useVersionfunction instead. (#7084) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin, useVersionfunction instead. (#7085) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test, useVersionfunction instead. (#7142) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux/test, useVersionfunction instead. (#7086) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo, useVersionfunction instead. (#7140) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin/test, useVersionfunction instead. (#7087) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho, useVersionfunction instead. (#7089) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho/test, useVersionfunction instead. (#7090) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful, useVersionfunction instead. (#7091) - The deprecated
SemVersionfunction is removed ingo.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful/test, useVersionfunction instead. (#70...