Skip to content

Allow to pass custom compression implementation to replay #7755

Closed as not planned
@mydea

Description

@mydea

Since #6739 is sadly not really possible due to browser constraints, another way to allow people to opt-out of the worker behavior while still having compression could be to allow passing in a custom compression implementation.

We could provide this implementation ourselves, but let it be tree shaken away if not used. This is how this could look like:

import * as Sentry from '@sentry/browser';

const replay = new Replay({
  compression: Sentry.getReplayEventCompressionCallback()
});

Where getReplayEventCompressionCallback would return a function that uses pako.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: replayIssues related to the Sentry Replay SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions