Skip to content

Commit

Permalink
[chore] move extension/encoding/jsonlogencodingextension to generated…
Browse files Browse the repository at this point in the history
… tests (#30447)

Relates to
#27849

I added a doc.go file to add the generate pragma, which was missing. The
generated_status.go file was created as result.
  • Loading branch information
atoulme authored Jan 12, 2024
1 parent 5965ee6 commit 44b6e58
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 3 deletions.
5 changes: 5 additions & 0 deletions extension/encoding/jsonlogencodingextension/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

//go:generate mdatagen metadata.yaml
package jsonlogencodingextension // import "github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/jsonlogencodingextension"

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

6 changes: 3 additions & 3 deletions extension/encoding/jsonlogencodingextension/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding v0.92.0
github.com/stretchr/testify v1.8.4
go.opentelemetry.io/collector/component v0.92.1-0.20240110091511-bf804d6c4ecc
go.opentelemetry.io/collector/confmap v0.92.1-0.20240110091511-bf804d6c4ecc
go.opentelemetry.io/collector/extension v0.92.1-0.20240110091511-bf804d6c4ecc
go.opentelemetry.io/collector/pdata v1.0.2-0.20240110091511-bf804d6c4ecc
go.opentelemetry.io/otel/metric v1.21.0
go.opentelemetry.io/otel/trace v1.21.0
)

require (
Expand All @@ -26,11 +29,8 @@ require (
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
go.opentelemetry.io/collector/config/configtelemetry v0.92.1-0.20240110091511-bf804d6c4ecc // indirect
go.opentelemetry.io/collector/confmap v0.92.1-0.20240110091511-bf804d6c4ecc // indirect
go.opentelemetry.io/collector/featuregate v1.0.2-0.20240110091511-bf804d6c4ecc // indirect
go.opentelemetry.io/otel v1.21.0 // indirect
go.opentelemetry.io/otel/metric v1.21.0 // indirect
go.opentelemetry.io/otel/trace v1.21.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.26.0 // indirect
golang.org/x/net v0.18.0 // indirect
Expand Down

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

3 changes: 3 additions & 0 deletions extension/encoding/jsonlogencodingextension/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ status:
distributions: []
codeowners:
active: [VihasMakwana, atoulme]

tests:
config:

0 comments on commit 44b6e58

Please sign in to comment.