@dynatrace/react-native-plugin 2.307.1 → 2.309.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 +7 -3
- package/android/build.gradle +3 -1
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceAppStartModule.kt +128 -0
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceInternalModule.kt +22 -0
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceRNBridgeImpl.kt +411 -0
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceReactPackage.kt +54 -0
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceUtils.kt +86 -0
- package/android/src/main/java/com/dynatrace/android/agent/model/AppStartMeasurement.kt +15 -0
- package/android/src/main/java/com/dynatrace/android/agent/model/AppStartMeasurementType.kt +18 -0
- package/android/src/new/java/com/dynatrace/android/agent/DynatraceRNBridge.kt +228 -0
- package/android/src/old/java/com/dynatrace/android/agent/DynatraceRNBridge.kt +258 -0
- package/files/plugin.gradle +1 -1
- package/index.js +10 -10
- package/instrumentation/DynatraceInstrumentation.js +1 -0
- package/{lib → instrumentation/jsx}/CreateElement.js +6 -5
- package/{lib/instrumentor/base → instrumentation/jsx}/ElementHelper.js +14 -12
- package/{lib/jsx-dev-runtime.js → instrumentation/jsx/JsxDevRuntime.js} +10 -19
- package/instrumentation/jsx/JsxRuntime.js +63 -0
- package/instrumentation/jsx/JsxRuntimeUtil.js +31 -0
- package/instrumentation/jsx/components/ClassComponent.js +49 -0
- package/instrumentation/jsx/components/ComponentUtil.js +33 -0
- package/instrumentation/jsx/components/FunctionalComponent.js +20 -0
- package/{lib/instrumentor/base → instrumentation/jsx/components}/Picker.js +1 -1
- package/{lib/instrumentor/base → instrumentation/jsx/components}/RefreshControl.js +1 -1
- package/{lib/instrumentor/base → instrumentation/jsx/components}/Switch.js +1 -1
- package/{lib/instrumentor/base → instrumentation/jsx/components}/Touchable.js +5 -5
- package/instrumentation/libs/community/Picker.InstrInfo.js +20 -0
- package/{lib → instrumentation/libs}/community/Picker.js +1 -1
- package/instrumentation/libs/community/gesture-handler/Touchables.InstrInfo.js +23 -0
- package/{lib → instrumentation/libs}/community/gesture-handler/Touchables.js +1 -1
- package/{lib → instrumentation/libs}/react-native/RefreshControl.InstrInfo.js +2 -2
- package/{lib → instrumentation/libs}/react-native/RefreshControl.js +5 -5
- package/{lib → instrumentation/libs}/react-native/Switch.InstrInfo.js +2 -2
- package/{lib → instrumentation/libs}/react-native/Switch.js +5 -5
- package/instrumentation/libs/react-native/Touchables.InstrInfo.js +25 -0
- package/{lib → instrumentation/libs}/react-native/Touchables.js +1 -1
- package/{lib → instrumentation/libs}/react-navigation/ReactNavigation.js +6 -5
- package/{lib/instrumentor → instrumentation}/model/Types.js +1 -14
- package/instrumentation/model/TypesUtil.js +17 -0
- package/ios/DynatraceRNBridge.h +10 -1
- package/ios/DynatraceRNBridge.mm +152 -0
- package/jsx-dev-runtime.js +1 -1
- package/jsx-runtime.js +1 -1
- package/lib/core/Application.js +20 -0
- package/lib/{instrumentor/base → core}/Dynatrace.js +57 -48
- package/lib/{instrumentor/base → core}/DynatraceAction.js +23 -22
- package/lib/core/DynatraceInternal.js +46 -0
- package/lib/{instrumentor/base → core}/DynatraceRootAction.js +5 -4
- package/lib/{instrumentor/base → core}/DynatraceWebRequestTiming.js +6 -5
- package/lib/{instrumentor/base → core}/ErrorHandler.js +6 -5
- package/lib/{instrumentor/base → core}/configuration/Configuration.js +1 -1
- package/lib/{instrumentor/base → core}/configuration/ConfigurationDefaults.js +1 -2
- package/lib/{instrumentor/base → core}/configuration/ConfigurationHandler.js +2 -2
- package/lib/{instrumentor/base → core}/configuration/ManualStartupConfiguration.js +1 -1
- package/lib/core/logging/ConsoleLogger.js +27 -0
- package/lib/core/logging/LogLevel.js +12 -0
- package/lib/dynatrace-transformer.js +1 -1
- package/lib/next/Dynatrace.js +86 -0
- package/lib/next/DynatraceSecondGenForwarder.js +17 -0
- package/lib/next/IDynatrace.js +2 -0
- package/lib/next/IDynatraceForwarder.js +2 -0
- package/lib/next/appstart/AppStartObserver.js +32 -0
- package/lib/next/appstart/AppStartType.js +38 -0
- package/lib/next/events/EventCreator.js +77 -0
- package/lib/next/events/EventPipeline.js +57 -0
- package/lib/next/events/EventTimestamp.js +24 -0
- package/lib/next/events/ViewInfoCreator.js +27 -0
- package/lib/next/events/modifier/BaseDataEventModifier.js +31 -0
- package/lib/next/events/modifier/EventLimitation.js +69 -0
- package/lib/next/events/modifier/EventModifierUtil.js +88 -0
- package/lib/next/events/modifier/IEventModifier.js +2 -0
- package/lib/next/events/modifier/ModifyEventValidation.js +187 -0
- package/lib/next/events/modifier/NonFiniteNumbersModifier.js +50 -0
- package/lib/next/events/modifier/SendEventValidation.js +84 -0
- package/lib/next/events/spec/EventFieldKeysEnum.js +2 -0
- package/lib/next/events/spec/EventSpecContstants.js +46 -0
- package/lib/next/events/spec/IAppStartEvent.js +2 -0
- package/lib/next/events/spec/ICrashEvent.js +2 -0
- package/lib/next/events/spec/IErrorCodeEvent.js +2 -0
- package/lib/next/events/spec/IErrorExceptionEvent.js +2 -0
- package/lib/next/events/spec/IReactNativeEvent.js +2 -0
- package/lib/next/events/spec/IRumEvent.js +2 -0
- package/lib/next/provider/ITimestampProvider.js +2 -0
- package/lib/next/provider/TimestampProvider.js +10 -0
- package/package.json +41 -33
- package/react-native-dynatrace.podspec +1 -1
- package/src/lib/{instrumentor/base → core}/interface/NativeDynatraceBridge.ts +8 -0
- package/typings/react-native-dynatrace.d.ts +0 -1
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceRNBridgeImpl.java +0 -366
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceReactPackage.java +0 -67
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceUtils.java +0 -108
- package/android/src/main/java/com/dynatrace/android/agent/PrivateDTBridge.java +0 -28
- package/android/src/new/java/com/dynatrace/android/agent/DynatraceRNBridge.java +0 -192
- package/android/src/old/java/com/dynatrace/android/agent/DynatraceRNBridge.java +0 -194
- package/lib/community/Picker.InstrInfo.js +0 -20
- package/lib/community/gesture-handler/Touchables.InstrInfo.js +0 -56
- package/lib/instrumentor/DynatraceInstrumentation.js +0 -1
- package/lib/instrumentor/base/Application.js +0 -16
- package/lib/instrumentor/base/DynatraceInternal.js +0 -34
- package/lib/instrumentor/base/Logger.js +0 -16
- package/lib/instrumentor/base/model/LogLevel.js +0 -17
- package/lib/jsx-runtime.js +0 -69
- package/lib/react/Component.js +0 -90
- package/lib/react-native/Touchables.InstrInfo.js +0 -60
- /package/{lib/instrumentor/base/interface → instrumentation/jsx}/IDynatraceProperties.js +0 -0
- /package/{lib → instrumentation/libs}/community/gesture-handler/index.js +0 -0
- /package/{lib → instrumentation/libs}/gesture-handler.js +0 -0
- /package/{lib → instrumentation/libs}/react-native/index.js +0 -0
- /package/{lib → instrumentation/libs}/react-native.js +0 -0
- /package/{lib/instrumentor → instrumentation}/model/Reference.js +0 -0
- /package/{lib/instrumentor → instrumentation}/parser/Babel.js +0 -0
- /package/lib/{instrumentor/base → core}/DynatraceBridge.js +0 -0
- /package/lib/{instrumentor/base → core}/NullAction.js +0 -0
- /package/lib/{instrumentor/base → core}/NullRootAction.js +0 -0
- /package/lib/{instrumentor/base → core}/NullWebRequestTiming.js +0 -0
- /package/lib/{instrumentor/base → core}/UserPrivacyOptions.js +0 -0
- /package/lib/{instrumentor/base → core}/configuration/ConfigurationBuilder.js +0 -0
- /package/lib/{instrumentor/base → core}/configuration/ConfigurationPreset.js +0 -0
- /package/lib/{instrumentor/base → core}/configuration/IConfiguration.js +0 -0
- /package/lib/{instrumentor/base → core}/interface/IDynatrace.js +0 -0
- /package/lib/{instrumentor/base → core}/interface/IDynatraceAction.js +0 -0
- /package/lib/{instrumentor/base → core}/interface/IDynatraceInternal.js +0 -0
- /package/lib/{instrumentor/base → core}/interface/IDynatraceRootAction.js +0 -0
- /package/lib/{instrumentor/base → core}/interface/IWebRequestTiming.js +0 -0
- /package/lib/{instrumentor/base → core}/interface/NativeDynatraceBridge.js +0 -0
- /package/lib/{instrumentor/base/interface → core/logging}/ILogger.js +0 -0
- /package/lib/{instrumentor/base → core}/model/DataCollectionLevel.js +0 -0
- /package/lib/{instrumentor/base → core}/model/Json.js +0 -0
- /package/lib/{instrumentor/base → core}/model/Platform.js +0 -0
- /package/lib/{instrumentor/base → core}/util/StringUtils.js +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendSessionPropertyEventValidation = exports.SendEventValidation = void 0;
|
|
4
|
+
const ConsoleLogger_1 = require("../../../core/logging/ConsoleLogger");
|
|
5
|
+
const TimestampProvider_1 = require("../../provider/TimestampProvider");
|
|
6
|
+
const EventTimestamp_1 = require("../EventTimestamp");
|
|
7
|
+
const EventSpecContstants_1 = require("../spec/EventSpecContstants");
|
|
8
|
+
const EventLimitation_1 = require("./EventLimitation");
|
|
9
|
+
class SendEventValidationImpl {
|
|
10
|
+
constructor(timestampProvider, namespaceWhitelist, fieldWhitelist, loggerName) {
|
|
11
|
+
this.logger = new ConsoleLogger_1.ConsoleLogger(loggerName);
|
|
12
|
+
this.timestampProvider = timestampProvider;
|
|
13
|
+
this.fieldWhitelist = fieldWhitelist;
|
|
14
|
+
this.namespaceWhitelist = namespaceWhitelist;
|
|
15
|
+
}
|
|
16
|
+
modifyEvent(event) {
|
|
17
|
+
this.logger.debug(`modifyEvent(${JSON.stringify(event)})`);
|
|
18
|
+
if (event == null) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
else if (Object.keys(event).length === 0) {
|
|
22
|
+
return Object.assign({}, new EventTimestamp_1.EventTimestamp(this.timestampProvider).getEventTimeInfo());
|
|
23
|
+
}
|
|
24
|
+
const timeNow = this.timestampProvider.getCurrentTimestamp();
|
|
25
|
+
const eventCopy = Object.entries(event).slice();
|
|
26
|
+
const filteredEvent = eventCopy
|
|
27
|
+
.filter(this.isKeyNameAllowed, this)
|
|
28
|
+
.filter(this.isFieldTypeAllowed, this);
|
|
29
|
+
const limitedEntries = new EventLimitation_1.EventLimitation().limitEventEntries(filteredEvent);
|
|
30
|
+
const sizedEntries = new EventLimitation_1.EventLimitation().limitEventProperties(limitedEntries);
|
|
31
|
+
this.applyOverriddenKeys(sizedEntries);
|
|
32
|
+
sizedEntries.push([
|
|
33
|
+
"dt.rum.api.has_dropped_fields",
|
|
34
|
+
sizedEntries.length < eventCopy.length,
|
|
35
|
+
]);
|
|
36
|
+
const jsonObject = Object.fromEntries(sizedEntries);
|
|
37
|
+
if (jsonObject["duration"] !== undefined) {
|
|
38
|
+
jsonObject["start_time"] =
|
|
39
|
+
timeNow - jsonObject["duration"];
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
jsonObject["start_time"] = timeNow;
|
|
43
|
+
jsonObject["duration"] = 0;
|
|
44
|
+
}
|
|
45
|
+
return jsonObject;
|
|
46
|
+
}
|
|
47
|
+
applyOverriddenKeys(eventEntries) {
|
|
48
|
+
const overriddenKeys = [];
|
|
49
|
+
for (const [key, value] of eventEntries) {
|
|
50
|
+
if (this.fieldWhitelist.includes(key)) {
|
|
51
|
+
overriddenKeys.push(key);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (overriddenKeys.length > 0) {
|
|
55
|
+
eventEntries.push([
|
|
56
|
+
"dt.rum.overridden_keys",
|
|
57
|
+
overriddenKeys,
|
|
58
|
+
]);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
isFieldTypeAllowed(entry) {
|
|
62
|
+
const [key, value] = entry;
|
|
63
|
+
if (key === "duration" ||
|
|
64
|
+
key === "start_time") {
|
|
65
|
+
return typeof value === 'number' && isFinite(value) && value >= 0;
|
|
66
|
+
}
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
isKeyNameAllowed(entry) {
|
|
70
|
+
const [key] = entry;
|
|
71
|
+
for (const namespace of this.namespaceWhitelist) {
|
|
72
|
+
if (key.startsWith(`${namespace}.`)) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (this.fieldWhitelist.includes(key)) {
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
this.logger.debug(`isKeyNameAllowed(): Filtering key ${key} as this field or namespace is reserved!`);
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.SendEventValidation = new SendEventValidationImpl(TimestampProvider_1.defaultTimestampProvider, EventSpecContstants_1.SEND_EVENT_WHITELIST_NAMESPACES, EventSpecContstants_1.SEND_EVENT_WHITELIST_FIELDS, 'SendEventValidation');
|
|
84
|
+
exports.SendSessionPropertyEventValidation = new SendEventValidationImpl(TimestampProvider_1.defaultTimestampProvider, EventSpecContstants_1.SEND_SESSION_PROPERTY_EVENT_WHITELIST_NAMESPACES, EventSpecContstants_1.SEND_SESSION_PROPERTY_EVENT_WHITELIST_FIELDS, 'SendSessionPropertyEventValidation');
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MODIFY_EVENT_WHITELIST_NAMESPACE = exports.MODIFY_EVENT_WHITELIST_FIELDS = exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_FIELDS = exports.SEND_EVENT_WHITELIST_FIELDS = exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_NAMESPACES = exports.SEND_EVENT_WHITELIST_NAMESPACES = exports.AllCharacteristicsKeys = exports.KEY_NAME_REGEX = exports.MAX_CUSTOM_EVENT_VALUE_LENGTH = exports.MAX_CUSTOM_EVENT_KEY_LENGTH = exports.MAX_CUSTOM_EVENT_FIELDS = void 0;
|
|
4
|
+
exports.MAX_CUSTOM_EVENT_FIELDS = 50;
|
|
5
|
+
exports.MAX_CUSTOM_EVENT_KEY_LENGTH = 100;
|
|
6
|
+
exports.MAX_CUSTOM_EVENT_VALUE_LENGTH = 5000;
|
|
7
|
+
exports.KEY_NAME_REGEX = RegExp('^[a-z0-9]+(?:\\.[a-z][a-z0-9]*|_[a-z0-9]+)*$');
|
|
8
|
+
exports.AllCharacteristicsKeys = [
|
|
9
|
+
"characteristics.has_anr",
|
|
10
|
+
"characteristics.has_crash",
|
|
11
|
+
"characteristics.has_csp_violation",
|
|
12
|
+
"characteristics.has_error",
|
|
13
|
+
"characteristics.has_exception",
|
|
14
|
+
"characteristics.has_failed_request",
|
|
15
|
+
"characteristics.has_request",
|
|
16
|
+
"characteristics.has_w3c_navigation_timings",
|
|
17
|
+
"characteristics.has_w3c_resource_timings",
|
|
18
|
+
"characteristics.has_navigation",
|
|
19
|
+
"characteristics.has_page_summary",
|
|
20
|
+
"characteristics.has_user_interaction",
|
|
21
|
+
"characteristics.has_view_summary",
|
|
22
|
+
"characteristics.is_api_reported",
|
|
23
|
+
"characteristics.is_app_start",
|
|
24
|
+
"characteristics.is_internal",
|
|
25
|
+
"characteristics.is_self_monitoring",
|
|
26
|
+
"characteristics.is_visibility_change",
|
|
27
|
+
"characteristics.has_event_properties",
|
|
28
|
+
"characteristics.has_session_properties",
|
|
29
|
+
];
|
|
30
|
+
exports.SEND_EVENT_WHITELIST_NAMESPACES = [
|
|
31
|
+
"event_properties",
|
|
32
|
+
];
|
|
33
|
+
exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_NAMESPACES = [
|
|
34
|
+
"session_properties",
|
|
35
|
+
];
|
|
36
|
+
exports.SEND_EVENT_WHITELIST_FIELDS = [
|
|
37
|
+
"duration",
|
|
38
|
+
];
|
|
39
|
+
exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_FIELDS = exports.SEND_EVENT_WHITELIST_FIELDS;
|
|
40
|
+
exports.MODIFY_EVENT_WHITELIST_FIELDS = [
|
|
41
|
+
"exception.stack_trace",
|
|
42
|
+
];
|
|
43
|
+
exports.MODIFY_EVENT_WHITELIST_NAMESPACE = [
|
|
44
|
+
"session_properties",
|
|
45
|
+
"event_properties",
|
|
46
|
+
];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultTimestampProvider = exports.TimestampProvider = void 0;
|
|
4
|
+
class TimestampProvider {
|
|
5
|
+
getCurrentTimestamp() {
|
|
6
|
+
return new Date().getTime();
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.TimestampProvider = TimestampProvider;
|
|
10
|
+
exports.defaultTimestampProvider = new TimestampProvider();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/react-native-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.309.1",
|
|
4
4
|
"description": "This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "typings/react-native-dynatrace.d.ts",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"author": "Dynatrace",
|
|
75
75
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@babel/runtime": "^7.26.
|
|
78
|
-
"jscodeshift": "^17.
|
|
77
|
+
"@babel/runtime": "^7.26.10",
|
|
78
|
+
"jscodeshift": "^17.2.0",
|
|
79
79
|
"plist": "^3.1.0",
|
|
80
80
|
"proxy-polyfill": "^0.3.2",
|
|
81
81
|
"semver": "^7.7.1"
|
|
@@ -129,46 +129,54 @@
|
|
|
129
129
|
"uglify-js": "^3.17.4"
|
|
130
130
|
},
|
|
131
131
|
"files": [
|
|
132
|
-
"command/command.js",
|
|
133
|
-
"command/util/*",
|
|
134
|
-
"command/interface/*",
|
|
135
|
-
"android/build.gradle",
|
|
136
|
-
"android/src/**/*",
|
|
137
|
-
"ios/**/*",
|
|
138
|
-
"files/*",
|
|
139
|
-
"lib/instrumentor/base/*.js",
|
|
140
|
-
"lib/instrumentor/base/model/*.js",
|
|
141
|
-
"lib/instrumentor/base/configuration/*.js",
|
|
142
|
-
"lib/instrumentor/base/configuration/interface/*.js",
|
|
143
|
-
"lib/instrumentor/base/interface/*.js",
|
|
144
|
-
"lib/instrumentor/base/util/*.js",
|
|
145
|
-
"lib/instrumentor/model/*.js",
|
|
146
|
-
"lib/instrumentor/parser/*.js",
|
|
147
|
-
"lib/instrumentor/DynatraceInstrumentation.js",
|
|
148
|
-
"lib/*.js",
|
|
149
|
-
"lib/community/*.js",
|
|
150
|
-
"lib/community/gesture-handler/*.js",
|
|
151
|
-
"lib/react-navigation/*.js",
|
|
152
|
-
"lib/react-native/*.js",
|
|
153
|
-
"lib/react-native/Touchables.jsx",
|
|
154
|
-
"lib/react/*.js",
|
|
155
|
-
"lib/metro/*.js",
|
|
156
|
-
"lib/util/*.js",
|
|
157
132
|
"react-native.config.js",
|
|
158
133
|
"react-native-dynatrace.js",
|
|
159
134
|
"react-native-dynatrace.podspec",
|
|
135
|
+
"jsx-runtime.js",
|
|
136
|
+
"jsx-dev-runtime.js",
|
|
160
137
|
"README.md",
|
|
161
138
|
"LICENSE.md",
|
|
139
|
+
"package.json",
|
|
140
|
+
"android/build.gradle",
|
|
141
|
+
"android/src/**/*",
|
|
142
|
+
"ios/**/*",
|
|
143
|
+
"files/*",
|
|
144
|
+
"typings/*",
|
|
145
|
+
"command/command.js",
|
|
146
|
+
"command/util/*",
|
|
147
|
+
"command/interface/*",
|
|
162
148
|
"scripts/*",
|
|
163
149
|
"scripts/api/*",
|
|
164
150
|
"scripts/core/*",
|
|
165
151
|
"scripts/api/model/*",
|
|
166
152
|
"scripts/util/*",
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
153
|
+
"instrumentation/jsx/*.js",
|
|
154
|
+
"instrumentation/jsx/components/*.js",
|
|
155
|
+
"instrumentation/libs/*.js",
|
|
156
|
+
"instrumentation/libs/community/*.js",
|
|
157
|
+
"instrumentation/libs/community/gesture-handler/*.js",
|
|
158
|
+
"instrumentation/libs/react-navigation/*.js",
|
|
159
|
+
"instrumentation/libs/react-native/*.js",
|
|
160
|
+
"instrumentation/libs/react-native/Touchables.jsx",
|
|
161
|
+
"instrumentation/model/*.js",
|
|
162
|
+
"instrumentation/parser/*.js",
|
|
163
|
+
"instrumentation/DynatraceInstrumentation.js",
|
|
164
|
+
"lib/*.js",
|
|
165
|
+
"lib/core/*.js",
|
|
166
|
+
"lib/core/configuration/*.js",
|
|
167
|
+
"lib/core/interface/*.js",
|
|
168
|
+
"lib/core/logging/*.js",
|
|
169
|
+
"lib/core/model/*.js",
|
|
170
|
+
"lib/core/util/*.js",
|
|
171
|
+
"lib/core/*.js",
|
|
172
|
+
"lib/metro/*.js",
|
|
173
|
+
"lib/next/*.js",
|
|
174
|
+
"lib/next/appstart/*.js",
|
|
175
|
+
"lib/next/events/*.js",
|
|
176
|
+
"lib/next/events/modifier/*.js",
|
|
177
|
+
"lib/next/events/spec/*.js",
|
|
178
|
+
"lib/next/provider/*.js",
|
|
179
|
+
"src/lib/core/interface/NativeDynatraceBridge.ts"
|
|
172
180
|
],
|
|
173
181
|
"codegenConfig": {
|
|
174
182
|
"name": "DynatraceBridgeSpec",
|
|
@@ -111,7 +111,7 @@ Pod::Spec.new do |s|
|
|
|
111
111
|
#
|
|
112
112
|
|
|
113
113
|
s.dependency "React"
|
|
114
|
-
s.dependency 'Dynatrace', '~> 8.
|
|
114
|
+
s.dependency 'Dynatrace', '~> 8.309.1.1009'
|
|
115
115
|
|
|
116
116
|
# Allows for better compatibility for older and newer versions
|
|
117
117
|
if defined?(install_modules_dependencies)
|
|
@@ -6,6 +6,10 @@ import { TurboModuleRegistry } from 'react-native';
|
|
|
6
6
|
import { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
7
7
|
|
|
8
8
|
export interface Spec extends TurboModule {
|
|
9
|
+
// Event Listener for AppStart
|
|
10
|
+
addListener: (eventName: string) => void;
|
|
11
|
+
removeListeners: (count: number) => void;
|
|
12
|
+
|
|
9
13
|
getConstants: () => {
|
|
10
14
|
DATA_COLLECTION_OFF: string;
|
|
11
15
|
DATA_COLLECTION_PERFORMANCE: string;
|
|
@@ -154,6 +158,10 @@ export interface Spec extends TurboModule {
|
|
|
154
158
|
requestSize: number,
|
|
155
159
|
responseSize: number,
|
|
156
160
|
): void;
|
|
161
|
+
|
|
162
|
+
startView(name: string): void;
|
|
163
|
+
|
|
164
|
+
stopView(): void;
|
|
157
165
|
}
|
|
158
166
|
|
|
159
167
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
|
@@ -581,7 +581,6 @@ export declare const Dynatrace: {
|
|
|
581
581
|
*/
|
|
582
582
|
sendBizEvent(type: string, attributes?: JSONObject, platform?: Platform): void;
|
|
583
583
|
}
|
|
584
|
-
|
|
585
584
|
export declare interface IDynatraceAction {
|
|
586
585
|
/**
|
|
587
586
|
* Reports an error as key-value pair with the time at which it occurred.
|