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

Add ReplacementOptions to filter telemetry events #93

Merged
merged 2 commits into from
Apr 5, 2022

Commits on Apr 1, 2022

  1. Add ReplacementOptions to filter telemetry events

    For node application insights clients, there is a new constructor
    parameter that allows users to pass a list of replacement options.
    
    Each option includes a lookup regular expression and a replacement
    string.
    
    For each key in the base data or the envelope that matches the
    lookup, the value will be replaced with the associated string. If
    the value is undefined, then the key will be deleted.
    
    Note that this only adds replacements for node clients as I did not
    see an easy way to implement the same in web clients.
    aeisenberg committed Apr 1, 2022
    Configuration menu
    Copy the full SHA
    d42c5c5 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2022

  1. Add replacement support for browser telemetry

    Uses the same mechanism as implemented for node.
    
    This change also moves the shared logic to `utils.ts` and the
    shared interface to `baseTelemetryReporter.ts`.
    
    It updates the typings file appropriately.
    aeisenberg committed Apr 4, 2022
    Configuration menu
    Copy the full SHA
    33328e6 View commit details
    Browse the repository at this point in the history