Skip to content

Commit c63e60b

Browse files
authored
fix(cordova): fix docs around Cordova Perf and Profiling support (#8562)
1 parent 1450e52 commit c63e60b

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
lines changed

src/platform-includes/getting-started-primer/javascript.cordova.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Features:
1818
- On-device symbolication for JavaScript (in `Debug` mode)
1919
- [Ionic support](/platforms/javascript/guides/cordova/ionic/)
2020
- Under the hood the SDK relies on our [JavaScript SDK](/platforms/javascript/), which makes all functions available for JavaScript also available in this SDK including:
21-
- [Performance Monitoring](/product/performance/) to create transactions
21+
- [Performance Monitoring](/platforms/javascript/guides/cordova/performance/instrumentation/custom-instrumentation) to create transactions
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<SignInNote />
2+
3+
```javascript
4+
onDeviceReady: function() {
5+
var Sentry = cordova.require("sentry-cordova.Sentry");
6+
Sentry.init({ dsn: '___PUBLIC_DSN___' });
7+
}
8+
```

src/platforms/common/performance/index.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ supported:
2222
- php
2323
- node
2424
notSupported:
25-
- javascript.cordova
2625
- native.breakpad
2726
- native.crashpad
2827
- native.minidumps
@@ -95,7 +94,7 @@ Learn more about performance monitoring <PlatformLink to="/configuration/options
9594

9695
## Verify
9796

98-
<PlatformSection supported={["react-native", "java.spring", "java.spring-boot", "android", "javascript", "apple", "dart", "rust"]}>
97+
<PlatformSection supported={["react-native", "java.spring", "java.spring-boot", "android", "javascript", "apple", "dart", "rust"]} notSupported={["javascript.cordova"]}>
9998

10099
Verify that performance monitoring is working correctly by using our <PlatformLink to="/performance/instrumentation/automatic-instrumentation/">automatic instrumentation</PlatformLink> or by starting and finishing a transaction using <PlatformLink to="/performance/instrumentation/custom-instrumentation/">custom instrumentation</PlatformLink>.
101100

src/platforms/common/performance/instrumentation/index.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: Instrumentation
33
sidebar_order: 20
44
description: "Learn how to instrument performance in your app."
55
notSupported:
6-
- javascript.cordova
76
- native.breakpad
87
- native.crashpad
98
- native.minidumps

src/platforms/javascript/common/performance/instrumentation/automatic-instrumentation.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Automatic Instrumentation
33
sidebar_order: 10
44
supported:
55
- javascript
6+
notSupported:
7+
- javascript.cordova
68
description: "Learn what transactions are captured after tracing is enabled."
79
redirect_from:
810
- /performance/included-instrumentation

src/platforms/javascript/common/profiling/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ supported:
55
- javascript
66
notSupported:
77
- javascript.bun
8+
- javascript.cordova
89
description: "Learn what transactions are captured after tracing is enabled."
910
---
1011

0 commit comments

Comments
 (0)