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

feat(replay): Add a replay-specific logger #13256

Merged
merged 8 commits into from
Aug 12, 2024
Merged

Commits on Aug 7, 2024

  1. feat(replay): Add a replay-specific logger

    Removes the old `logInfo` function and replaces it with a new replay-specific
    logger. Configuration is done when the replay integration is first initialized
    to avoid needing to pass around configuration options. This also means
    that we cannot select individual log statements to be added as breadcrumbs with
    `traceInternals` options.
    
    This also adds a `logger.exception` that wraps `captureException`.
    
    Note that only the following logging levels are supported:
    * info
    * log
    * warn
    * error
    
    With two additions:
    * exception
    * infoTick (needs a better name) - same as `info` but adds the breadcrumb in the next tick due to some pre-existing race conditions
    
    There are two configuration options:
    * enable(/disable)CaptureInternalExceptions
    * enable(/disable)TraceInternals
    billyvg committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    21d2a4f View commit details
    Browse the repository at this point in the history
  2. tweak types

    billyvg committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    885e312 View commit details
    Browse the repository at this point in the history
  3. refactor

    billyvg committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    11415f5 View commit details
    Browse the repository at this point in the history
  4. extra space

    billyvg committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    3997943 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bb541df View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. combine logger.exception

    billyvg committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    ebea1a5 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. CR updates

    billyvg committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    ff32c14 View commit details
    Browse the repository at this point in the history
  2. fix comment

    billyvg committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    2252f2a View commit details
    Browse the repository at this point in the history