BrowserProfiling
为浏览器捕获性能分析数据。
This integration only works inside a browser environment.
Import name: Sentry.browserProfilingIntegration
性能分析 在传统跟踪的基础上提供了更深入的可见性,无需自定义仪器化,并在生产环境中提供精确的代码级可见性。
BrowserProfiling 集成为您的前端应用程序设置自动性能分析。它通过浏览器的 JS 自我性能分析 API 捕获性能分析数据并发送到 Sentry。要使用此集成,您还需要启用 BrowserTracing 集成。
了解更多关于 设置 BrowserProfiling 的信息。
Copied
Sentry.init({
integrations: [Sentry.browserProfilingIntegration()],
});