You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/3-opentelemetry-collector-workshops/2-advanced-collector/4-building-resilience/4-4-recovery.md
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/3-opentelemetry-collector-workshops/2-advanced-collector/6-sensitive-data/6-2-test-delete-tag.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,16 @@ In this exercise, we will **delete** the `user.account_password`, **update** the
10
10
11
11
**Start the Gateway**: In your **Gateway terminal** window start the `gateway`.
12
12
13
+
```bash
14
+
../otelcol --config=gateway.yaml
15
+
```
16
+
13
17
**Start the Agent**: In your **Agent terminal** window start the `agent`.
14
18
19
+
```bash
20
+
../otelcol --config=agent.yaml
21
+
```
22
+
15
23
**Start the Load Generator**: In the **Spans terminal** window start the `loadgen`:
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/3-opentelemetry-collector-workshops/2-advanced-collector/6-sensitive-data/6-3-test-redaction.md
+32-3Lines changed: 32 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,35 @@ In this exercise, we will **redact** the `user.visa` & `user.mastercard` **value
13
13
14
14
**Start the Gateway**: In your **Gateway terminal** window start the `gateway`.
15
15
16
+
```bash
17
+
../otelcol --config=gateway.yaml
18
+
```
19
+
16
20
**Enable the `redaction/redact` processor**: In the **Agent terminal** window, edit `agent.yaml` and remove the `#` we inserted in the previous exercise.
17
21
22
+
```yaml
23
+
traces:
24
+
receivers:
25
+
- otlp
26
+
processors:
27
+
- memory_limiter
28
+
- attributes/update # Update, hash, and remove attributes
29
+
- redaction/redact # Redact sensitive fields using regex
30
+
- resourcedetection
31
+
- resource/add_mode
32
+
- batch
33
+
exporters:
34
+
- debug
35
+
- file
36
+
- otlphttp
37
+
```
38
+
18
39
**Start the Agent**: In your **Agent terminal** window start the `agent`.
19
40
41
+
```bash
42
+
../otelcol --config=agent.yaml
43
+
```
44
+
20
45
**Start the Load Generator**: In the **Spans terminal** window start the `loadgen`:
21
46
22
47
```bash
@@ -67,25 +92,29 @@ By including `summary:debug` in the redaction processor, the debug output will i
67
92
68
93
{{% /notice %}}
69
94
70
-
**Check file output**: In the newly created `gateway-traces.out` file to verify confirm that `user.visa` & `user.mastercard` have been updated.
95
+
**Check file output**: Using `jq` verify that `user.visa` & `user.mastercard` have been updated in the `gateway-traces.out`.
0 commit comments