@dynatrace/react-native-plugin 2.273.1 → 2.275.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -1
- package/index.js +1 -0
- package/ios/DynatraceRNBridge.m +1 -1
- package/ios/lib/Dynatrace.xcframework/Info.plist +12 -12
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.abi.json +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +15 -15
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +11 -11
- package/lib/instrumentor/base/DynatraceInternal.js +2 -3
- package/lib/instrumentor/base/ErrorHandler.js +1 -1
- package/package.json +1 -168
- package/typings/react-native-dynatrace.d.ts +41 -0
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ If you want to start using this plugin and are not a Dynatrace customer yet, hea
|
|
|
30
30
|
This agent versions are configured in this plugin:
|
|
31
31
|
|
|
32
32
|
* Android Agent: 8.273.1.1003
|
|
33
|
-
* iOS Agent: 8.
|
|
33
|
+
* iOS Agent: 8.275.1.1006
|
|
34
34
|
|
|
35
35
|
## Quick Setup
|
|
36
36
|
|
|
@@ -47,6 +47,7 @@ This agent versions are configured in this plugin:
|
|
|
47
47
|
* [Monitor a Component](#monitor-a-component)
|
|
48
48
|
* [Create Custom Action](#create-custom-actions)
|
|
49
49
|
* [Cancel Actions](#cancel-actions)
|
|
50
|
+
* [Manual Web Request Tagging](#manual-web-request-tagging)
|
|
50
51
|
* [Report Values](#report-values)
|
|
51
52
|
* [Report Stacktrace](#report-an-error-stacktrace)
|
|
52
53
|
* [Identify User](#identify-a-user)
|
|
@@ -312,6 +313,31 @@ myAction.cancel();
|
|
|
312
313
|
myAction.leaveAction();
|
|
313
314
|
```
|
|
314
315
|
|
|
316
|
+
### Manual Web Request Tagging
|
|
317
|
+
|
|
318
|
+
You can manually tag and time your web requests. With the API shown below, you are able to manually capture the web requests of an http framework/library.
|
|
319
|
+
|
|
320
|
+
**Note:**
|
|
321
|
+
Using this API will force the request to be added to the action that is manually created.
|
|
322
|
+
|
|
323
|
+
```js
|
|
324
|
+
let url = 'https://www.dynatrace.com';
|
|
325
|
+
// You can also use enterAutoAction if desired
|
|
326
|
+
let action = Dynatrace.enterManualAction("Manual Web Request");
|
|
327
|
+
let tag = await action.getRequestTag(url);
|
|
328
|
+
let timing = new DynatraceWebRequestTiming(url, tag);
|
|
329
|
+
|
|
330
|
+
try {
|
|
331
|
+
timing.startWebRequestTiming();
|
|
332
|
+
let axiosResponse = await axios.get(url);
|
|
333
|
+
timing.stopWebRequestTiming(axiosResponse.status, axiosResponse.data);
|
|
334
|
+
} catch (error) {
|
|
335
|
+
timing.stopWebRequestTiming(-1, error);
|
|
336
|
+
} finally {
|
|
337
|
+
action.leaveAction();
|
|
338
|
+
}
|
|
339
|
+
```
|
|
340
|
+
|
|
315
341
|
### Report values
|
|
316
342
|
|
|
317
343
|
For any open action you can report certain values. The following API is available for action:
|
|
@@ -1169,6 +1195,10 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
|
|
|
1169
1195
|
<br/><br/>
|
|
1170
1196
|
## Changelog
|
|
1171
1197
|
|
|
1198
|
+
2.275.1
|
|
1199
|
+
* Update iOS Agent (8.275.1.1006)
|
|
1200
|
+
* Add documentation for manually tagging web requests
|
|
1201
|
+
|
|
1172
1202
|
2.273.1
|
|
1173
1203
|
* Update Android (8.273.1.1003) & iOS Agent (8.273.1.1006)
|
|
1174
1204
|
* Crash handler initialization happens earlier in the application
|
package/index.js
CHANGED
|
@@ -5,4 +5,5 @@ export { Platform } from './lib/instrumentor/base/model/Platform';
|
|
|
5
5
|
export { LogLevel } from './lib/instrumentor/base/model/LogLevel';
|
|
6
6
|
export { ApplicationHandler } from './lib/instrumentor/base/Application';
|
|
7
7
|
export { UserPrivacyOptions } from './lib/instrumentor/base/UserPrivacyOptions';
|
|
8
|
+
export { DynatraceWebRequestTiming } from './lib/instrumentor/base/DynatraceWebRequestTiming';
|
|
8
9
|
export { createElement } from './lib/CreateElement';
|
package/ios/DynatraceRNBridge.m
CHANGED
|
@@ -222,7 +222,7 @@ RCT_EXPORT_METHOD(reportDoubleValueInAction:(nonnull NSString *)actionKey withNa
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
RCT_EXPORT_METHOD(getRequestTag:(nonnull
|
|
225
|
+
RCT_EXPORT_METHOD(getRequestTag:(nonnull NSString *)actionKey withUrl:(NSString *)url findEventsWithResolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
226
226
|
{
|
|
227
227
|
DTXAction* action = [self getAction:actionKey];
|
|
228
228
|
resolve([action getTagForURL:[NSURL URLWithString:url]]);
|
|
@@ -6,57 +6,57 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>Dynatrace.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
-
<string>x86_64</string>
|
|
16
15
|
</array>
|
|
17
16
|
<key>SupportedPlatform</key>
|
|
18
17
|
<string>ios</string>
|
|
19
|
-
<key>SupportedPlatformVariant</key>
|
|
20
|
-
<string>simulator</string>
|
|
21
18
|
</dict>
|
|
22
19
|
<dict>
|
|
23
20
|
<key>LibraryIdentifier</key>
|
|
24
|
-
<string>
|
|
21
|
+
<string>tvos-arm64_x86_64-simulator</string>
|
|
25
22
|
<key>LibraryPath</key>
|
|
26
23
|
<string>Dynatrace.framework</string>
|
|
27
24
|
<key>SupportedArchitectures</key>
|
|
28
25
|
<array>
|
|
29
26
|
<string>arm64</string>
|
|
27
|
+
<string>x86_64</string>
|
|
30
28
|
</array>
|
|
31
29
|
<key>SupportedPlatform</key>
|
|
32
|
-
<string>
|
|
30
|
+
<string>tvos</string>
|
|
31
|
+
<key>SupportedPlatformVariant</key>
|
|
32
|
+
<string>simulator</string>
|
|
33
33
|
</dict>
|
|
34
34
|
<dict>
|
|
35
35
|
<key>LibraryIdentifier</key>
|
|
36
|
-
<string>tvos-
|
|
36
|
+
<string>tvos-arm64</string>
|
|
37
37
|
<key>LibraryPath</key>
|
|
38
38
|
<string>Dynatrace.framework</string>
|
|
39
39
|
<key>SupportedArchitectures</key>
|
|
40
40
|
<array>
|
|
41
41
|
<string>arm64</string>
|
|
42
|
-
<string>x86_64</string>
|
|
43
42
|
</array>
|
|
44
43
|
<key>SupportedPlatform</key>
|
|
45
44
|
<string>tvos</string>
|
|
46
|
-
<key>SupportedPlatformVariant</key>
|
|
47
|
-
<string>simulator</string>
|
|
48
45
|
</dict>
|
|
49
46
|
<dict>
|
|
50
47
|
<key>LibraryIdentifier</key>
|
|
51
|
-
<string>
|
|
48
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
52
49
|
<key>LibraryPath</key>
|
|
53
50
|
<string>Dynatrace.framework</string>
|
|
54
51
|
<key>SupportedArchitectures</key>
|
|
55
52
|
<array>
|
|
56
53
|
<string>arm64</string>
|
|
54
|
+
<string>x86_64</string>
|
|
57
55
|
</array>
|
|
58
56
|
<key>SupportedPlatform</key>
|
|
59
|
-
<string>
|
|
57
|
+
<string>ios</string>
|
|
58
|
+
<key>SupportedPlatformVariant</key>
|
|
59
|
+
<string>simulator</string>
|
|
60
60
|
</dict>
|
|
61
61
|
</array>
|
|
62
62
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
},
|
|
573
573
|
"ConstValues": [
|
|
574
574
|
{
|
|
575
|
-
"filePath": "\/opt\/jenkins\/workspace\/
|
|
575
|
+
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.275.x\/adk\/DynatraceUEM\/Dynatrace\/SwiftUIExtensions.swift",
|
|
576
576
|
"kind": "BooleanLiteral",
|
|
577
577
|
"offset": 1277,
|
|
578
578
|
"length": 4,
|
package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace
CHANGED
|
Binary file
|
package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
},
|
|
573
573
|
"ConstValues": [
|
|
574
574
|
{
|
|
575
|
-
"filePath": "\/opt\/jenkins\/workspace\/
|
|
575
|
+
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.275.x\/adk\/DynatraceUEM\/Dynatrace\/SwiftUIExtensions.swift",
|
|
576
576
|
"kind": "BooleanLiteral",
|
|
577
577
|
"offset": 1277,
|
|
578
578
|
"length": 4,
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
},
|
|
573
573
|
"ConstValues": [
|
|
574
574
|
{
|
|
575
|
-
"filePath": "\/opt\/jenkins\/workspace\/
|
|
575
|
+
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.275.x\/adk\/DynatraceUEM\/Dynatrace\/SwiftUIExtensions.swift",
|
|
576
576
|
"kind": "BooleanLiteral",
|
|
577
577
|
"offset": 1277,
|
|
578
578
|
"length": 4,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Headers/Dynatrace.h</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
Gpu+eHSXu/QYnsC9rYp1L5/t3Vs=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
16
16
|
<data>
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
</data>
|
|
23
23
|
<key>Info.plist</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
s3eNgAQNw3aIBwtMfcmOY3nHtdI=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
Ow3EYvWJmdzqpsTCGotIyPr0Aaw=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
TcfbrrwmJHDalx9ar6aQiBS5kUM=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
zrX6nq5vuOG5BxNBmhe5wTKY9Yw=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
40
40
|
<data>
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
RhUvdd9gs6KFykFtwEeJS6joMCQ=
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
56
56
|
<data>
|
|
57
|
-
|
|
57
|
+
zrX6nq5vuOG5BxNBmhe5wTKY9Yw=
|
|
58
58
|
</data>
|
|
59
59
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
60
60
|
<data>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</data>
|
|
71
71
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
72
72
|
<data>
|
|
73
|
-
|
|
73
|
+
SpkE9RmPSY4EKp9BvgKFKrsALT4=
|
|
74
74
|
</data>
|
|
75
75
|
<key>Modules/module.modulemap</key>
|
|
76
76
|
<data>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<dict>
|
|
91
91
|
<key>hash2</key>
|
|
92
92
|
<data>
|
|
93
|
-
|
|
93
|
+
ZbNlemXUuXaVAFIoBXDJVmMMGCzfbfxLrIGfXXdSQtg=
|
|
94
94
|
</data>
|
|
95
95
|
</dict>
|
|
96
96
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
@@ -111,21 +111,21 @@
|
|
|
111
111
|
<dict>
|
|
112
112
|
<key>hash2</key>
|
|
113
113
|
<data>
|
|
114
|
-
|
|
114
|
+
jyFoScvYXUWwOsb5ztRWwM2YBAcjQBEjNXFJY/DQETs=
|
|
115
115
|
</data>
|
|
116
116
|
</dict>
|
|
117
117
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
|
118
118
|
<dict>
|
|
119
119
|
<key>hash2</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
121
|
+
06r1hOkxxB/cM3d1m0KxVFB5dm33OFY2xwkHTwrb14Q=
|
|
122
122
|
</data>
|
|
123
123
|
</dict>
|
|
124
124
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
125
125
|
<dict>
|
|
126
126
|
<key>hash2</key>
|
|
127
127
|
<data>
|
|
128
|
-
|
|
128
|
+
a/85k14PaT/2aAB1F3gVsgDPRXtisLpI0uszc10x+2A=
|
|
129
129
|
</data>
|
|
130
130
|
</dict>
|
|
131
131
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -153,14 +153,14 @@
|
|
|
153
153
|
<dict>
|
|
154
154
|
<key>hash2</key>
|
|
155
155
|
<data>
|
|
156
|
-
|
|
156
|
+
1gcXAj52TY7aWTp40D5Dgw0tFXJP4Nfewc8jbOpJ0ug=
|
|
157
157
|
</data>
|
|
158
158
|
</dict>
|
|
159
159
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
160
160
|
<dict>
|
|
161
161
|
<key>hash2</key>
|
|
162
162
|
<data>
|
|
163
|
-
|
|
163
|
+
a/85k14PaT/2aAB1F3gVsgDPRXtisLpI0uszc10x+2A=
|
|
164
164
|
</data>
|
|
165
165
|
</dict>
|
|
166
166
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
<dict>
|
|
189
189
|
<key>hash2</key>
|
|
190
190
|
<data>
|
|
191
|
-
|
|
191
|
+
25DR3dnnsVoIlswF94a/9F83662dn858nRP49sQoxPE=
|
|
192
192
|
</data>
|
|
193
193
|
</dict>
|
|
194
194
|
<key>Modules/module.modulemap</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace
CHANGED
|
Binary file
|
package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Headers/Dynatrace.h</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
Gpu+eHSXu/QYnsC9rYp1L5/t3Vs=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
16
16
|
<data>
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
</data>
|
|
23
23
|
<key>Info.plist</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
4F7l+j/E7CUwGKRaEbcsVldPY3U=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
sMxUgPDz93iF1BnCTPOzxZXNsnk=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
KmzxQACkpRbGMhRuPNBa0qbMJ4w=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json</key>
|
|
36
36
|
<data>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftmodule</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
fV5FSVXzfF6DEcE0lwpV4TAWZx4=
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json</key>
|
|
56
56
|
<data>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</data>
|
|
71
71
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule</key>
|
|
72
72
|
<data>
|
|
73
|
-
|
|
73
|
+
j3YMjcjgkuewuGB+qWF2DM2kM8w=
|
|
74
74
|
</data>
|
|
75
75
|
<key>Modules/module.modulemap</key>
|
|
76
76
|
<data>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<dict>
|
|
91
91
|
<key>hash2</key>
|
|
92
92
|
<data>
|
|
93
|
-
|
|
93
|
+
ZbNlemXUuXaVAFIoBXDJVmMMGCzfbfxLrIGfXXdSQtg=
|
|
94
94
|
</data>
|
|
95
95
|
</dict>
|
|
96
96
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
<dict>
|
|
112
112
|
<key>hash2</key>
|
|
113
113
|
<data>
|
|
114
|
-
|
|
114
|
+
9pUwpbySXxFkISe0W+ZvV/VdNuxy8Up6DhUlFh5gbzk=
|
|
115
115
|
</data>
|
|
116
116
|
</dict>
|
|
117
117
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo</key>
|
|
118
118
|
<dict>
|
|
119
119
|
<key>hash2</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
121
|
+
oh/IeowawMus4m8oh4RxpVVhBv+cf64E01UyZo4dczU=
|
|
122
122
|
</data>
|
|
123
123
|
</dict>
|
|
124
124
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json</key>
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
<dict>
|
|
154
154
|
<key>hash2</key>
|
|
155
155
|
<data>
|
|
156
|
-
|
|
156
|
+
QpM7Ek5qJ3VA9cUTuV4ZNIlNHHHLG13AOV5inZLm5K0=
|
|
157
157
|
</data>
|
|
158
158
|
</dict>
|
|
159
159
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json</key>
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
<dict>
|
|
189
189
|
<key>hash2</key>
|
|
190
190
|
<data>
|
|
191
|
-
|
|
191
|
+
NLBA2CP0OMQJDgkX2kUndGa1fmFPXsyQwwPF4JvWG1Q=
|
|
192
192
|
</data>
|
|
193
193
|
</dict>
|
|
194
194
|
<key>Modules/module.modulemap</key>
|
|
@@ -4,10 +4,9 @@ exports.DynatraceInternal = void 0;
|
|
|
4
4
|
const StringUtils_1 = require("./util/StringUtils");
|
|
5
5
|
const DynatraceBridge_1 = require("./DynatraceBridge");
|
|
6
6
|
const Logger_1 = require("./Logger");
|
|
7
|
-
const ErrorHandler_1 = require("./ErrorHandler");
|
|
8
7
|
let counter = 0;
|
|
9
8
|
exports.DynatraceInternal = {
|
|
10
|
-
reportErrorFromHandler: (isFatal, errorName, reason, stacktrace, platform) => {
|
|
9
|
+
reportErrorFromHandler: (isFatal, errorName, reason, stacktrace, isCustomErrorHandlerSet, platform) => {
|
|
11
10
|
if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(reason)) {
|
|
12
11
|
const reasonNewLineIndex = reason.indexOf('\n');
|
|
13
12
|
if (reasonNewLineIndex !== -1) {
|
|
@@ -16,7 +15,7 @@ exports.DynatraceInternal = {
|
|
|
16
15
|
}
|
|
17
16
|
Logger_1.Logger.logDebug(`Dynatrace reportErrorStacktrace(${isFatal}, ${errorName}, ${reason}, ${stacktrace})`);
|
|
18
17
|
if (isFatal) {
|
|
19
|
-
DynatraceBridge_1.DynatraceNative.reportCrash(errorName, reason, stacktrace, true, __DEV__ ||
|
|
18
|
+
DynatraceBridge_1.DynatraceNative.reportCrash(errorName, reason, stacktrace, true, __DEV__ || isCustomErrorHandlerSet, platform);
|
|
20
19
|
}
|
|
21
20
|
else {
|
|
22
21
|
DynatraceBridge_1.DynatraceNative.reportError(errorName, '-', reason, stacktrace, platform);
|
|
@@ -32,7 +32,7 @@ const _reportErrorToDynatrace = (exception, isFatal, oldHandler) => {
|
|
|
32
32
|
isFatal = false;
|
|
33
33
|
}
|
|
34
34
|
if (exception.stack != null) {
|
|
35
|
-
DynatraceInternal_1.DynatraceInternal.reportErrorFromHandler(isFatal, String(exception.name), exception.message, exception.stack);
|
|
35
|
+
DynatraceInternal_1.DynatraceInternal.reportErrorFromHandler(isFatal, String(exception.name), exception.message, exception.stack, _isCustomErrorHandlerSet);
|
|
36
36
|
Logger_1.Logger.logDebug(`ErrorHandler _reportErrorToDynatrace(${exception}, ${isFatal})`);
|
|
37
37
|
}
|
|
38
38
|
else {
|
package/package.json
CHANGED
|
@@ -1,168 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dynatrace/react-native-plugin",
|
|
3
|
-
"version": "2.273.1",
|
|
4
|
-
"description": "This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "typings/react-native-dynatrace.d.ts",
|
|
7
|
-
"bin": {
|
|
8
|
-
"instrumentDynatrace": "scripts/Instrument.js",
|
|
9
|
-
"configDynatrace": "scripts/CheckConfig.js"
|
|
10
|
-
},
|
|
11
|
-
"keywords": [
|
|
12
|
-
"react-native",
|
|
13
|
-
"dynatrace",
|
|
14
|
-
"mobile",
|
|
15
|
-
"android",
|
|
16
|
-
"ios",
|
|
17
|
-
"performance",
|
|
18
|
-
"monitoring"
|
|
19
|
-
],
|
|
20
|
-
"rnpm": {
|
|
21
|
-
"plugin": "./command/command.js"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"uninstall": "node ./scripts/Uninstall.js",
|
|
25
|
-
"test": "jest --runInBand",
|
|
26
|
-
"test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand",
|
|
27
|
-
"tsc": "tsc",
|
|
28
|
-
"tsc:prod": "tsc -p tsconfig.release.json",
|
|
29
|
-
"lint": "eslint --cache src/**/*.ts --ignore-pattern .gitignore",
|
|
30
|
-
"lint:spec": "eslint --cache tests/**/*.ts --cache-file tests/.eslintcache --ignore-pattern .gitignore --fix"
|
|
31
|
-
},
|
|
32
|
-
"jest": {
|
|
33
|
-
"preset": "react-native",
|
|
34
|
-
"moduleDirectories": [
|
|
35
|
-
"node_modules"
|
|
36
|
-
],
|
|
37
|
-
"unmockedModulePathPatterns": [
|
|
38
|
-
"node_modules"
|
|
39
|
-
],
|
|
40
|
-
"modulePathIgnorePatterns": [
|
|
41
|
-
"<rootDir>/src",
|
|
42
|
-
"<rootDir>/tests/commandTestTmp",
|
|
43
|
-
"node_modules/react-native/local-cli"
|
|
44
|
-
],
|
|
45
|
-
"transform": {
|
|
46
|
-
"^.+\\.(ts|tsx)$": "ts-jest"
|
|
47
|
-
},
|
|
48
|
-
"testPathIgnorePatterns": [
|
|
49
|
-
"<rootDir>/src",
|
|
50
|
-
"<rootDir>/tests/commandTestTmp"
|
|
51
|
-
],
|
|
52
|
-
"transformIgnorePatterns": [
|
|
53
|
-
"node_modules/(?!(@react-native|react-native)/)"
|
|
54
|
-
],
|
|
55
|
-
"setupFiles": [
|
|
56
|
-
"<rootDir>/tests/setup/setup.js"
|
|
57
|
-
],
|
|
58
|
-
"testResultsProcessor": "jest-junit",
|
|
59
|
-
"testRegex": [
|
|
60
|
-
"(/__tests__/.*|(\\.|/)(Test|spec))\\.[jt]sx?$"
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"jest-junit": {
|
|
64
|
-
"suiteName": "jest tests",
|
|
65
|
-
"outputDirectory": ".",
|
|
66
|
-
"outputName": "junit.xml",
|
|
67
|
-
"uniqueOutputName": "true",
|
|
68
|
-
"ancestorSeparator": " › ",
|
|
69
|
-
"usePathForSuiteName": "true"
|
|
70
|
-
},
|
|
71
|
-
"author": "Dynatrace",
|
|
72
|
-
"license": "SEE LICENSE IN LICENSE.md",
|
|
73
|
-
"dependencies": {
|
|
74
|
-
"@babel/runtime": "^7.22.10",
|
|
75
|
-
"jscodeshift": "^0.15.0",
|
|
76
|
-
"plist": "^3.1.0",
|
|
77
|
-
"proxy-polyfill": "^0.3.2",
|
|
78
|
-
"semver": "^7.5.4"
|
|
79
|
-
},
|
|
80
|
-
"homepage": "https://www.dynatrace.com/",
|
|
81
|
-
"peerDependencies": {
|
|
82
|
-
"@babel/parser": ">=7.4.4",
|
|
83
|
-
"@react-native-picker/picker": ">=1.0.0",
|
|
84
|
-
"react": ">=16.8.0",
|
|
85
|
-
"react-native": ">=0.59.0"
|
|
86
|
-
},
|
|
87
|
-
"devDependencies": {
|
|
88
|
-
"@babel/cli": "^7.22.9",
|
|
89
|
-
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
90
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
|
91
|
-
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
|
|
92
|
-
"@babel/plugin-transform-flow-strip-types": "^7.8.3",
|
|
93
|
-
"@babel/plugin-transform-runtime": "^7.12.1",
|
|
94
|
-
"@babel/preset-env": "^7.4.4",
|
|
95
|
-
"@babel/preset-react": "^7.8.3",
|
|
96
|
-
"@testing-library/react-native": "^7.0.2",
|
|
97
|
-
"@types/jest": "^26.0.19",
|
|
98
|
-
"@types/jscodeshift": "^0.11.6",
|
|
99
|
-
"@types/libxmljs": "^0.18.3",
|
|
100
|
-
"@types/node": "^12.7.9",
|
|
101
|
-
"@types/plist": "^3.0.2",
|
|
102
|
-
"@types/react-native": "^0.63.32",
|
|
103
|
-
"@types/semver": "^7.5.0",
|
|
104
|
-
"@types/shelljs": "^0.8.8",
|
|
105
|
-
"@types/uglify-js": "^3.17.1",
|
|
106
|
-
"@typescript-eslint/eslint-plugin": "^5.16.0",
|
|
107
|
-
"@typescript-eslint/parser": "^5.16.0",
|
|
108
|
-
"compressing": "^1.5.1",
|
|
109
|
-
"eslint": "^8.45.0",
|
|
110
|
-
"eslint-config-prettier": "^8.5.0",
|
|
111
|
-
"eslint-plugin-import": "^2.26.0",
|
|
112
|
-
"eslint-plugin-jsdoc": "^39.1.0",
|
|
113
|
-
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
114
|
-
"eslint-plugin-unicorn": "^42.0.0",
|
|
115
|
-
"jest": "24.9.0",
|
|
116
|
-
"jest-each": "^28.1.3",
|
|
117
|
-
"jest-junit": "^14.0.0",
|
|
118
|
-
"jest-mock": "^28.1.3",
|
|
119
|
-
"npm-check-updates": "^16.10.12",
|
|
120
|
-
"prettier": "^2.6.1",
|
|
121
|
-
"shelljs": "^0.8.5",
|
|
122
|
-
"ts-jest": "24.3.0",
|
|
123
|
-
"ts-mockito": "^2.6.1",
|
|
124
|
-
"typescript": "^4.7.4",
|
|
125
|
-
"uglify-js": "^3.17.4",
|
|
126
|
-
"react-native": "0.71.3",
|
|
127
|
-
"react": "18.2.0",
|
|
128
|
-
"react-test-renderer": "18.2.0"
|
|
129
|
-
},
|
|
130
|
-
"files": [
|
|
131
|
-
"command/command.js",
|
|
132
|
-
"command/util/*",
|
|
133
|
-
"command/interface/*",
|
|
134
|
-
"android/build.gradle",
|
|
135
|
-
"android/src/main/**/*",
|
|
136
|
-
"ios/**/*",
|
|
137
|
-
"files/*",
|
|
138
|
-
"lib/instrumentor/base/*.js",
|
|
139
|
-
"lib/instrumentor/base/model/*.js",
|
|
140
|
-
"lib/instrumentor/base/configuration/*.js",
|
|
141
|
-
"lib/instrumentor/base/configuration/interface/*.js",
|
|
142
|
-
"lib/instrumentor/base/interface/*.js",
|
|
143
|
-
"lib/instrumentor/base/util/*.js",
|
|
144
|
-
"lib/instrumentor/model/*.js",
|
|
145
|
-
"lib/instrumentor/parser/*.js",
|
|
146
|
-
"lib/instrumentor/DynatraceInstrumentation.js",
|
|
147
|
-
"lib/*.js",
|
|
148
|
-
"lib/community/*.js",
|
|
149
|
-
"lib/community/gesture-handler/*.js",
|
|
150
|
-
"lib/react-native/*.js",
|
|
151
|
-
"lib/react/*.js",
|
|
152
|
-
"lib/metro/*.js",
|
|
153
|
-
"lib/util/*.js",
|
|
154
|
-
"react-native.config.js",
|
|
155
|
-
"react-native-dynatrace.js",
|
|
156
|
-
"react-native-dynatrace.podspec",
|
|
157
|
-
"README.md",
|
|
158
|
-
"LICENSE.md",
|
|
159
|
-
"scripts/*",
|
|
160
|
-
"scripts/api/*",
|
|
161
|
-
"scripts/core/*",
|
|
162
|
-
"scripts/api/model/*",
|
|
163
|
-
"scripts/util/*",
|
|
164
|
-
"typings/*",
|
|
165
|
-
"package.json",
|
|
166
|
-
"jsx-runtime.js"
|
|
167
|
-
]
|
|
168
|
-
}
|
|
1
|
+
{"name":"@dynatrace/react-native-plugin","version":"2.275.1","description":"This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.","main":"index.js","types":"typings/react-native-dynatrace.d.ts","bin":{"instrumentDynatrace":"scripts/Instrument.js","configDynatrace":"scripts/CheckConfig.js"},"keywords":["react-native","dynatrace","mobile","android","ios","performance","monitoring"],"rnpm":{"plugin":"./command/command.js"},"scripts":{"uninstall":"node ./scripts/Uninstall.js","test":"jest --runInBand","test:debug":"node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand","tsc":"tsc","tsc:prod":"tsc -p tsconfig.release.json","lint":"eslint --cache src/**/*.ts --ignore-pattern .gitignore","lint:spec":"eslint --cache tests/**/*.ts --cache-file tests/.eslintcache --ignore-pattern .gitignore --fix"},"jest":{"preset":"react-native","moduleDirectories":["node_modules"],"unmockedModulePathPatterns":["node_modules"],"modulePathIgnorePatterns":["<rootDir>/src","<rootDir>/tests/commandTestTmp","node_modules/react-native/local-cli"],"transform":{"^.+\\.(ts|tsx)$":"ts-jest"},"testPathIgnorePatterns":["<rootDir>/src","<rootDir>/tests/commandTestTmp"],"transformIgnorePatterns":["node_modules/(?!(@react-native|react-native)/)"],"setupFiles":["<rootDir>/tests/setup/setup.js"],"testResultsProcessor":"jest-junit","testRegex":["(/__tests__/.*|(\\.|/)(Test|spec))\\.[jt]sx?$"]},"jest-junit":{"suiteName":"jest tests","outputDirectory":".","outputName":"junit.xml","uniqueOutputName":"true","ancestorSeparator":" › ","usePathForSuiteName":"true"},"author":"Dynatrace","license":"SEE LICENSE IN LICENSE.md","dependencies":{"@babel/runtime":"^7.22.15","jscodeshift":"^0.15.0","plist":"^3.1.0","proxy-polyfill":"^0.3.2","semver":"^7.5.4"},"homepage":"https://www.dynatrace.com/","peerDependencies":{"@babel/parser":">=7.4.4","@react-native-picker/picker":">=1.0.0","react":">=16.8.0","react-native":">=0.59.0"},"devDependencies":{"@babel/cli":"^7.22.9","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-proposal-nullish-coalescing-operator":"^7.8.3","@babel/plugin-proposal-optional-chaining":"^7.8.3","@babel/plugin-transform-flow-strip-types":"^7.8.3","@babel/plugin-transform-runtime":"^7.12.1","@babel/preset-env":"^7.4.4","@babel/preset-react":"^7.8.3","@testing-library/react-native":"^7.0.2","@types/jest":"^26.0.19","@types/jscodeshift":"^0.11.6","@types/libxmljs":"^0.18.3","@types/node":"^18.17.12","@types/plist":"^3.0.2","@types/react-native":"^0.63.32","@types/semver":"^7.5.0","@types/shelljs":"^0.8.8","@types/uglify-js":"^3.17.1","@typescript-eslint/eslint-plugin":"^5.16.0","@typescript-eslint/parser":"^5.16.0","compressing":"^1.5.1","eslint":"^8.45.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jsdoc":"^39.1.0","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-unicorn":"^42.0.0","jest":"24.9.0","jest-each":"^28.1.3","jest-junit":"^14.0.0","jest-mock":"^28.1.3","npm-check-updates":"^16.10.12","prettier":"^2.6.1","shelljs":"^0.8.5","ts-jest":"24.3.0","ts-mockito":"^2.6.1","typescript":"^4.7.4","uglify-js":"^3.17.4","react-native":"0.71.3","react":"18.2.0","react-test-renderer":"18.2.0"},"files":["command/command.js","command/util/*","command/interface/*","android/build.gradle","android/src/main/**/*","ios/**/*","files/*","lib/instrumentor/base/*.js","lib/instrumentor/base/model/*.js","lib/instrumentor/base/configuration/*.js","lib/instrumentor/base/configuration/interface/*.js","lib/instrumentor/base/interface/*.js","lib/instrumentor/base/util/*.js","lib/instrumentor/model/*.js","lib/instrumentor/parser/*.js","lib/instrumentor/DynatraceInstrumentation.js","lib/*.js","lib/community/*.js","lib/community/gesture-handler/*.js","lib/react-native/*.js","lib/react/*.js","lib/metro/*.js","lib/util/*.js","react-native.config.js","react-native-dynatrace.js","react-native-dynatrace.podspec","README.md","LICENSE.md","scripts/*","scripts/api/*","scripts/core/*","scripts/api/model/*","scripts/util/*","typings/*","package.json","jsx-runtime.js"]}
|
|
@@ -463,6 +463,47 @@ export declare interface IDynatraceRootAction extends IDynatraceAction {
|
|
|
463
463
|
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
+
/**
|
|
467
|
+
* Class which gives you the option to measure a web request
|
|
468
|
+
*/
|
|
469
|
+
export declare class DynatraceWebRequestTiming {
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Constructor for creation of a Web Request Timing object
|
|
473
|
+
* @param {string} requestTag The request tag used for the timing object.
|
|
474
|
+
* @param {string} url The URL of the request that is tagged and timed.
|
|
475
|
+
*/
|
|
476
|
+
constructor(requestTag: string, url: string);
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Start the measurment of the web request. Call this before the request is started.
|
|
480
|
+
*/
|
|
481
|
+
startWebRequestTiming(): void;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Stops the measurment of the web request. This needs to be called after the request is executed.
|
|
485
|
+
* The responseCode and responseMessage will be transfered and shown in the web UI.
|
|
486
|
+
*
|
|
487
|
+
* @param {number} responseCode Status Code of the response e.g. 200
|
|
488
|
+
* @param {string} responseMessage Message of the response
|
|
489
|
+
*/
|
|
490
|
+
stopWebRequestTiming(responseCode: number, responseMessage: string): void;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Returns the content for the header that is needed in order to track a request
|
|
494
|
+
*
|
|
495
|
+
* @returns {string} header tag which should be applied onto the request
|
|
496
|
+
*/
|
|
497
|
+
getRequestTag(): string;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Returns the name for the header that is needed in order to track a request
|
|
501
|
+
*
|
|
502
|
+
* @returns {string} name of the header that should be used for tagging a request
|
|
503
|
+
*/
|
|
504
|
+
getRequestTagHeader(): string;
|
|
505
|
+
}
|
|
506
|
+
|
|
466
507
|
/**
|
|
467
508
|
* Represents the privacy settings that the user can select
|
|
468
509
|
*/
|