-
Notifications
You must be signed in to change notification settings - Fork 6
/
redaction.yaml
42 lines (38 loc) · 921 Bytes
/
redaction.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
redaction:
allow_all_keys: false
allowed_keys:
- description
- group
- name
ignored_keys:
- safe_attribute
blocked_values:
- "4[0-9]{12}(?:[0-9]{3})?" ## Visa credit card number
- "(5[1-5][0-9]{14})" ## MasterCard number
- "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\b){4}$" ## IPv4 addresses
- "^[\\w\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$" ## email addresses (simplified example)
summary: info
exporters:
otlphttp:
endpoint: ${env:DT_ENDPOINT}
headers:
Authorization: "Api-Token ${env:API_TOKEN}"
extensions:
health_check:
endpoint: 0.0.0.0:13133
service:
extensions:
- health_check
pipelines:
traces:
receivers: [otlp]
processors: [redaction]
exporters: [otlphttp]