Skip to content

Commit 762671f

Browse files
committed
default enabled attribute to true
1 parent 0b79c5c commit 762671f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cmd/mdatagen/internal/metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ type Attribute struct {
313313

314314
func (a *Attribute) Unmarshal(parser *confmap.Conf) error {
315315
if !parser.IsSet("enabled") {
316-
return errors.New("missing required field for attribute: `enabled`")
316+
a.Enabled = true
317317
}
318318
return parser.Unmarshal(a)
319319
}

receiver/receiverhelper/metadata.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,3 @@ attributes:
107107
- success
108108
- refused
109109
- failure
110-
enabled: true

0 commit comments

Comments
 (0)