Skip to content

Commit 52e6bf4

Browse files
authored
[chore] Use mdatagen for configgrpc, configauth, configretry and confignet (#15639)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Uses mdatagen for all config packages <!--Authorship attestation. See AGENTS.md for details. AI agents must not check this box on behalf of the user; the human author must check it themselves before the PR is ready for review.--> #### Authorship - [x] I, a human, wrote this pull request description myself. <!--Please delete paragraphs that you did not use before submitting.-->
1 parent ee490df commit 52e6bf4

10 files changed

Lines changed: 19 additions & 9 deletions

File tree

.github/workflows/utils/cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@
533533
"validatable",
534534
"vanityurl",
535535
"vmmetrics",
536+
"winio",
536537
"withauth",
537538
"xconfighttp",
538539
"xconfmap",

config/configauth/configauth.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// exporters to add authentication on outgoing requests.
77
package configauth // import "go.opentelemetry.io/collector/config/configauth"
88

9+
//go:generate mdatagen metadata.yaml
10+
911
import (
1012
"context"
1113
"errors"

config/configauth/package_test.go renamed to config/configauth/generated_package_test.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/configgrpc/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
// The configuration structs in this package may be shared across signals, but
88
// assume each struct is used for a single protocol and component.
99
package configgrpc // import "go.opentelemetry.io/collector/config/configgrpc"
10+
11+
//go:generate mdatagen metadata.yaml

config/configgrpc/package_test.go renamed to config/configgrpc/generated_package_test.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/confignet/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
// Package confignet implements the configuration settings for protocols to
55
// connect and transport data information.
66
package confignet // import "go.opentelemetry.io/collector/config/confignet"
7+
8+
//go:generate mdatagen metadata.yaml

config/confignet/package_test.go renamed to config/confignet/generated_package_test.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/confignet/metadata.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ github_project: open-telemetry/opentelemetry-collector
55
status:
66
disable_codecov_badge: true
77
class: pkg
8+
9+
tests:
10+
goleak:
11+
ignore:
12+
# go-winio starts a background goroutine for I/O completion on Windows that outlives the test.
13+
any: ["github.com/Microsoft/go-winio.ioCompletionProcessor"]

config/configretry/backoff.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
package configretry // import "go.opentelemetry.io/collector/config/configretry"
55

6+
//go:generate mdatagen metadata.yaml
7+
68
import (
79
"errors"
810
"time"

config/configretry/package_test.go renamed to config/configretry/generated_package_test.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)