-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathcollector.patch
32 lines (31 loc) · 1.89 KB
/
collector.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/collector/internal/collector/collector.go b/collector/internal/collector/collector.go
index 5f9ea03..500a430 100644
--- a/collector/internal/collector/collector.go
+++ b/collector/internal/collector/collector.go
@@ -20,7 +20,6 @@ import (
"os"
"github.com/open-telemetry/opentelemetry-collector-contrib/confmap/provider/s3provider"
- "github.com/open-telemetry/opentelemetry-collector-contrib/confmap/provider/secretsmanagerprovider"
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/confmap"
"go.opentelemetry.io/collector/confmap/provider/envprovider"
@@ -74,7 +73,7 @@ func NewCollector(logger *zap.Logger, factories otelcol.Factories, version strin
cfgSet := otelcol.ConfigProviderSettings{
ResolverSettings: confmap.ResolverSettings{
URIs: []string{getConfig(l)},
- ProviderFactories: []confmap.ProviderFactory{fileprovider.NewFactory(), envprovider.NewFactory(), yamlprovider.NewFactory(), httpsprovider.NewFactory(), httpprovider.NewFactory(), s3provider.NewFactory(), secretsmanagerprovider.NewFactory()},
+ ProviderFactories: []confmap.ProviderFactory{fileprovider.NewFactory(), envprovider.NewFactory(), yamlprovider.NewFactory(), httpsprovider.NewFactory(), httpprovider.NewFactory(), s3provider.NewFactory()},
ConverterFactories: []confmap.ConverterFactory{
confmap.NewConverterFactory(func(set confmap.ConverterSettings) confmap.Converter {
return disablequeuedretryconverter.New()
@@ -95,8 +94,8 @@ func NewCollector(logger *zap.Logger, factories otelcol.Factories, version strin
func (c *Collector) Start(ctx context.Context) error {
params := otelcol.CollectorSettings{
BuildInfo: component.BuildInfo{
- Command: "otelcol-lambda",
- Description: "Lambda Collector",
+ Command: "aws-otel-lambda",
+ Description: "ADOT Lambda Collector",
Version: c.version,
},
ConfigProviderSettings: c.cfgProSet,