Commit 3e38397
authored
Upgrade uses of configgrpc/confighttp (#44591)
#### Description
Follow up to
open-telemetry/opentelemetry-collector#14190,
which introduced an API breaking change: instead of passing a `host
component.Host` to `configgrpc` and `confighttp`'s `ToClient` /
`ToServer` methods, components should instead pass the result of
`host.GetComponents()`. Tests that don't make use of authentication or
middleware extensions, as well as custom component hosts which don't
support extensions (such as the OpAMP supervisor), can simply pass nil
instead of using a no-op host.
Replacing `host` by `host.GetComponents()` is fairly straightforward, as
long as you don't pass in a `nil` host, which unfortunately a lot of
tests do, so I had to fix that as well.
This will be merged into the update-otel PR at #44581.1 parent ab60cf0 commit 3e38397
File tree
118 files changed
+175
-158
lines changed- cmd/opampsupervisor/supervisor
- connector/grafanacloudconnector
- exporter
- alertmanagerexporter
- azuremonitorexporter
- bmchelixexporter/internal/operationsmanagement
- coralogixexporter
- datadogexporter
- dorisexporter
- elasticsearchexporter
- integrationtest
- faroexporter
- honeycombmarkerexporter
- influxdbexporter
- logicmonitorexporter
- logzioexporter
- mezmoexporter
- opensearchexporter
- otelarrowexporter
- prometheusexporter
- prometheusremotewriteexporter
- sematextexporter
- signalfxexporter
- internal/correlation
- splunkhecexporter
- stefexporter
- sumologicexporter
- tinybirdexporter
- zipkinexporter
- extension
- datadogextension
- encoding/otlpencodingextension
- healthcheckextension
- httpforwarderextension
- jaegerremotesampling
- internal/server
- grpc
- http
- remotetapextension
- solarwindsapmsettingsextension
- sumologicextension
- internal
- aws/ecsutil
- healthcheck/internal
- grpc
- http
- pkg/stanza/adapter
- processor
- cumulativetodeltaprocessor
- deltatocumulativeprocessor
- deltatorateprocessor
- filterprocessor
- groupbytraceprocessor
- isolationforestprocessor
- logstransformprocessor
- remotetapprocessor
- resourcedetectionprocessor
- schemaprocessor
- receiver
- apachereceiver
- apachesparkreceiver
- awscontainerinsightreceiver
- internal/ecsInfo
- awsfirehosereceiver
- bigipreceiver
- cloudfoundryreceiver
- collectdreceiver
- couchdbreceiver
- datadogreceiver
- elasticsearchreceiver
- envoyalsreceiver
- expvarreceiver
- faroreceiver
- flinkmetricsreceiver
- fluentforwardreceiver
- githubreceiver
- internal/scraper/githubscraper
- gitlabreceiver
- googlecloudpubsubpushreceiver
- haproxyreceiver
- httpcheckreceiver
- influxdbreceiver
- jaegerreceiver
- kafkametricsreceiver
- kubeletstatsreceiver
- libhoneyreceiver
- lokireceiver
- nginxreceiver
- nsxtreceiver
- otelarrowreceiver
- otlpjsonfilereceiver
- prometheusreceiver
- internal/targetallocator
- prometheusremotewritereceiver
- rabbitmqreceiver
- riakreceiver
- signalfxreceiver
- skywalkingreceiver
- solacereceiver
- splunkenterprisereceiver
- splunkhecreceiver
- stefreceiver
- vcenterreceiver
- webhookeventreceiver
- zipkinreceiver
- testbed
- datasenders
- mockdatasenders/mockdatadogagentexporter
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
118 files changed
+175
-158
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | | - | |
| 767 | + | |
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
144 | | - | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
239 | | - | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
| |||
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
| 288 | + | |
288 | 289 | | |
289 | | - | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
436 | | - | |
| 437 | + | |
437 | 438 | | |
438 | 439 | | |
439 | 440 | | |
| |||
495 | 496 | | |
496 | 497 | | |
497 | 498 | | |
498 | | - | |
| 499 | + | |
499 | 500 | | |
500 | 501 | | |
501 | 502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
0 commit comments