What's changed
Initialize the SDK early with the DatadogProvider
component
To simplify the code for initialization and reduce the likelihood of registering RUM events before the SDK is able to report them, we introduced the DatadogProvider
component.
const config = new DatadogProviderConfiguration();
//...
export default function App() {
return (
<DatadogProvider configuration={config}>
<Navigation />
</DatadogProvider>
);
}
The migration process only requires 3 steps, and is described in our docs.
Other improvements
- Add telemetry sample rate by @louiszawadzki in #303
- Fix manual source map upload with hermes for RN over 0.70 by @louiszawadzki in #330
- Use
stack
for component errors stack traces by @louiszawadzki in #339 - Add Support for RN 0.71 in sourcemaps gradle task by @louiszawadzki in #344
- Update RumResource.ts to resolve import correctly by @ashutoshd11 in #365
- Update crash reporting docs for RN 0.71 by @louiszawadzki in #367
- Enable detekt fallback config by @louiszawadzki in #369
- Fix postinstall script for Windows by @louiszawadzki in #370
Full Changelog: 1.1.5...1.2.0