Skip to content

Commit

Permalink
Update loghouse-processor deps and generate metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyzli committed Jul 25, 2024
1 parent f631ea8 commit 1e673fc
Show file tree
Hide file tree
Showing 8 changed files with 297 additions and 93 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-test-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand All @@ -266,7 +266,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand All @@ -293,7 +293,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -345,7 +345,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
- name: Cache Go
id: go-cache
uses: actions/cache@v3
Expand Down Expand Up @@ -381,7 +381,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down
8 changes: 5 additions & 3 deletions processor/loghouseprocessor/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"go.opentelemetry.io/collector/consumer"
"go.opentelemetry.io/collector/processor"
"go.opentelemetry.io/otel/metric"

"github.com/open-telemetry/opentelemetry-collector-contrib/processor/loghouseprocessor/internal/metadata"
)

var (
Expand All @@ -19,17 +21,17 @@ var (
// NewFactory creates a factory for the routing processor.
func NewFactory() processor.Factory {
return processor.NewFactory(
component.MustNewType("json_log_encoding"),
metadata.Type,
createDefaultConfig,
processor.WithLogs(createLogsProcessor, component.StabilityLevelBeta),
processor.WithLogs(createLogsProcessor, metadata.LogsStability),
)
}

func createDefaultConfig() component.Config {
return &Config{}
}

func createLogsProcessor(_ context.Context, params processor.CreateSettings, _ component.Config, nextConsumer consumer.Logs) (processor.Logs, error) {
func createLogsProcessor(_ context.Context, params processor.Settings, _ component.Config, nextConsumer consumer.Logs) (processor.Logs, error) {
return newLogProcessor(params.TelemetrySettings, nextConsumer)
}

Expand Down
135 changes: 135 additions & 0 deletions processor/loghouseprocessor/generated_component_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions processor/loghouseprocessor/generated_package_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 42 additions & 21 deletions processor/loghouseprocessor/go.mod
Original file line number Diff line number Diff line change
@@ -1,41 +1,62 @@
module github.com/open-telemetry/opentelemetry-collector-contrib/processor/loghouseprocessor

go 1.20
go 1.21.0

toolchain go1.22.2

require (
github.com/json-iterator/go v1.1.12
github.com/stretchr/testify v1.8.4
go.opentelemetry.io/collector/component v0.93.1-0.20240125183026-3cacd40b27e8
go.opentelemetry.io/collector/consumer v0.93.1-0.20240125183026-3cacd40b27e8
go.opentelemetry.io/collector/pdata v1.0.2-0.20240125183026-3cacd40b27e8
go.opentelemetry.io/collector/processor v0.93.1-0.20240125183026-3cacd40b27e8
go.opentelemetry.io/otel/metric v1.22.0
go.uber.org/zap v1.26.0
github.com/stretchr/testify v1.9.0
go.opentelemetry.io/collector/component v0.105.1-0.20240717163034-43ed6184f9fe
go.opentelemetry.io/collector/confmap v0.105.1-0.20240717163034-43ed6184f9fe
go.opentelemetry.io/collector/consumer v0.105.1-0.20240717163034-43ed6184f9fe
go.opentelemetry.io/collector/pdata v1.12.1-0.20240716231837-5753a58f712b
go.opentelemetry.io/collector/processor v0.105.1-0.20240717163034-43ed6184f9fe
go.opentelemetry.io/otel/metric v1.28.0
go.opentelemetry.io/otel/trace v1.28.0 // indirect
go.uber.org/goleak v1.3.0
go.uber.org/zap v1.27.0

)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/knadh/koanf/maps v0.1.1 // indirect
github.com/knadh/koanf/providers/confmap v0.1.0 // indirect
github.com/knadh/koanf/v2 v2.0.1 // indirect
github.com/knadh/koanf/v2 v2.1.1 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
go.opentelemetry.io/collector/config/configtelemetry v0.93.1-0.20240125183026-3cacd40b27e8 // indirect
go.opentelemetry.io/collector/confmap v0.93.1-0.20240125183026-3cacd40b27e8 // indirect
go.opentelemetry.io/otel v1.22.0 // indirect
go.opentelemetry.io/otel/trace v1.22.0 // indirect
github.com/prometheus/client_golang v1.19.1 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
go.opentelemetry.io/collector/config/configtelemetry v0.105.0 // indirect
go.opentelemetry.io/collector/featuregate v1.12.0 // indirect
go.opentelemetry.io/collector/internal/globalgates v0.105.0 // indirect
go.opentelemetry.io/collector/pdata/pprofile v0.105.0 // indirect
go.opentelemetry.io/collector/pdata/testdata v0.105.0 // indirect
go.opentelemetry.io/otel v1.28.0 // indirect
go.opentelemetry.io/otel/exporters/prometheus v0.50.0 // indirect
go.opentelemetry.io/otel/sdk v1.28.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.28.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/sys v0.16.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect
google.golang.org/grpc v1.60.1 // indirect
google.golang.org/protobuf v1.32.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 1e673fc

Please sign in to comment.