File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
internal/component/otelcol/receiver/splunkhec Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ Main (unreleased)
50
50
- Propagate the ` -feature.community-components.enabled ` flag for remote
51
51
configuration components. (@tpaschalis )
52
52
53
+ - Fix extension registration for ` otelcol.receiver.splunkhec ` auth extensions. (@dehaansa )
54
+
53
55
### Other changes
54
56
55
57
- Mark ` pyroscope.receive_http ` and ` pyroscope.relabel ` components as GA. (@marcsanmi )
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
11
11
12
12
"github.com/grafana/alloy/internal/component"
13
13
"github.com/grafana/alloy/internal/component/otelcol"
14
+ "github.com/grafana/alloy/internal/component/otelcol/auth"
14
15
otelconfig "github.com/grafana/alloy/internal/component/otelcol/config"
15
16
"github.com/grafana/alloy/internal/component/otelcol/receiver"
16
17
"github.com/grafana/alloy/internal/featuregate"
@@ -164,7 +165,16 @@ func (a Arguments) Exporters() map[pipeline.Signal]map[otelcomponent.ID]otelcomp
164
165
func (a Arguments ) Extensions () map [otelcomponent.ID ]otelcomponent.Component {
165
166
// FIXME(kalleep): Add support for ack extension.
166
167
// https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.122.0/extension/ackextension
167
- return nil
168
+ m := make (map [otelcomponent.ID ]otelcomponent.Component )
169
+ if a .HTTPServer .Authentication != nil {
170
+ ext , err := a .HTTPServer .Authentication .GetExtension (auth .Server )
171
+ // Extension will not be registered if there was an error.
172
+ if err != nil {
173
+ return m
174
+ }
175
+ m [ext .ID ] = ext .Extension
176
+ }
177
+ return m
168
178
}
169
179
170
180
// NextConsumers implements receiver.Arguments.
You can’t perform that action at this time.
0 commit comments