From bd34ffcb3930ca1e8fff26c146d8d823e5c2241f Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Thu, 17 Jun 2021 08:31:13 +0200 Subject: [PATCH] refactor(input/file): use semantic convention like attributes names Signed-off-by: Dominik Rosiek --- operator/builtin/input/file/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/operator/builtin/input/file/config.go b/operator/builtin/input/file/config.go index 7e5734f0..23d27604 100644 --- a/operator/builtin/input/file/config.go +++ b/operator/builtin/input/file/config.go @@ -134,22 +134,22 @@ func (c InputConfig) Build(context operator.BuildContext) ([]operator.Operator, fileNameField := entry.NewNilField() if c.IncludeFileName { - fileNameField = entry.NewAttributeField("file_name") + fileNameField = entry.NewAttributeField("file.name") } filePathField := entry.NewNilField() if c.IncludeFilePath { - filePathField = entry.NewAttributeField("file_path") + filePathField = entry.NewAttributeField("file.path") } fileNameResolvedField := entry.NewNilField() if c.IncludeFileNameResolved { - fileNameResolvedField = entry.NewAttributeField("file_name_resolved") + fileNameResolvedField = entry.NewAttributeField("file.name.resolved") } filePathResolvedField := entry.NewNilField() if c.IncludeFilePathResolved { - filePathResolvedField = entry.NewAttributeField("file_path_resolved") + filePathResolvedField = entry.NewAttributeField("file.path.resolved") } op := &InputOperator{