Skip to content

Commit 47af88a

Browse files
committed
fix issues
Signed-off-by: odubajDT <[email protected]>
1 parent 1e8d431 commit 47af88a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

processor/attributesprocessor/config_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func TestLoadConfig(t *testing.T) {
220220
}
221221
}
222222

223-
func TestMetricsUsedWithServices(t *testing.T) {
223+
func TestSpanConfigUsedWithmetrics(t *testing.T) {
224224
cm, err := confmaptest.LoadConf(filepath.Join("testdata", "config.yaml"))
225225
require.NoError(t, err)
226226

@@ -237,5 +237,5 @@ func TestMetricsUsedWithServices(t *testing.T) {
237237
sink := consumertest.MetricsSink{}
238238

239239
_, err = NewFactory().CreateMetrics(context.Background(), processortest.NewNopSettings(), cfg, &sink)
240-
require.NoError(t, err)
240+
require.Error(t, err)
241241
}

processor/attributesprocessor/testdata/config.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ attributes/excludemulti:
111111
# match_type defines that "services" is an array of strings that must
112112
# match service name strictly.
113113
match_type: strict
114-
log_severity_texts: [ "debug.*" ]
115114
# The Span service name must be equal to "svcA" or "svcB".
116115
services: ["svcA", "svcB"]
117116
attributes:
@@ -334,7 +333,7 @@ attributes/log_severity_regexp:
334333
# match_type defines that "services" is an array of regexp-es.
335334
match_type: regexp
336335
# The log severity text "debug.*" pattern.
337-
336+
log_severity_texts: [ "debug.*" ]
338337
actions:
339338
- key: password
340339
action: update

0 commit comments

Comments
 (0)