diff --git a/confgenerator/filter/internal/ast/ast.go b/confgenerator/filter/internal/ast/ast.go index ab761045d3..dbe8d1ad90 100644 --- a/confgenerator/filter/internal/ast/ast.go +++ b/confgenerator/filter/internal/ast/ast.go @@ -57,9 +57,9 @@ var logEntryRootValueMapToOTel = map[string][]string{ } var logEntryRootStructMapToOTel = map[string][]string{ - "jsonPayload": {"body"}, - "labels": {"attributes"}, - // "operation": {}, // TODO: Missing in OTel exporter + "jsonPayload": {"body"}, + "labels": {"attributes"}, + "operation": {"attributes", "gcp.operation"}, "sourceLocation": {"attributes", "gcp.source_location"}, "httpRequest": {"attributes", "gcp.http_request"}, } diff --git a/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/linux-gpu/error b/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/linux-gpu/error index f2fc4eacd2..7f9e6bcc73 100644 --- a/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/linux-gpu/error +++ b/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/linux-gpu/error @@ -1,10 +1,10 @@ -[27:18] "fields[operation]": 1:10: error: field "operation" not found +[27:17] "fields[insertId]": 1:9: error: field "insertId" not found 24 | simple: 25 | type: modify_fields 26 | fields: -> 27 | operation: - ^ - 28 | move_from: jsonPayload.operation +> 27 | insertId: + ^ + 28 | move_from: jsonPayload.insert_id 29 | service: 30 | experimental_otel_logging: true 31 | \ No newline at end of file diff --git a/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/linux/error b/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/linux/error index f2fc4eacd2..7f9e6bcc73 100644 --- a/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/linux/error +++ b/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/linux/error @@ -1,10 +1,10 @@ -[27:18] "fields[operation]": 1:10: error: field "operation" not found +[27:17] "fields[insertId]": 1:9: error: field "insertId" not found 24 | simple: 25 | type: modify_fields 26 | fields: -> 27 | operation: - ^ - 28 | move_from: jsonPayload.operation +> 27 | insertId: + ^ + 28 | move_from: jsonPayload.insert_id 29 | service: 30 | experimental_otel_logging: true 31 | \ No newline at end of file diff --git a/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/windows-2012/error b/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/windows-2012/error index f2fc4eacd2..7f9e6bcc73 100644 --- a/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/windows-2012/error +++ b/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/windows-2012/error @@ -1,10 +1,10 @@ -[27:18] "fields[operation]": 1:10: error: field "operation" not found +[27:17] "fields[insertId]": 1:9: error: field "insertId" not found 24 | simple: 25 | type: modify_fields 26 | fields: -> 27 | operation: - ^ - 28 | move_from: jsonPayload.operation +> 27 | insertId: + ^ + 28 | move_from: jsonPayload.insert_id 29 | service: 30 | experimental_otel_logging: true 31 | \ No newline at end of file diff --git a/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/windows/error b/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/windows/error index f2fc4eacd2..7f9e6bcc73 100644 --- a/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/windows/error +++ b/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/golden/windows/error @@ -1,10 +1,10 @@ -[27:18] "fields[operation]": 1:10: error: field "operation" not found +[27:17] "fields[insertId]": 1:9: error: field "insertId" not found 24 | simple: 25 | type: modify_fields 26 | fields: -> 27 | operation: - ^ - 28 | move_from: jsonPayload.operation +> 27 | insertId: + ^ + 28 | move_from: jsonPayload.insert_id 29 | service: 30 | experimental_otel_logging: true 31 | \ No newline at end of file diff --git a/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/input.yaml b/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/input.yaml index fb56fbc88f..5cc750fd5e 100644 --- a/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/input.yaml +++ b/confgenerator/testdata/goldens/invalid-logging-otel-processor_modify_fields_unsupported_field/input.yaml @@ -24,8 +24,8 @@ logging: simple: type: modify_fields fields: - operation: - move_from: jsonPayload.operation + insertId: + move_from: jsonPayload.insert_id service: experimental_otel_logging: true pipelines: diff --git a/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/linux-gpu/otel.yaml index f7f71ec8ea..c395ca0ee2 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/linux-gpu/otel.yaml @@ -815,12 +815,15 @@ processors: - delete_key(cache, "__field_10") where (cache != nil and cache["__field_10"] != nil) - set(cache["__field_10"], body) where (body != nil) - delete_key(cache, "__field_11") where (cache != nil and cache["__field_11"] != nil) - - set(cache["__field_11"], body["level"]) where (body != nil and body["level"] != nil) - - delete_key(cache, "__field_13") where (cache != nil and cache["__field_13"] != nil) - - set(cache["__field_13"], body["trace"]) where (body != nil and body["trace"] != nil) + - set(cache["__field_11"], body["op_id"]) where (body != nil and body["op_id"] != nil) + - delete_key(cache, "__field_12") where (cache != nil and cache["__field_12"] != nil) + - set(cache["__field_12"], body["level"]) where (body != nil and body["level"] != nil) + - delete_key(cache, "__field_14") where (cache != nil and cache["__field_14"] != nil) + - set(cache["__field_14"], body["trace"]) where (body != nil and body["trace"] != nil) - set(cache["__omit_0"], false) - set(cache["__omit_0"], true) where ((body != nil and body["omitted"] != nil) and IsMatch(body["omitted"], "(?i)^-$")) - delete_key(body, "move_source") where (body != nil and body["move_source"] != nil) + - delete_key(body, "op_id") where (body != nil and body["op_id"] != nil) - delete_key(body, "trace") where (body != nil and body["trace"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - set(cache["value"], cache["__field_0"]) @@ -862,6 +865,9 @@ processors: - set(attributes["text"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - set(cache["value"], cache["__field_11"]) + - set(attributes["gcp.operation"]["id"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_12"]) - delete_key(cache, "mapped_value") where (cache != nil and cache["mapped_value"] != nil) - set(cache["mapped_value"], cache["value"]) where (cache != nil and cache["value"] != nil) - set(cache["mapped_value"], "WARNING") where cache["value"] == "CAUTION" @@ -873,7 +879,7 @@ processors: - set(cache["value"], "spanValue") - set(span_id.string, cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - - set(cache["value"], cache["__field_13"]) + - set(cache["value"], cache["__field_14"]) - delete_key(cache, "__setif_value") where (cache != nil and cache["__setif_value"] != nil) - set(cache["__setif_value"], cache["value"]) - replace_pattern(cache["__setif_value"], "^projects/([^/]*)/traces/", "") diff --git a/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/linux/otel.yaml index 91b0128cbc..726b05ce3f 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/linux/otel.yaml @@ -771,12 +771,15 @@ processors: - delete_key(cache, "__field_10") where (cache != nil and cache["__field_10"] != nil) - set(cache["__field_10"], body) where (body != nil) - delete_key(cache, "__field_11") where (cache != nil and cache["__field_11"] != nil) - - set(cache["__field_11"], body["level"]) where (body != nil and body["level"] != nil) - - delete_key(cache, "__field_13") where (cache != nil and cache["__field_13"] != nil) - - set(cache["__field_13"], body["trace"]) where (body != nil and body["trace"] != nil) + - set(cache["__field_11"], body["op_id"]) where (body != nil and body["op_id"] != nil) + - delete_key(cache, "__field_12") where (cache != nil and cache["__field_12"] != nil) + - set(cache["__field_12"], body["level"]) where (body != nil and body["level"] != nil) + - delete_key(cache, "__field_14") where (cache != nil and cache["__field_14"] != nil) + - set(cache["__field_14"], body["trace"]) where (body != nil and body["trace"] != nil) - set(cache["__omit_0"], false) - set(cache["__omit_0"], true) where ((body != nil and body["omitted"] != nil) and IsMatch(body["omitted"], "(?i)^-$")) - delete_key(body, "move_source") where (body != nil and body["move_source"] != nil) + - delete_key(body, "op_id") where (body != nil and body["op_id"] != nil) - delete_key(body, "trace") where (body != nil and body["trace"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - set(cache["value"], cache["__field_0"]) @@ -818,6 +821,9 @@ processors: - set(attributes["text"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - set(cache["value"], cache["__field_11"]) + - set(attributes["gcp.operation"]["id"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_12"]) - delete_key(cache, "mapped_value") where (cache != nil and cache["mapped_value"] != nil) - set(cache["mapped_value"], cache["value"]) where (cache != nil and cache["value"] != nil) - set(cache["mapped_value"], "WARNING") where cache["value"] == "CAUTION" @@ -829,7 +835,7 @@ processors: - set(cache["value"], "spanValue") - set(span_id.string, cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - - set(cache["value"], cache["__field_13"]) + - set(cache["value"], cache["__field_14"]) - delete_key(cache, "__setif_value") where (cache != nil and cache["__setif_value"] != nil) - set(cache["__setif_value"], cache["value"]) - replace_pattern(cache["__setif_value"], "^projects/([^/]*)/traces/", "") diff --git a/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/windows-2012/otel.yaml index 3e925fb852..1d0a09bc3c 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/windows-2012/otel.yaml @@ -861,12 +861,15 @@ processors: - delete_key(cache, "__field_10") where (cache != nil and cache["__field_10"] != nil) - set(cache["__field_10"], body) where (body != nil) - delete_key(cache, "__field_11") where (cache != nil and cache["__field_11"] != nil) - - set(cache["__field_11"], body["level"]) where (body != nil and body["level"] != nil) - - delete_key(cache, "__field_13") where (cache != nil and cache["__field_13"] != nil) - - set(cache["__field_13"], body["trace"]) where (body != nil and body["trace"] != nil) + - set(cache["__field_11"], body["op_id"]) where (body != nil and body["op_id"] != nil) + - delete_key(cache, "__field_12") where (cache != nil and cache["__field_12"] != nil) + - set(cache["__field_12"], body["level"]) where (body != nil and body["level"] != nil) + - delete_key(cache, "__field_14") where (cache != nil and cache["__field_14"] != nil) + - set(cache["__field_14"], body["trace"]) where (body != nil and body["trace"] != nil) - set(cache["__omit_0"], false) - set(cache["__omit_0"], true) where ((body != nil and body["omitted"] != nil) and IsMatch(body["omitted"], "(?i)^-$")) - delete_key(body, "move_source") where (body != nil and body["move_source"] != nil) + - delete_key(body, "op_id") where (body != nil and body["op_id"] != nil) - delete_key(body, "trace") where (body != nil and body["trace"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - set(cache["value"], cache["__field_0"]) @@ -908,6 +911,9 @@ processors: - set(attributes["text"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - set(cache["value"], cache["__field_11"]) + - set(attributes["gcp.operation"]["id"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_12"]) - delete_key(cache, "mapped_value") where (cache != nil and cache["mapped_value"] != nil) - set(cache["mapped_value"], cache["value"]) where (cache != nil and cache["value"] != nil) - set(cache["mapped_value"], "WARNING") where cache["value"] == "CAUTION" @@ -919,7 +925,7 @@ processors: - set(cache["value"], "spanValue") - set(span_id.string, cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - - set(cache["value"], cache["__field_13"]) + - set(cache["value"], cache["__field_14"]) - delete_key(cache, "__setif_value") where (cache != nil and cache["__setif_value"] != nil) - set(cache["__setif_value"], cache["value"]) - replace_pattern(cache["__setif_value"], "^projects/([^/]*)/traces/", "") diff --git a/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/windows/otel.yaml index 3e925fb852..1d0a09bc3c 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/golden/windows/otel.yaml @@ -861,12 +861,15 @@ processors: - delete_key(cache, "__field_10") where (cache != nil and cache["__field_10"] != nil) - set(cache["__field_10"], body) where (body != nil) - delete_key(cache, "__field_11") where (cache != nil and cache["__field_11"] != nil) - - set(cache["__field_11"], body["level"]) where (body != nil and body["level"] != nil) - - delete_key(cache, "__field_13") where (cache != nil and cache["__field_13"] != nil) - - set(cache["__field_13"], body["trace"]) where (body != nil and body["trace"] != nil) + - set(cache["__field_11"], body["op_id"]) where (body != nil and body["op_id"] != nil) + - delete_key(cache, "__field_12") where (cache != nil and cache["__field_12"] != nil) + - set(cache["__field_12"], body["level"]) where (body != nil and body["level"] != nil) + - delete_key(cache, "__field_14") where (cache != nil and cache["__field_14"] != nil) + - set(cache["__field_14"], body["trace"]) where (body != nil and body["trace"] != nil) - set(cache["__omit_0"], false) - set(cache["__omit_0"], true) where ((body != nil and body["omitted"] != nil) and IsMatch(body["omitted"], "(?i)^-$")) - delete_key(body, "move_source") where (body != nil and body["move_source"] != nil) + - delete_key(body, "op_id") where (body != nil and body["op_id"] != nil) - delete_key(body, "trace") where (body != nil and body["trace"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - set(cache["value"], cache["__field_0"]) @@ -908,6 +911,9 @@ processors: - set(attributes["text"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - set(cache["value"], cache["__field_11"]) + - set(attributes["gcp.operation"]["id"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_12"]) - delete_key(cache, "mapped_value") where (cache != nil and cache["mapped_value"] != nil) - set(cache["mapped_value"], cache["value"]) where (cache != nil and cache["value"] != nil) - set(cache["mapped_value"], "WARNING") where cache["value"] == "CAUTION" @@ -919,7 +925,7 @@ processors: - set(cache["value"], "spanValue") - set(span_id.string, cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) - - set(cache["value"], cache["__field_13"]) + - set(cache["value"], cache["__field_14"]) - delete_key(cache, "__setif_value") where (cache != nil and cache["__setif_value"] != nil) - set(cache["__setif_value"], cache["value"]) - replace_pattern(cache["__setif_value"], "^projects/([^/]*)/traces/", "") diff --git a/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/input.yaml b/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/input.yaml index c02c8c034f..0632648177 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/input.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_modify_fields/input.yaml @@ -54,6 +54,8 @@ logging: static_value: spanValue trace: move_from: jsonPayload.trace + operation.id: + move_from: jsonPayload.op_id service: experimental_otel_logging: true pipelines: diff --git a/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/linux-gpu/otel.yaml index 95798919eb..ef895154f1 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/linux-gpu/otel.yaml @@ -850,6 +850,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/linux/otel.yaml index 0e7bc8d8b1..c6fc2fd326 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/linux/otel.yaml @@ -806,6 +806,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/windows-2012/otel.yaml index 5fe5713c56..860af7beed 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/windows-2012/otel.yaml @@ -896,6 +896,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/windows/otel.yaml index 5fe5713c56..860af7beed 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_parse_json/golden/windows/otel.yaml @@ -896,6 +896,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/otel.yaml index d527a46be6..1a3c990564 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/otel.yaml @@ -821,6 +821,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/linux/otel.yaml index 5bc02671cb..c4111b4622 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/linux/otel.yaml @@ -777,6 +777,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/otel.yaml index 5e3c2bfb0f..aafb46343b 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/otel.yaml @@ -867,6 +867,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -929,6 +935,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -991,6 +1003,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/windows/otel.yaml index 5e3c2bfb0f..aafb46343b 100644 --- a/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-processor_parse_regex_type_on_default_pipeline/golden/windows/otel.yaml @@ -867,6 +867,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -929,6 +935,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -991,6 +1003,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/linux-gpu/otel.yaml index 7c3ab0c9a9..efc33f47c8 100644 --- a/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/linux-gpu/otel.yaml @@ -821,6 +821,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -883,6 +889,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/linux/otel.yaml index 41ee8e213b..a220d86eed 100644 --- a/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/linux/otel.yaml @@ -777,6 +777,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -839,6 +845,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/windows-2012/otel.yaml index 3663bb2a1e..524809b22f 100644 --- a/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/windows-2012/otel.yaml @@ -867,6 +867,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -929,6 +935,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/windows/otel.yaml index 3663bb2a1e..524809b22f 100644 --- a/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-otel-receiver_syslog_type_multiple_receivers/golden/windows/otel.yaml @@ -867,6 +867,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -929,6 +935,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/otel.yaml index fe4c535257..384956f3aa 100644 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux-gpu/otel.yaml @@ -879,6 +879,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -941,6 +947,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/otel.yaml index aba57ab54d..63658381d8 100644 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/linux/otel.yaml @@ -835,6 +835,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -897,6 +903,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/otel.yaml index 4fd0f2effa..dd65d10d9e 100644 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows-2012/otel.yaml @@ -925,6 +925,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -987,6 +993,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/otel.yaml index 4fd0f2effa..dd65d10d9e 100644 --- a/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-pipeline_multiple_pipelines/golden/windows/otel.yaml @@ -925,6 +925,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -987,6 +993,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/otel.yaml index 4ce85d58ac..9503510c74 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux-gpu/otel.yaml @@ -855,6 +855,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/otel.yaml index f6ea09ecb0..9fdac3980a 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/linux/otel.yaml @@ -811,6 +811,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/otel.yaml index 71bc1cae5b..999d1458c5 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows-2012/otel.yaml @@ -901,6 +901,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/otel.yaml index 71bc1cae5b..999d1458c5 100644 --- a/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_exclude_logs_contains/golden/windows/otel.yaml @@ -901,6 +901,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/otel.yaml index 682e9cb4ec..2958a7fe7f 100644 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/linux-gpu/otel.yaml @@ -817,6 +817,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -875,6 +881,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -933,6 +945,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -991,6 +1009,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-processor_order/golden/linux/otel.yaml index 84d53f598d..fb43f3d80f 100644 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/linux/otel.yaml @@ -773,6 +773,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -831,6 +837,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -889,6 +901,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -947,6 +965,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/otel.yaml index 28b579d20e..2d637bce1b 100644 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/windows-2012/otel.yaml @@ -863,6 +863,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -921,6 +927,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -979,6 +991,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -1037,6 +1055,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_order/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-processor_order/golden/windows/otel.yaml index 28b579d20e..2d637bce1b 100644 --- a/confgenerator/testdata/goldens/logging-processor_order/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_order/golden/windows/otel.yaml @@ -863,6 +863,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -921,6 +927,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -979,6 +991,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -1037,6 +1055,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/otel.yaml index 676fad58b0..049ccc847a 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux-gpu/otel.yaml @@ -879,6 +879,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -941,6 +947,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -1003,6 +1015,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -1065,6 +1083,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/otel.yaml index 966c654a77..2dc27446b1 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/linux/otel.yaml @@ -835,6 +835,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -897,6 +903,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -959,6 +971,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -1021,6 +1039,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/otel.yaml index 6d00501d82..a3e5937a91 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows-2012/otel.yaml @@ -925,6 +925,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -987,6 +993,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -1049,6 +1061,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -1111,6 +1129,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/otel.yaml index 6d00501d82..a3e5937a91 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_parse_json_and_parse_regex_types/golden/windows/otel.yaml @@ -925,6 +925,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -987,6 +993,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -1049,6 +1061,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -1111,6 +1129,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/otel.yaml index d527a46be6..1a3c990564 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux-gpu/otel.yaml @@ -821,6 +821,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/otel.yaml index 5bc02671cb..c4111b4622 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/linux/otel.yaml @@ -777,6 +777,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/otel.yaml index 5e3c2bfb0f..aafb46343b 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows-2012/otel.yaml @@ -867,6 +867,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -929,6 +935,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -991,6 +1003,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/otel.yaml index 5e3c2bfb0f..aafb46343b 100644 --- a/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-processor_parse_regex_type_on_default_pipeline/golden/windows/otel.yaml @@ -867,6 +867,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -929,6 +935,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -991,6 +1003,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/otel.yaml index 4c793c7ebb..1061bd8cc4 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux-gpu/otel.yaml @@ -966,6 +966,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/otel.yaml index 8cd47455ba..3f34d241d9 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/linux/otel.yaml @@ -922,6 +922,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/otel.yaml index 12bf241591..5454d97c00 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows-2012/otel.yaml @@ -1012,6 +1012,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/otel.yaml index 12bf241591..5454d97c00 100644 --- a/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-receiver_files_type_multiple_receivers/golden/windows/otel.yaml @@ -1012,6 +1012,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/otel.yaml b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/otel.yaml index 7c3ab0c9a9..efc33f47c8 100644 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/otel.yaml +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux-gpu/otel.yaml @@ -821,6 +821,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -883,6 +889,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/otel.yaml b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/otel.yaml index 41ee8e213b..a220d86eed 100644 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/otel.yaml +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/linux/otel.yaml @@ -777,6 +777,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -839,6 +845,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/otel.yaml index 3663bb2a1e..524809b22f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows-2012/otel.yaml @@ -867,6 +867,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -929,6 +935,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/otel.yaml b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/otel.yaml index 3663bb2a1e..524809b22f 100644 --- a/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/logging-receiver_syslog_type_multiple_receivers/golden/windows/otel.yaml @@ -867,6 +867,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) @@ -929,6 +935,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/otel.yaml b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/otel.yaml index 02719cdaae..e697400b86 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/otel.yaml +++ b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/otel.yaml @@ -862,6 +862,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/otel.yaml b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/otel.yaml index 02719cdaae..e697400b86 100644 --- a/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/otel.yaml +++ b/confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/otel.yaml @@ -862,6 +862,12 @@ processors: - set(cache["value"], cache["__field_0"]) - set(attributes["gcp.log_name"], cache["value"]) where (cache != nil and cache["value"] != nil) - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) + - set(cache["__field_0"], body["logging.googleapis.com/operation"]) where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(body, "logging.googleapis.com/operation") where (body != nil and body["logging.googleapis.com/operation"] != nil) + - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) + - set(cache["value"], cache["__field_0"]) + - set(attributes["gcp.operation"], cache["value"]) where (cache != nil and cache["value"] != nil) + - delete_key(cache, "__field_0") where (cache != nil and cache["__field_0"] != nil) - set(cache["__field_0"], body["logging.googleapis.com/severity"]) where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(body, "logging.googleapis.com/severity") where (body != nil and body["logging.googleapis.com/severity"] != nil) - delete_key(cache, "value") where (cache != nil and cache["value"] != nil) diff --git a/integration_test/ops_agent_test/main_test.go b/integration_test/ops_agent_test/main_test.go index 4448427f6e..5f1931c4fe 100644 --- a/integration_test/ops_agent_test/main_test.go +++ b/integration_test/ops_agent_test/main_test.go @@ -1092,12 +1092,13 @@ logging: // Expect to see the log with the special fields to be placed to the top // level of the LogEntry and the rest to jsonPayload. - // N.B. operation and sourceLocation.function are currently not working under OTel logging due to exporter/ingestion gaps. + // N.B. sourceLocation.function is currently not working under OTel logging due to exporter/ingestion gaps. // Tracked in b/517603547. expectedTrace := fmt.Sprintf("projects/%s/traces/0123456789abcdef0123456789abcdef", vm.Project) if err := gce.WaitForLog(ctx, logger.ToMainLog(), vm, "f1", time.Hour, fmt.Sprintf(`severity="WARNING" AND `+ `labels.label1="value1" AND labels.label2="value2" AND `+ + `operation.id="id" AND operation.producer="producer" AND operation.first=true AND operation.last=true AND `+ `sourceLocation.file="file" AND sourceLocation.line="1" AND `+ `trace=%q AND `+ `spanId="0f1e2d3c4b5a6f7e" AND `+