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

[RUM-6255] Auto-Instrumented Native WebView #732

Merged
merged 12 commits into from
Nov 19, 2024

Conversation

marco-saia-datadog
Copy link
Member

@marco-saia-datadog marco-saia-datadog commented Oct 15, 2024

What does this PR do?

Introduces a native implementation for @datadog/mobile-react-native-webview, to allow fully fledged auto-instrumentation of WebView(s).

How does it work?

The implementation leverages react-native-webview APIs.

We define a custom WebView, ViewManager and WebViewClient and we enable WebView tracking on new WebView instances by using the DD Native APIs.

Notes

TODO

  • Determine minimum and maximum version for react-native-webview peer dependency

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)
  • If this PR is auto-generated, please make sure also to manually update the code related to the change

@marco-saia-datadog marco-saia-datadog marked this pull request as ready for review October 16, 2024 11:16
@marco-saia-datadog marco-saia-datadog requested a review from a team as a code owner October 16, 2024 11:16
Copy link
Member

@0xnm 0xnm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I gave a quick look to the Kotlin part and left some comments.

@marco-saia-datadog marco-saia-datadog merged commit ea9eb8d into develop Nov 19, 2024
4 checks passed
@marco-saia-datadog marco-saia-datadog deleted the marcosaia/RUM-6255/native-webview branch November 19, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants