From 122acb68a61576d657bff6fba68c3b83da585ea7 Mon Sep 17 00:00:00 2001 From: Daniel Jaglowski Date: Fri, 1 Nov 2024 18:08:23 -0400 Subject: [PATCH] [chore][connector/routing] Consolidate test input into one file (#36129) --- connector/routingconnector/logs_test.go | 55 ++----- .../all_match_first_only => }/input.yaml | 0 .../all_match_last_only/input.yaml | 141 ------------------ .../match_none_with_default/input.yaml | 141 ------------------ .../match_none_without_default/input.yaml | 141 ------------------ .../some_match_each_route/input.yaml | 141 ------------------ .../input.yaml | 141 ------------------ .../with_resource_condition/input.yaml | 141 ------------------ .../with_scope_condition/input.yaml | 141 ------------------ .../match_logs_then_grpc_request/input.yaml | 141 ------------------ .../match_logs_then_http_request/input.yaml | 141 ------------------ .../match_logs_then_resource/input.yaml | 141 ------------------ .../input.yaml | 141 ------------------ .../input.yaml | 141 ------------------ .../match_resource_then_logs/input.yaml | 141 ------------------ .../match_any_value/input.yaml | 141 ------------------ .../match_grpc_value/input.yaml | 141 ------------------ .../match_http_value/input.yaml | 141 ------------------ .../match_http_value2/input.yaml | 141 ------------------ .../match_no_grpc_value/input.yaml | 141 ------------------ .../match_no_http_value/input.yaml | 141 ------------------ .../no_request_values/input.yaml | 141 ------------------ .../all_match_first_only/input.yaml | 141 ------------------ .../all_match_last_only/input.yaml | 141 ------------------ .../all_match_once/input.yaml | 141 ------------------ .../each_matches_one/input.yaml | 141 ------------------ .../match_none_with_default/input.yaml | 141 ------------------ .../match_none_without_default/input.yaml | 141 ------------------ 28 files changed, 15 insertions(+), 3706 deletions(-) rename connector/routingconnector/testdata/logs/{log_context/all_match_first_only => }/input.yaml (100%) delete mode 100644 connector/routingconnector/testdata/logs/log_context/all_match_last_only/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/log_context/match_none_with_default/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/log_context/match_none_without_default/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/log_context/some_match_each_route/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/log_context/with_resource_and_scope_conditions/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/log_context/with_resource_condition/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/log_context/with_scope_condition/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/mixed_context/match_logs_then_grpc_request/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/mixed_context/match_logs_then_http_request/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/mixed_context/match_logs_then_resource/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/mixed_context/match_resource_then_grpc_request/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/mixed_context/match_resource_then_http_request/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/mixed_context/match_resource_then_logs/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/request_context/match_any_value/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/request_context/match_grpc_value/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/request_context/match_http_value/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/request_context/match_http_value2/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/request_context/match_no_grpc_value/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/request_context/match_no_http_value/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/request_context/no_request_values/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/resource_context/all_match_first_only/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/resource_context/all_match_last_only/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/resource_context/all_match_once/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/resource_context/each_matches_one/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/resource_context/match_none_with_default/input.yaml delete mode 100644 connector/routingconnector/testdata/logs/resource_context/match_none_without_default/input.yaml diff --git a/connector/routingconnector/logs_test.go b/connector/routingconnector/logs_test.go index da8d75dda304..6afe61733005 100644 --- a/connector/routingconnector/logs_test.go +++ b/connector/routingconnector/logs_test.go @@ -22,7 +22,6 @@ import ( "go.opentelemetry.io/collector/pipeline" "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden" - "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatatest/plogtest" ) func TestLogsRegisterConsumersForValidRoute(t *testing.T) { @@ -531,25 +530,6 @@ func TestLogsConnectorDetailed(t *testing.T) { ) require.NoError(t, err) - var expected0, expected1, expectedDefault *plog.Logs - if expected, readErr := golden.ReadLogs(filepath.Join(tt, "sink_0.yaml")); readErr == nil { - expected0 = &expected - } else if !os.IsNotExist(readErr) { - t.Fatalf("Error reading sink_0.yaml: %v", readErr) - } - - if expected, readErr := golden.ReadLogs(filepath.Join(tt, "sink_1.yaml")); readErr == nil { - expected1 = &expected - } else if !os.IsNotExist(readErr) { - t.Fatalf("Error reading sink_1.yaml: %v", readErr) - } - - if expected, readErr := golden.ReadLogs(filepath.Join(tt, "sink_default.yaml")); readErr == nil { - expectedDefault = &expected - } else if !os.IsNotExist(readErr) { - t.Fatalf("Error reading sink_default.yaml: %v", readErr) - } - ctx := context.Background() if ctxFromFile, readErr := createContextFromFile(t, filepath.Join(tt, "request.yaml")); readErr == nil { ctx = ctxFromFile @@ -557,31 +537,26 @@ func TestLogsConnectorDetailed(t *testing.T) { t.Fatalf("Error reading request.yaml: %v", readErr) } - input, readErr := golden.ReadLogs(filepath.Join(tt, "input.yaml")) + input, readErr := golden.ReadLogs(filepath.Join("testdata", "logs", "input.yaml")) require.NoError(t, readErr) require.NoError(t, conn.ConsumeLogs(ctx, input)) - if expected0 == nil { - assert.Empty(t, sink0.AllLogs(), "sink0 should be empty") - } else { - require.Len(t, sink0.AllLogs(), 1, "sink0 should have one plog.Logs") - assert.NoError(t, plogtest.CompareLogs(*expected0, sink0.AllLogs()[0]), "sink0 has unexpected result") - } - - if expected1 == nil { - assert.Empty(t, sink1.AllLogs(), "sink1 should be empty") - } else { - require.Len(t, sink1.AllLogs(), 1, "sink1 should have one plog.Logs") - assert.NoError(t, plogtest.CompareLogs(*expected1, sink1.AllLogs()[0]), "sink1 has unexpected result") - } - - if expectedDefault == nil { - assert.Empty(t, sinkDefault.AllLogs(), "sinkDefault should be empty") - } else { - require.Len(t, sinkDefault.AllLogs(), 1, "sinkDefault should have one plog.Logs") - assert.NoError(t, plogtest.CompareLogs(*expectedDefault, sinkDefault.AllLogs()[0]), "sinkDefault has unexpected result") + assertExpected := func(actual []plog.Logs, filePath string) { + expected, err := golden.ReadLogs(filePath) + switch { + case err == nil: + require.Len(t, actual, 1) + assert.Equal(t, expected, actual[0]) + case os.IsNotExist(err): + assert.Empty(t, actual) + default: + t.Fatalf("Error reading %s: %v", filePath, err) + } } + assertExpected(sink0.AllLogs(), filepath.Join(tt, "sink_0.yaml")) + assertExpected(sink1.AllLogs(), filepath.Join(tt, "sink_1.yaml")) + assertExpected(sinkDefault.AllLogs(), filepath.Join(tt, "sink_default.yaml")) }) } } diff --git a/connector/routingconnector/testdata/logs/log_context/all_match_first_only/input.yaml b/connector/routingconnector/testdata/logs/input.yaml similarity index 100% rename from connector/routingconnector/testdata/logs/log_context/all_match_first_only/input.yaml rename to connector/routingconnector/testdata/logs/input.yaml diff --git a/connector/routingconnector/testdata/logs/log_context/all_match_last_only/input.yaml b/connector/routingconnector/testdata/logs/log_context/all_match_last_only/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/log_context/all_match_last_only/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/log_context/match_none_with_default/input.yaml b/connector/routingconnector/testdata/logs/log_context/match_none_with_default/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/log_context/match_none_with_default/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/log_context/match_none_without_default/input.yaml b/connector/routingconnector/testdata/logs/log_context/match_none_without_default/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/log_context/match_none_without_default/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/log_context/some_match_each_route/input.yaml b/connector/routingconnector/testdata/logs/log_context/some_match_each_route/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/log_context/some_match_each_route/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/log_context/with_resource_and_scope_conditions/input.yaml b/connector/routingconnector/testdata/logs/log_context/with_resource_and_scope_conditions/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/log_context/with_resource_and_scope_conditions/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/log_context/with_resource_condition/input.yaml b/connector/routingconnector/testdata/logs/log_context/with_resource_condition/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/log_context/with_resource_condition/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/log_context/with_scope_condition/input.yaml b/connector/routingconnector/testdata/logs/log_context/with_scope_condition/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/log_context/with_scope_condition/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/mixed_context/match_logs_then_grpc_request/input.yaml b/connector/routingconnector/testdata/logs/mixed_context/match_logs_then_grpc_request/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/mixed_context/match_logs_then_grpc_request/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/mixed_context/match_logs_then_http_request/input.yaml b/connector/routingconnector/testdata/logs/mixed_context/match_logs_then_http_request/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/mixed_context/match_logs_then_http_request/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/mixed_context/match_logs_then_resource/input.yaml b/connector/routingconnector/testdata/logs/mixed_context/match_logs_then_resource/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/mixed_context/match_logs_then_resource/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/mixed_context/match_resource_then_grpc_request/input.yaml b/connector/routingconnector/testdata/logs/mixed_context/match_resource_then_grpc_request/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/mixed_context/match_resource_then_grpc_request/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/mixed_context/match_resource_then_http_request/input.yaml b/connector/routingconnector/testdata/logs/mixed_context/match_resource_then_http_request/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/mixed_context/match_resource_then_http_request/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/mixed_context/match_resource_then_logs/input.yaml b/connector/routingconnector/testdata/logs/mixed_context/match_resource_then_logs/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/mixed_context/match_resource_then_logs/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/request_context/match_any_value/input.yaml b/connector/routingconnector/testdata/logs/request_context/match_any_value/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/request_context/match_any_value/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/request_context/match_grpc_value/input.yaml b/connector/routingconnector/testdata/logs/request_context/match_grpc_value/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/request_context/match_grpc_value/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/request_context/match_http_value/input.yaml b/connector/routingconnector/testdata/logs/request_context/match_http_value/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/request_context/match_http_value/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/request_context/match_http_value2/input.yaml b/connector/routingconnector/testdata/logs/request_context/match_http_value2/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/request_context/match_http_value2/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/request_context/match_no_grpc_value/input.yaml b/connector/routingconnector/testdata/logs/request_context/match_no_grpc_value/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/request_context/match_no_grpc_value/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/request_context/match_no_http_value/input.yaml b/connector/routingconnector/testdata/logs/request_context/match_no_http_value/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/request_context/match_no_http_value/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/request_context/no_request_values/input.yaml b/connector/routingconnector/testdata/logs/request_context/no_request_values/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/request_context/no_request_values/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/resource_context/all_match_first_only/input.yaml b/connector/routingconnector/testdata/logs/resource_context/all_match_first_only/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/resource_context/all_match_first_only/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/resource_context/all_match_last_only/input.yaml b/connector/routingconnector/testdata/logs/resource_context/all_match_last_only/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/resource_context/all_match_last_only/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/resource_context/all_match_once/input.yaml b/connector/routingconnector/testdata/logs/resource_context/all_match_once/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/resource_context/all_match_once/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/resource_context/each_matches_one/input.yaml b/connector/routingconnector/testdata/logs/resource_context/each_matches_one/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/resource_context/each_matches_one/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/resource_context/match_none_with_default/input.yaml b/connector/routingconnector/testdata/logs/resource_context/match_none_with_default/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/resource_context/match_none_with_default/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 diff --git a/connector/routingconnector/testdata/logs/resource_context/match_none_without_default/input.yaml b/connector/routingconnector/testdata/logs/resource_context/match_none_without_default/input.yaml deleted file mode 100644 index 63c6eada6cf9..000000000000 --- a/connector/routingconnector/testdata/logs/resource_context/match_none_without_default/input.yaml +++ /dev/null @@ -1,141 +0,0 @@ -resourceLogs: - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceA - - key: resourceNameAgain - value: - stringValue: resourceA - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0 - - resource: - attributes: - - key: resourceName - value: - stringValue: resourceB - - key: resourceNameAgain - value: - stringValue: resourceB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scopeLogs: - - attributes: - - key: scopeName - value: - stringValue: scopeA - - key: scopeNameAgain - value: - stringValue: scopeA - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeA - version: v0.1.0 - - attributes: - - key: scopeName - value: - stringValue: scopeB - - key: scopeNameAgain - value: - stringValue: scopeB - logRecords: - - attributes: - - key: logName - value: - stringValue: logA - - key: logNameAgain - value: - stringValue: logA - body: - stringValue: logA - - attributes: - - key: logName - value: - stringValue: logB - - key: logNameAgain - value: - stringValue: logB - body: - stringValue: logB - schemaUrl: https://opentelemetry.io/schemas/1.6.1 - scope: - name: scopeB - version: v0.1.0