Skip to content

Commit c7807e8

Browse files
committed
refactor: drop telemetry/otelhttpclient
Zero consumers. Frontier and compass use otelconnect (official Connect instrumentation). The official otelhttp package covers HTTP client instrumentation better than this custom wrapper.
1 parent ee2d284 commit c7807e8

5 files changed

Lines changed: 1 addition & 174 deletions

File tree

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ require (
2828
github.com/spf13/viper v1.19.0
2929
github.com/stretchr/testify v1.9.0
3030
go.opentelemetry.io/contrib/instrumentation/host v0.56.0
31-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0
3231
go.opentelemetry.io/contrib/instrumentation/runtime v0.56.0
3332
go.opentelemetry.io/contrib/samplers/probability/consistent v0.25.0
3433
go.opentelemetry.io/otel v1.31.0
3534
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.31.0
3635
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0
3736
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0
38-
go.opentelemetry.io/otel/metric v1.31.0
3937
go.opentelemetry.io/otel/sdk v1.31.0
4038
go.opentelemetry.io/otel/sdk/metric v1.31.0
4139
golang.org/x/text v0.35.0
@@ -74,6 +72,7 @@ require (
7472
github.com/tidwall/pretty v1.2.1 // indirect
7573
github.com/tidwall/sjson v1.2.5 // indirect
7674
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
75+
go.opentelemetry.io/otel/metric v1.31.0 // indirect
7776
google.golang.org/protobuf v1.36.9 // indirect
7877
)
7978

@@ -95,7 +94,6 @@ require (
9594
github.com/ebitengine/purego v0.8.0 // indirect
9695
github.com/envoyproxy/protoc-gen-validate v1.1.0 // indirect
9796
github.com/fatih/color v1.18.0 // indirect
98-
github.com/felixge/httpsnoop v1.0.4 // indirect
9997
github.com/fsnotify/fsnotify v1.7.0 // indirect
10098
github.com/go-logr/logr v1.4.2 // indirect
10199
github.com/go-logr/stdr v1.2.2 // indirect

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6
125125
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM=
126126
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
127127
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
128-
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
129-
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
130128
github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k=
131129
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
132130
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
@@ -363,8 +361,6 @@ github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo
363361
github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
364362
go.opentelemetry.io/contrib/instrumentation/host v0.56.0 h1:bLJ0U2SVly7aCVAv4pSJ62I0yy3GHPMbK+74AXSwC40=
365363
go.opentelemetry.io/contrib/instrumentation/host v0.56.0/go.mod h1:7XvO8DvjdcoYDOQs/1n3AuadI/30eE2R+H/pQQuZVN0=
366-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 h1:9l89oX4ba9kHbBol3Xin3leYJ+252h0zszDtBwyKe2A=
367-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0/go.mod h1:XLZfZboOJWHNKUv7eH0inh0E9VV6eWDFB/9yJyTLPp0=
368364
go.opentelemetry.io/contrib/instrumentation/runtime v0.56.0 h1:s7wHG+t8bEoH7ibWk1nk682h7EoWLJ5/8j+TSO3bX/o=
369365
go.opentelemetry.io/contrib/instrumentation/runtime v0.56.0/go.mod h1:Q8Hsv3d9DwryfIl+ebj4mY81IYVRSPy4QfxroVZwqLo=
370366
go.opentelemetry.io/contrib/samplers/probability/consistent v0.25.0 h1:8J8W2niC6+NC2gTfpdnBHRffKf3I2XIsOwonRDf2w8w=

telemetry/otelhttpclient/annotations.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

telemetry/otelhttpclient/http_transport.go

Lines changed: 0 additions & 121 deletions
This file was deleted.

telemetry/otelhttpclient/http_transport_test.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)