Skip to content

Commit 99ca9c2

Browse files
authored
Point-fix pulling in opentelemetry collector w/ host metrics fix. (open-telemetry#48)
* Point-fix pulling in opentelemetry collector w/ host metrics fix. * Update to 0.29 release.
1 parent 82c46df commit 99ca9c2

File tree

5 files changed

+289
-7
lines changed

5 files changed

+289
-7
lines changed

cmd/otelopscol/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ func main() {
4141
Version: version.Version,
4242
}
4343

44-
params := service.AppSettings{Factories: factories, BuildInfo: info}
44+
params := service.CollectorSettings{Factories: factories, BuildInfo: info}
4545

4646
if err := run(params); err != nil {
4747
log.Fatal(err)
4848
}
4949
}
5050

51-
func runInteractive(params service.AppSettings) error {
51+
func runInteractive(params service.CollectorSettings) error {
5252
app, err := service.New(params)
5353
if err != nil {
5454
return fmt.Errorf("failed to construct the application: %w", err)

cmd/otelopscol/main_others.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ package main
1818

1919
import "go.opentelemetry.io/collector/service"
2020

21-
func run(params service.AppSettings) error {
21+
func run(params service.CollectorSettings) error {
2222
return runInteractive(params)
2323
}

cmd/otelopscol/main_windows.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"golang.org/x/sys/windows/svc"
2424
)
2525

26-
func run(params service.AppSettings) error {
26+
func run(params service.CollectorSettings) error {
2727
isInteractive, err := svc.IsAnInteractiveSession()
2828
if err != nil {
2929
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 {
3535
return runService(params)
3636
}
3737

38-
func runService(params service.AppSettings) error {
38+
func runService(params service.CollectorSettings) error {
3939
// do not need to supply service name when startup is invoked through Service Control Manager directly
4040
if err := svc.Run("", service.NewWindowsService(params)); err != nil {
4141
return fmt.Errorf("failed to start service: %w", err)

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/windowsperfcountersreceiver v0.28.0
1414
github.com/shirou/gopsutil v3.21.5+incompatible
1515
github.com/stretchr/testify v1.7.0
16-
go.opentelemetry.io/collector v0.28.0
16+
go.opentelemetry.io/collector v0.29.0
1717
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
1919
)

0 commit comments

Comments
 (0)