4.2 Test Attribute Processor
In this exercise, we will delete the user.account_password, update the user.phone_number attribute and hash the user.email in the span data before it is exported by the Agent.
Exercise
Start the Gateway: In your Gateway terminal window start the Gateway.
Start the Agent: In your Agent terminal window start the Agent.
Start the Load Generator: In the Loadgen terminal window start the loadgen:
Check the debug output: For both the Agent and Gateway confirm that user.account_password has been removed, and both user.phone_number & user.email have been updated:
Check file output: Using jq validate that user.account_password has been removed, and user.phone_number & user.email have been updated in gateway-taces.out:
Notice that the user.account_password has been removed, and the user.phone_number & user.email have been updated:
Important
Stop the Agent and the Gateway processes by pressing Ctrl-C in their respective terminals.