Skip to content

Commit

Permalink
add default value for ignore_defaults resource attributes config
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepsukhani committed Feb 5, 2024
1 parent 6362cdb commit 96cb9fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/sources/configure/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3148,7 +3148,7 @@ otlp_config:
resource_attributes:
# Configure whether to ignore the default list of resource attributes to be
# stored as index labels and only use the given resource attributes config
[ignore_defaults: <boolean>]
[ignore_defaults: <boolean> | default = false]

[attributes_config: <list of attributes_configs>]

Expand Down
2 changes: 1 addition & 1 deletion pkg/loghttp/push/otlp_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (c *AttributesConfig) UnmarshalYAML(unmarshal func(interface{}) error) erro
}

type ResourceAttributesConfig struct {
IgnoreDefaults bool `yaml:"ignore_defaults,omitempty" doc:"description=Configure whether to ignore the default list of resource attributes to be stored as index labels and only use the given resource attributes config"`
IgnoreDefaults bool `yaml:"ignore_defaults,omitempty" doc:"default=false|description=Configure whether to ignore the default list of resource attributes to be stored as index labels and only use the given resource attributes config"`
AttributesConfig []AttributesConfig `yaml:"attributes_config,omitempty"`
}

Expand Down

0 comments on commit 96cb9fa

Please sign in to comment.