As it stands, using the setMaskingFunction only applies globally. Meaning, it is difficult to conditionally mask data especially when combined with the existing wrap functions like wrapAISDK.
Potential solutions:
- Allow some context / parent trace to be passed in when using a wrapping function like
wrapAISDK.
- Allow masking functions to be set on individual loggers.
- Allow masking functions to be applied to individual traced() wrappings.