@@ -149,10 +149,6 @@ export class Replay implements Integration {
149
149
ignoreClass = 'sentry-ignore' ,
150
150
maskTextClass = 'sentry-mask' ,
151
151
blockSelector = '[data-sentry-block]' ,
152
- // eslint-disable-next-line deprecation/deprecation
153
- replaysSamplingRate,
154
- // eslint-disable-next-line deprecation/deprecation
155
- captureOnlyOnError,
156
152
...recordingOptions
157
153
} : ReplayConfiguration = { } ) {
158
154
this . recordingOptions = {
@@ -164,36 +160,18 @@ export class Replay implements Integration {
164
160
...recordingOptions ,
165
161
} ;
166
162
167
- const usingDeprecatedReplaysSamplingRate = replaysSamplingRate !== undefined ;
168
- const usingDeprecatedCaptureOnlyOnError = captureOnlyOnError !== undefined ;
169
-
170
163
this . options = {
171
164
flushMinDelay,
172
165
flushMaxDelay,
173
166
stickySession,
174
167
initialFlushDelay,
175
- sessionSampleRate : usingDeprecatedReplaysSamplingRate ? ( replaysSamplingRate as number ) : sessionSampleRate ,
176
- errorSampleRate : usingDeprecatedCaptureOnlyOnError ? 1.0 : errorSampleRate ,
168
+ sessionSampleRate,
169
+ errorSampleRate,
177
170
useCompression,
178
171
maskAllText,
179
172
blockAllMedia,
180
173
} ;
181
174
182
- // TODO(deprecated): Maintain backwards compatibility for alpha users
183
- if ( usingDeprecatedCaptureOnlyOnError ) {
184
- // eslint-disable-next-line no-console
185
- console . warn (
186
- '[@sentry/replay]: The `captureOnlyOnError` option is deprecated! Please configure `errorSampleRate` instead.' ,
187
- ) ;
188
- }
189
-
190
- if ( usingDeprecatedReplaysSamplingRate ) {
191
- // eslint-disable-next-line no-console
192
- console . warn (
193
- '[@sentry/replay]: The `replaysSamplingRate` option is deprecated! Please configure `sessionSampleRate` instead.' ,
194
- ) ;
195
- }
196
-
197
175
if ( this . options . maskAllText ) {
198
176
// `maskAllText` is a more user friendly option to configure
199
177
// `maskTextSelector`. This means that all nodes will have their text
0 commit comments