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
fix(pii-redaction): add a strands specific example, reformat context (#177)
* fix(pii-redaction): add strands specific example, reformat context
* add navigation for pii-redaction
---------
Co-authored-by: Jack Yuan <jackypc@amazon.com>
# "Hi, I'm [REDACTED_PERSON_1]. My phone number is [REDACTED_PHONE_NUMBER_1] and my email is [REDACTED_EMAIL_ADDRESS_1]. I need help with my order #123456789."
153
+
#Example output:
154
+
# #Hello! I'd be happy to help you with your order #123456789.
155
+
# To better assist you, could you please let me know what specific issue you're experiencing with this order? For example:
156
+
# - Are you looking for a status update?
157
+
# - Need to make changes to the order?
158
+
# - Having delivery issues?
159
+
# - Need to process a return or exchange?
160
+
#
161
+
# Once I understand what you need help with, I'll be able to provide you with the most relevant assistance."
162
+
163
+
if__name__=="__main__":
164
+
process()
165
+
```
75
166
76
167
### Option 2: Using OpenTelemetry Collector Configuration [Collector-level Masking]
77
168
Implement PII masking directly at the collector level, which is ideal for centralized control.
169
+
78
170
#### Example code:
79
171
1. Edit your collector configuration (eg., otel-collector-config.yaml):
80
-
````
172
+
173
+
```yaml
81
174
processors:
82
175
attributes/pii:
83
176
actions:
@@ -92,22 +185,28 @@ service:
92
185
pipelines:
93
186
traces:
94
187
processors: [attributes/pii]
95
-
````
188
+
```
189
+
96
190
2. Deploy or restart your OTEL collector with the updated configuration.
0 commit comments