forked from aws-observability/aws-otel-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manager.patch
29 lines (25 loc) · 860 Bytes
/
manager.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
diff --git a/collector/internal/lifecycle/manager.go b/collector/internal/lifecycle/manager.go
index 68f6939..2f8ab1e 100644
--- a/collector/internal/lifecycle/manager.go
+++ b/collector/internal/lifecycle/manager.go
@@ -17,13 +17,14 @@ package lifecycle
import (
"context"
"fmt"
- "github.com/open-telemetry/opentelemetry-lambda/collector/lambdalifecycle"
"os"
"os/signal"
"path/filepath"
"sync"
"syscall"
+ "github.com/open-telemetry/opentelemetry-lambda/collector/lambdalifecycle"
+
"go.uber.org/multierr"
"go.uber.org/zap"
@@ -92,7 +93,7 @@ func NewManager(ctx context.Context, logger *zap.Logger, version string) (contex
}
}()
- factories, _ := lambdacomponents.Components(res.ExtensionID)
+ factories, _ := lambdacomponents.Components()
lm.collector = collector.NewCollector(logger, factories, version)
return ctx, lm