Skip to content

Commit

Permalink
replaced constant
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-tim-sumo committed Jun 13, 2024
1 parent b915664 commit 79d1792
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/processor/cascadingfilterprocessor/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/stretchr/testify/require"
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/otelcol/otelcoltest"
"go.opentelemetry.io/collector/pdata/ptrace"

cfconfig "github.com/SumoLogic/sumologic-otel-collector/pkg/processor/cascadingfilterprocessor/config"
)
Expand All @@ -45,7 +46,7 @@ func TestLoadConfig(t *testing.T) {
probFilteringRate := int32(100)
namePatternValue := "foo.*"
healthCheckNamePatternValue := "health.*"
statusCode := "Error"
statusCode := ptrace.StatusCodeError.String()

id1 := component.NewIDWithName(Type, "1")
assert.Equal(t, cfg.Processors[id1],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func validateStatusCode(statusCode *string) error {
}
}

return errors.New("Invalid status code: must be one of 'Error', 'Ok', or 'Unset' ")
return errors.New("invalid status code: must be one of 'Error', 'Ok', or 'Unset' ")
}

var _ DropTraceEvaluator = (*dropTraceEvaluator)(nil)
Expand Down

0 comments on commit 79d1792

Please sign in to comment.