File tree 5 files changed +289
-7
lines changed
5 files changed +289
-7
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,14 @@ func main() {
41
41
Version : version .Version ,
42
42
}
43
43
44
- params := service.AppSettings {Factories : factories , BuildInfo : info }
44
+ params := service.CollectorSettings {Factories : factories , BuildInfo : info }
45
45
46
46
if err := run (params ); err != nil {
47
47
log .Fatal (err )
48
48
}
49
49
}
50
50
51
- func runInteractive (params service.AppSettings ) error {
51
+ func runInteractive (params service.CollectorSettings ) error {
52
52
app , err := service .New (params )
53
53
if err != nil {
54
54
return fmt .Errorf ("failed to construct the application: %w" , err )
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ package main
18
18
19
19
import "go.opentelemetry.io/collector/service"
20
20
21
- func run (params service.AppSettings ) error {
21
+ func run (params service.CollectorSettings ) error {
22
22
return runInteractive (params )
23
23
}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import (
23
23
"golang.org/x/sys/windows/svc"
24
24
)
25
25
26
- func run (params service.AppSettings ) error {
26
+ func run (params service.CollectorSettings ) error {
27
27
isInteractive , err := svc .IsAnInteractiveSession ()
28
28
if err != nil {
29
29
return fmt .Errorf ("failed to determine if we are running in an interactive session: %w" , err )
@@ -35,7 +35,7 @@ func run(params service.AppSettings) error {
35
35
return runService (params )
36
36
}
37
37
38
- func runService (params service.AppSettings ) error {
38
+ func runService (params service.CollectorSettings ) error {
39
39
// do not need to supply service name when startup is invoked through Service Control Manager directly
40
40
if err := svc .Run ("" , service .NewWindowsService (params )); err != nil {
41
41
return fmt .Errorf ("failed to start service: %w" , err )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ require (
13
13
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/windowsperfcountersreceiver v0.28.0
14
14
github.com/shirou/gopsutil v3.21.5+incompatible
15
15
github.com/stretchr/testify v1.7.0
16
- go.opentelemetry.io/collector v0.28 .0
16
+ go.opentelemetry.io/collector v0.29 .0
17
17
go.uber.org/zap v1.17.0
18
- golang.org/x/sys v0.0.0-20210514084401-e8d321eab015
18
+ golang.org/x/sys v0.0.0-20210611083646-a4fc73990273
19
19
)
You can’t perform that action at this time.
0 commit comments