Sourced from go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp's changelog.
[1.47.0/2.6.0/0.72.0/0.38.0/0.27.0/0.21.0/0.17.0/0.19.0] - 2026-10-03
Added
- Add
NewResourceDetectorWithOptionsand theWithAWSLoggeroption togo.opentelemetry.io/contrib/detectors/aws/ec2/v2, allowing a custom AWS SDKlogging.Loggerto be supplied to the EC2 resource detector. (#9132)- Add
go.opentelemetry.io/contrib/detectors/openshift, a new resource detector for OpenShift 4 clusters, ported fromprocessor/resourcedetectionprocessor/internal/openshiftinopentelemetry-collector-contrib. Detectsk8s.cluster.name, andcloud.provider,cloud.platformandcloud.regionfor clusters running on AWS, Google Cloud and IBM Cloud; Azure clusters reportcloud.providerandcloud.platformonly. (#9499)- Add
go.opentelemetry.io/contrib/detectors/kubeadm, a new resource detector for kubeadm-provisioned Kubernetes clusters, ported fromprocessor/resourcedetectionprocessor/internal/kubeadminopentelemetry-collector-contrib. Detectsk8s.cluster.namefrom theClusterConfigurationdocument in thekube-system/kubeadm-configConfigMap andk8s.cluster.uidfrom thekube-systemnamespace UID. (#9500)Changed
- Client metrics in
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttpno longer include attributes from the server-sideLabeler, preventing attributes such ashttp.routefrom leaking into outbound requests. This is a breaking change for applications that useContextWithLabelerto add custom client metric attributes: useContextWithClientLabeler/ClientLabelerFromContextor theWithMetricAttributesFnoption instead. Server-side use ofContextWithLabeler/LabelerFromContextis unchanged. (#8924)- Stop emitting the legacy
http.read_bytesandhttp.wrote_bytesattributes on the per-operation span events enabled byWithMessageEventsingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. Thereadandwriteevents remain, while total body sizes continue to be recorded on the server span ashttp.request.body.sizeandhttp.response.body.sizeaccording to HTTP semantic conventions. (#9624)Deprecated
- Deprecate
go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws. (#9707)- Deprecate
go.opentelemetry.io/contrib/propagators/aws. (#9706)- Deprecate
go.opentelemetry.io/contrib/samplers/probability/consistent. (#9633)- Deprecate
ReadBytesKey,ReadErrorKey,WroteBytesKey, andWriteErrorKeyingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. The identifiers remain available and their values are unchanged, butWithMessageEventsno longer emitshttp.read_bytesorhttp.wrote_bytes. There is no semantic-convention replacement for per-read or per-write byte counts or the human-readable error fields. UseHTTPRequestBodySizeKeyandHTTPResponseBodySizeKeyfromgo.opentelemetry.io/otel/semconv/v1.43.0to record total body sizes on the span. If an error causes the HTTP request to fail, set the span status to Error and recordErrorType(err)fromgo.opentelemetry.io/otel/semconv/v1.43.0on the span. (#9624)Fixed
- Treat empty Prometheus exporter environment variable values as unset in
go.opentelemetry.io/contrib/exporters/autoexport, restoring the documented defaults. (#9636)- Bound converter-owned recursive map, slice, array, and pointer traversal 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. A field requiring more than 100 such levels is replaced with<max-depth-exceeded>and the record continues to be emitted. Existingfmtand user-method behavior remains unchanged. (#9691)- Format span attributes in
go.opentelemetry.io/contrib/zpagesusingattribute.Value.Stringinstead of the deprecatedattribute.Value.Emit, following the OpenTelemetry AnyValue representation for non-OTLP protocols. (#9453)- Set
error.typeon the span and on the request-duration, request-body-size, and response-body-size metrics when a client disconnects mid-request ingo.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin, using the request context's cancellation error as the classification source when the handler has not already recorded an error viac.Error. Previously a disconnect was recorded with span statusErrorand noerror.type, indistinguishable from a genuine server fault. (#9394)- Report Prometheus metrics HTTP server errors in
go.opentelemetry.io/contrib/otelconfwhen using thev0.2.0configuration schema. The error check was inverted, so a clean shutdown (http.ErrServerClosed) was reported as unexpected while realServeerrors were ignored. (#9653)- Fix temporary file cleanup for multipart requests in
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttpby copying the parsed multipart form back to the original request during deferred cleanup, preservingnet/httpcleanup during panic unwinding for HTTP/2 panic handling and outer recovery middleware paths. Unrecovered HTTP/1 handler panics remain uncleaned becausenet/httpskipsfinishRequestin that path. (#9685)- Fix
http.client.request.body.sizerecording for streaming request bodies ingo.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#8684)- Bound Kubernetes ConfigMap requests in
go.opentelemetry.io/contrib/detectors/aws/ekswith a 10-second timeout soDetectcannot hang indefinitely when the caller-provided context has no deadline. (#9419)Removed
0c76f61
Release v1.47.0/v2.6.0/v0.72.0/v0.38.0/v0.27.0/v0.21.0/v0.17.0/v0.19.0
(#9802)318f5f9
Add timeout on Kubernetes API calls for EKS detector (#9419)f848a15
test(detector/ecs): increase unit test coverage (#9774)c0d84de
Restore gofumpt clothe-returns and balance-calls (#9793)6215054
fix(deps): update aws-sdk-go-v2 monorepo (#9785)9a2e8ea
fix(deps): update kubernetes monorepo to v0.37.13d8e338
chore(deps): update sigs.k8s.io/json digest to 11ed52ebe5b688
chore(deps): update go-openapi packagese382b4d
chore(deps): update module github.com/fxamacker/cbor/v2 to v2.9.497f9e88
fix(deps): update module github.com/moby/moby/client to v0.6.1