getsentry / getsentry/sentry-react-native

Remove deprecated `_experiments.androidProfilingOptions` in v9

Open
#6,681 1 comment 0 reactions 0 assignees View on GitHub
Profiles React-Native Task
Dominant language
TypeScript
Stars
1.8k
Forks
366
Avg merge
1d 9h
Merged PRs (30d)
89

Description

## Summary

The `_experiments.androidProfilingOptions` option was deprecated in favor of `_experiments.profilingOptions` in #5611 (2026-02). Its JSDoc already states it "will be removed in the next major version." Fallback code currently resolves `profilingOptions ?? androidProfilingOptions` for backwards compatibility.

Per the [SDK Deprecation Lifecycle Standard](https://develop.sentry.dev/sdk/), this should be removed in the next major (v9).

## Action for v9

- `packages/core/src/js/options.ts` (~line 499): remove the `androidProfilingOptions` type definition from the `_experiments` block.
- `packages/core/src/js/client.ts` (~line 255): drop the `?? this._options._experiments?.androidProfilingOptions` fallback.
- `packages/core/src/js/wrapper.ts` (~lines 67, 309, 316-317): remove the `androidProfilingOptions` parameter and the `profilingOptions ?? androidProfilingOptions` compat resolution.
- Update/adjust any related tests.

## References

- Deprecated in #5611 (`iOS UI Profiling`)
- Replacement: `_experiments.profilingOptions`
- Sibling v9 removal task: #5882
- [SDK Deprecation Lifecycle Standard](https://develop.sentry.dev/sdk/)

Contributor guide

Open the contributing guide

Research direction

Start with the listed locations in packages/core/src/js/options.ts, client.ts, and wrapper.ts, then inspect related tests for androidProfilingOptions and profilingOptions. Confirm the deprecated type, fallback, parameter, and compatibility resolution are removed for v9 while the replacement profilingOptions path remains covered by passing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.