Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Recorder] Add support for session-level sanitizers #21533

Merged
merged 3 commits into from
Apr 21, 2022

Conversation

timovv
Copy link
Member

@timovv timovv commented Apr 20, 2022

Packages impacted by this PR

  • @azure/test-recorder

Issues associated with this PR

Describe the problem that is addressed by this PR

The test proxy has support for adding sanitizers at two levels: at the per-recording level and at the session level. Before this PR, the JS recorder client only allowed for sanitizers to be added at the per-recording level (using the addSanitizers instance method on the Recorder class). This PR adds a static Recorder.addSessionSanitizers(...) method which allows for sanitizers to be set at the session level. These sanitizers will be applied to every recording following the call.

Are there test cases added in this PR? (If not, why?)

Yes ✅

Checklists

  • Added impacted package name to the issue description
  • Added a changelog entry

Copy link
Member

@HarshaNalluru HarshaNalluru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

@timovv timovv merged commit 11c2645 into Azure:main Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Unified Recorder] Option to add session level sanitizer
2 participants