You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config: replace file-path settings with inline structs
Today the pii, filter, and summary settings are specified as paths to
separate YAML files:
pii: /path/to/pii.yml
filter: /path/to/filter.yml
summary: /path/to/summary.yml
This means it is not possible to have a single, combined config file
for an OpenTelemetry collector that uses the trace2receiver. It also
duplicates YAML loading logic that is already built-in using the
${file:PATH} syntax.
Replace the path-string fields (PiiSettingsPath, FilterSettingsPath,
SummaryPath) with inline struct fields (Pii, Filter, Summary) that are
populated directly by mapstructure during config unmarshalling. Users
who prefer separate files can use the ${file:PATH} syntax.
As part of this, rename the previously private Config fields
(piiSettings, filterSettings, summary) to exported names so
mapstructure can populate them, and extract validate() methods on
FilterSettings and SummarySettings so they can be called from
Config.Validate() directly instead of at parse-from-file time.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
0 commit comments