Skip to content

Commit 10cdcfe

Browse files
committed
polishing
Signed-off-by: odubajDT <[email protected]>
1 parent d68d01e commit 10cdcfe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

processor/redactionprocessor/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ The value is then masked according to the configuration.
126126
`hash_function` defines the function for hashing the values (or substrings of values)
127127
instead of masking them with a fixed string. By default, no hash function is used
128128
and masking with a fixed string is performed. The supported hash functions
129-
are `md5`, `sha1` and `sha3`.
129+
are `md5`, `sha1` and `sha3` (SHA-256).
130130

131131
For example, if `notes` is on the list of allowed keys, then the `notes`
132132
attribute is retained. However, if there is a value such as a credit card

processor/redactionprocessor/config.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import (
1010
"strings"
1111
)
1212

13+
var (
14+
_ encoding.TextUnmarshaler = (*HashFunction)(nil)
15+
)
16+
1317
type HashFunction string
1418

1519
const (
@@ -19,10 +23,6 @@ const (
1923
MD5 HashFunction = "md5"
2024
)
2125

22-
var (
23-
_ encoding.TextUnmarshaler = (*HashFunction)(nil)
24-
)
25-
2626
type Config struct {
2727
// AllowAllKeys is a flag to allow all span attribute keys. Setting this
2828
// to true disables the AllowedKeys list. The list of BlockedValues is

0 commit comments

Comments
 (0)