File tree 2 files changed +5
-5
lines changed
processor/redactionprocessor
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ The value is then masked according to the configuration.
126
126
` hash_function` defines the function for hashing the values (or substrings of values)
127
127
instead of masking them with a fixed string. By default, no hash function is used
128
128
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) .
130
130
131
131
For example, if `notes` is on the list of allowed keys, then the `notes`
132
132
attribute is retained. However, if there is a value such as a credit card
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import (
10
10
"strings"
11
11
)
12
12
13
+ var (
14
+ _ encoding.TextUnmarshaler = (* HashFunction )(nil )
15
+ )
16
+
13
17
type HashFunction string
14
18
15
19
const (
@@ -19,10 +23,6 @@ const (
19
23
MD5 HashFunction = "md5"
20
24
)
21
25
22
- var (
23
- _ encoding.TextUnmarshaler = (* HashFunction )(nil )
24
- )
25
-
26
26
type Config struct {
27
27
// AllowAllKeys is a flag to allow all span attribute keys. Setting this
28
28
// to true disables the AllowedKeys list. The list of BlockedValues is
You can’t perform that action at this time.
0 commit comments