diff --git a/CHANGELOG.md b/CHANGELOG.md index 1305cfc401..0e5940fee9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - (Splunk) Add `filestats` receiver ([#5229](https://github.com/signalfx/splunk-otel-collector/pull/5229)) - (Splunk) Add `iis` receiver ([#5717](https://github.com/signalfx/splunk-otel-collector/pull/5717)) +- (Splunk) Add `bearertokenauth` extension ([#5727](https://github.com/signalfx/splunk-otel-collector/pull/5727)) ### 💡 Enhancements 💡 diff --git a/docs/components.md b/docs/components.md index 3d49b0fdb6..6219309f64 100644 --- a/docs/components.md +++ b/docs/components.md @@ -133,6 +133,7 @@ The distribution offers support for the following components. |:------------------------------------------------------------------------------------------------------------------------------------| :-------- | | [ack](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/ackextension) | [alpha] | | [basicauth](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/basicauthextension) | [beta] | +| [bearertokenauth](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/bearertokenauthextension) | [beta] | | [docker_observer](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/observer/dockerobserver) | [beta] | | [ecs_observer](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/observer/ecsobserver) | [beta] | | [ecs_task_observer](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/observer/ecstaskobserver) | [beta] | diff --git a/go.mod b/go.mod index 7e48e27c63..b6a0c80696 100644 --- a/go.mod +++ b/go.mod @@ -29,6 +29,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/exporter/splunkhecexporter v0.115.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/ackextension v0.115.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/basicauthextension v0.115.0 + github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension v0.115.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/headerssetterextension v0.115.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/healthcheckextension v0.115.0 github.com/open-telemetry/opentelemetry-collector-contrib/extension/httpforwarderextension v0.115.0 diff --git a/go.sum b/go.sum index 5bd6eff3af..ef6fdc9fd5 100644 --- a/go.sum +++ b/go.sum @@ -1259,6 +1259,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/extension/ackextension github.com/open-telemetry/opentelemetry-collector-contrib/extension/ackextension v0.115.0/go.mod h1:LS2OD4qu4tfBS2sU8BN/Rxb944z3fDmDtSw1tDcymxA= github.com/open-telemetry/opentelemetry-collector-contrib/extension/basicauthextension v0.115.0 h1:Ca4KlGVCnNIHKLr3vOD28NdjLMszwCGuxVWe8RH1O7w= github.com/open-telemetry/opentelemetry-collector-contrib/extension/basicauthextension v0.115.0/go.mod h1:DSuAfoMPeMnZGG+pJfQDcwRSBy8+pEXfzen//N/aehw= +github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension v0.115.0 h1:9qEAc1tkfdRttytUV6QgbkQwXelbnBDbc9i4HaNnCkI= +github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension v0.115.0/go.mod h1:JwvCxXNRg6eEDFoL1T0pOdbdpQRrY7PP0qOQIkkcaVg= github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.115.0 h1:cmSOl8dexYz8/ZQGSYyGmeNgo3bxxDFuWQQ+XazbmL8= github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.115.0/go.mod h1:qP0oNxkFOJqFZY6uGFJarhWziI+aqsov/0IRJkL85vg= github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/otlpencodingextension v0.115.0 h1:OmwyS3i+UFENIQizvmeC9kBtT1Rdchbeo0Ksl8ZNcGQ= diff --git a/internal/components/components.go b/internal/components/components.go index 24537b87af..bb01b4165a 100644 --- a/internal/components/components.go +++ b/internal/components/components.go @@ -29,6 +29,7 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/splunkhecexporter" "github.com/open-telemetry/opentelemetry-collector-contrib/extension/ackextension" "github.com/open-telemetry/opentelemetry-collector-contrib/extension/basicauthextension" + "github.com/open-telemetry/opentelemetry-collector-contrib/extension/bearertokenauthextension" "github.com/open-telemetry/opentelemetry-collector-contrib/extension/headerssetterextension" "github.com/open-telemetry/opentelemetry-collector-contrib/extension/healthcheckextension" "github.com/open-telemetry/opentelemetry-collector-contrib/extension/httpforwarderextension" @@ -145,6 +146,7 @@ func Get() (otelcol.Factories, error) { extensions, err := extension.MakeFactoryMap( ackextension.NewFactory(), basicauthextension.NewFactory(), + bearertokenauthextension.NewFactory(), dockerobserver.NewFactory(), ecsobserver.NewFactory(), ecstaskobserver.NewFactory(), diff --git a/internal/components/components_test.go b/internal/components/components_test.go index e2dba067ba..3b0f4754fb 100644 --- a/internal/components/components_test.go +++ b/internal/components/components_test.go @@ -28,6 +28,7 @@ func TestDefaultComponents(t *testing.T) { expectedExtensions := []string{ "ack", "basicauth", + "bearertokenauth", "docker_observer", "ecs_observer", "ecs_task_observer",