- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
Capacitor is an open source native runtime for building Web Native applications that run natively on iOS, Android, and progressive web applications with JavaScript, HTML, and CSS.
You can install and configure the Datadog Browser SDK to start monitoring applications you’ve built with Capacitor. The configuration provides you with visibility into the JavaScript portion of your application (excludes native application visibility).
Note: Applications wrapped by Capacitor to run an iOS target uses capacitor://
as the default scheme to serve local assets.
To install the Datadog Browser SDK to support Capacitor apps:
Set up and install RUM Browser Monitoring, following the steps for CDN sync, CDN async, or npm.
Set the allowFallbackToLocalStorage
parameter to true
in the RUM initialization configuration.
Note: This setting allows Datadog to collect RUM data without relying on browser cookies.
datadogRum.init({
applicationId: '<DATADOG_APPLICATION_ID>',
clientToken: '<DATADOG_CLIENT_TOKEN>',
site: '<DATADOG_SITE>',
...
allowFallbackToLocalStorage: true
});
Once you’ve configured the SDK correctly, your data populates the RUM Explorer.
This is expected behavior. The native part of a Capacitor application, whether it is through the usage of plugins or custom code, is not monitored. Usually plugins forward a response status that can be tracked from the JavaScript side of the application. However, if a plugin crashes, or the entire application crashes due to native code issues, it is not reported to Datadog.
The same-origin policy prevents tracking (using the same session) an application that loads pages from both local (capacitor://
) and remote (http(s)://
).
This means that any application using Capacitor to embed a landing page, then later redirects the user to a website hosted on the Internet, can see two sessions created for that user:
추가 유용한 문서, 링크 및 기사: