Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Jan 23, 2025
1 parent 1e8d431 commit 47af88a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions processor/attributesprocessor/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func TestLoadConfig(t *testing.T) {
}
}

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

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

_, err = NewFactory().CreateMetrics(context.Background(), processortest.NewNopSettings(), cfg, &sink)
require.NoError(t, err)
require.Error(t, err)
}
3 changes: 1 addition & 2 deletions processor/attributesprocessor/testdata/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ attributes/excludemulti:
# match_type defines that "services" is an array of strings that must
# match service name strictly.
match_type: strict
log_severity_texts: [ "debug.*" ]
# The Span service name must be equal to "svcA" or "svcB".
services: ["svcA", "svcB"]
attributes:
Expand Down Expand Up @@ -334,7 +333,7 @@ attributes/log_severity_regexp:
# match_type defines that "services" is an array of regexp-es.
match_type: regexp
# The log severity text "debug.*" pattern.

log_severity_texts: [ "debug.*" ]
actions:
- key: password
action: update
Expand Down

0 comments on commit 47af88a

Please sign in to comment.