@dynatrace/react-native-plugin 2.283.2 → 2.283.3

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.
Files changed (74) hide show
  1. package/README.md +1 -1
  2. package/lib/instrumentor/base/ErrorHandler.js +2 -1
  3. package/package.json +2 -2
  4. package/react-native-dynatrace.podspec +3 -9
  5. package/ios/lib/Dynatrace.xcframework/Info.plist +0 -75
  6. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeDirectory +0 -0
  7. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeRequirements +0 -0
  8. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  9. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeResources +0 -1058
  10. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeSignature +0 -0
  11. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
  12. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +0 -311
  13. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +0 -1031
  14. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/DynatraceSwiftUI.h +0 -37
  15. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Framework.h +0 -19
  16. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
  17. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  18. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.abi.json +0 -582
  19. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -42
  20. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  21. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftinterface +0 -42
  22. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/module.modulemap +0 -10
  23. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/PrivacyInfo.xcprivacy +0 -100
  24. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  25. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +0 -618
  26. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +0 -1031
  27. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/DynatraceSwiftUI.h +0 -37
  28. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Framework.h +0 -19
  29. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  30. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  31. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  32. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -582
  33. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -42
  34. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  35. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -42
  36. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -582
  37. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -42
  38. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  39. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -42
  40. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/module.modulemap +0 -10
  41. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/PrivacyInfo.xcprivacy +0 -100
  42. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +0 -300
  43. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
  44. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +0 -311
  45. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +0 -1031
  46. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/DynatraceSwiftUI.h +0 -37
  47. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Framework.h +0 -19
  48. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
  49. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
  50. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.abi.json +0 -9
  51. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.private.swiftinterface +0 -9
  52. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftdoc +0 -0
  53. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftinterface +0 -9
  54. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/module.modulemap +0 -11
  55. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/PrivacyInfo.xcprivacy +0 -100
  56. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  57. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +0 -618
  58. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +0 -1031
  59. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/DynatraceSwiftUI.h +0 -37
  60. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Framework.h +0 -19
  61. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  62. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
  63. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
  64. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json +0 -9
  65. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface +0 -9
  66. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc +0 -0
  67. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface +0 -9
  68. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json +0 -9
  69. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface +0 -9
  70. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc +0 -0
  71. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface +0 -9
  72. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/module.modulemap +0 -11
  73. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/PrivacyInfo.xcprivacy +0 -100
  74. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +0 -300
@@ -1,1031 +0,0 @@
1
- // Dynatrace.h
2
- // Version: 8.283.1.1004
3
- //
4
- // These materials contain confidential information and
5
- // trade secrets of Dynatrace Corporation. You shall
6
- // maintain the materials as confidential and shall not
7
- // disclose its contents to any third party except as may
8
- // be required by law or regulation. Use, disclosure,
9
- // or reproduction is prohibited without the prior express
10
- // written permission of Dynatrace LLC.
11
- //
12
- // All Dynatrace products listed within the materials are
13
- // trademarks of Dynatrace Corporation. All other company
14
- // or product names are trademarks of their respective owners.
15
- //
16
- // Copyright 2011-2022 Dynatrace LLC
17
-
18
- #import <Foundation/Foundation.h>
19
- #import <CoreLocation/CoreLocation.h>
20
- #import <UIKit/UIKit.h>
21
-
22
- /*!
23
- @file Dynatrace.h
24
- @abstract This is the file developers include in their projects to use the Dynatrace OneAgent.
25
- @discussion This file provides the declarations of the Dynatrace and DTXAction classes and should
26
- be included in any iOS source file that uses the Dynatrace OneAgent.
27
- */
28
-
29
- #ifndef DYNAFRAMEWORK
30
- #define DYNAFRAMEWORK
31
-
32
- /*!
33
- @typedef DTX_DataCollectionLevel
34
- @abstract This enum represents the different privacy levels that the user can select.
35
- @discussion The selected data collection level has no influence on crash reporting, because crash reporting is configured by a different setting.
36
- @constant DTX_DataCollectionOff The agent does not capture data.
37
- @constant DTX_DataCollectionPerformance The agent only captures anonymous performance data.
38
- @constant DTX_DataCollectionUserBehavior The agent captures performance and user data.
39
- */
40
- typedef NS_ENUM(int, DTX_DataCollectionLevel) {
41
- DTX_DataCollectionOff,
42
- DTX_DataCollectionPerformance,
43
- DTX_DataCollectionUserBehavior
44
- };
45
-
46
- /*!
47
- @typedef DTX_StatusCode
48
- @abstract Usage of status codes is discouraged, it will be removed in a future release.
49
- @constant DTX_CaptureOff OneAgent is not enabled or can't capture data.
50
- @constant DTX_CaptureOn OneAgent is enabled.
51
- @constant DTX_CrashReportingUnavailable PL Crash Reporter framework is unavailable to OneAgent.
52
- @constant DTX_CrashReportingAvailable PL Crash Reporter framework is available to OneAgent.
53
- @constant DTX_Error_NotInitialized OneAgent is not initialized.
54
- @constant DTX_Error_InvalidRange Parameter value specified is outside of permitted range.
55
- @constant DTX_Error_InternalError An internal error occurred.
56
- @constant DTX_Error_ActionNotFound A corresponding enterAction event was not found for the current leaveAction.
57
- @constant DTX_Error_InvalidParameter A null or 0 length beaconURL, applicationID, actionName, or eventName are used.
58
- @constant DTX_Error_ActionEnded The action has already been ended via the leaveAction method.
59
- @constant DTX_Error_ActionCancelled The action has already been cancelled via the cancelAction method.
60
- @constant DTX_ReportErrorOff DEPRECATED in version >= 8.223: Returned if Dynatrace cluster has error reporting configured to off.
61
- @constant DTX_TruncatedEventName Returned if the actionName or eventName exceeds maximum length.
62
- @constant DTX_CrashReportInvalid Crash Report was invalid.
63
- @constant DTX_TruncatedUserId Returned if the userid exceeds maximum length.
64
- */
65
- typedef NS_ENUM(int, DTX_StatusCode) {
66
- DTX_CaptureOff = 1,
67
- DTX_CaptureOn = 2,
68
- DTX_CrashReportingUnavailable = 4,
69
- DTX_CrashReportingAvailable = 5,
70
- DTX_Error_NotInitialized = -1,
71
- DTX_Error_InvalidRange = -2,
72
- DTX_Error_InternalError = -3,
73
- DTX_Error_ActionNotFound = -4,
74
- DTX_Error_InvalidParameter = -5,
75
- DTX_Error_ActionEnded = -6,
76
- DTX_Error_ActionCancelled = -7,
77
- DTX_ReportErrorOff = -8, // DEPRECATED in version >= 8.223
78
- DTX_TruncatedEventName = -9,
79
- DTX_CrashReportInvalid = -10,
80
- DTX_TruncatedUserId = -11,
81
- };
82
-
83
- /*!
84
- @category UIControl (DynatraceCustomization)
85
- @abstract Category for changing the instrumentation behaviour of UIControls.
86
- */
87
- @interface UIControl (DynatraceCustomization)
88
-
89
- /*!
90
- @brief Sets a custom name for the control.
91
-
92
- The custom name is used instead of the captured control title. This can be used to customise control names or hide them for privacy reasons.
93
- Providing an empty String will use the control type as name (e.g. "Button"). Providing nil will reset to default behaviour.
94
- @param name The custom name that will be used instead of the captured control title.
95
- */
96
- - (void)dtxCustomControlName:(NSString* _Nullable)name;
97
-
98
- @end
99
-
100
- /*!
101
- @category UITableViewCell (DynatraceCustomization)
102
- @abstract Category for changing the instrumentation behaviour of UITableViewCells.
103
- */
104
- @interface UITableViewCell (DynatraceCustomization)
105
-
106
- /*!
107
- @brief Sets a custom name for the table cell.
108
-
109
- The custom name is used instead of the captured cell title. This can be used to customise cell names or hide them for privacy reasons.
110
- Providing an empty String will use the cell type as name (e.g. "UITableCell"). Providing nil will reset to default behaviour.
111
- @param name The custom name that will be used instead of the captured cell title.
112
- */
113
- - (void)dtxCustomCellName:(NSString* _Nullable)name;
114
-
115
- @end
116
-
117
- /*!
118
- @category UICollectionViewCell (DynatraceCustomization)
119
- @abstract Category for changing the instrumentation behaviour of UICollectionViewCells.
120
- */
121
- @interface UICollectionViewCell (DynatraceCustomization)
122
-
123
- /*!
124
- @brief Sets a custom name for the table cell.
125
-
126
- The custom name is used instead of the captured cell title. This can be used to customise cell names or hide them for privacy reasons.
127
- Providing an empty String will use the cell type as name (e.g. "CollectionViewCell"). Providing nil will reset to default behaviour.
128
- @param name The custom name that will be used instead of the captured cell title.
129
- */
130
- - (void)dtxCustomCellName:(NSString* _Nullable)name;
131
-
132
- @end
133
-
134
- /*!
135
- @class DTXAction
136
- @abstract This class encapsulates a timed mobile action.
137
- @discussion It creates or extends a mobile action PurePath in Dynatrace. It provides methods to report values,
138
- events, and errors against actions.
139
- */
140
- @interface DTXAction : NSObject
141
-
142
- /*!
143
- @brief Get the name of the action.
144
-
145
- @return Returne the name of the action.
146
- */
147
- - (NSString* _Nonnull)getName;
148
-
149
- /*!
150
- @brief Set a new name for the currently pending action and the child measurement if available.
151
-
152
- @param name new name to set
153
- */
154
- - (void)setName:(NSString* _Nonnull)name;
155
-
156
- /*!
157
- @brief Starts a top level action.
158
-
159
- The top level action results in a new mobile action PurePath in Dynatrace. An action allows you
160
- to time an interval in your code. Call this method at the point you want to start timing.
161
- Call the leaveAction instance method on the returned object at the point you want to stop timing.
162
-
163
- @param actionName Name of action
164
-
165
- @return Returns the new action or nil if an error occurs.
166
- */
167
- + (DTXAction* _Nullable)enterActionWithName:(NSString* _Nonnull)actionName;
168
-
169
- /*!
170
- @brief Starts a child action.
171
-
172
- The action adds a node to an existing mobile action PurePath in Dynatrace. An action allows you
173
- to time an interval in your code. Call this method at the point you want to
174
- start timing. Call the leaveAction instance method on the returned object at the point you want
175
- to stop timing.
176
-
177
- @param actionName Name of action
178
-
179
- @param parentAction The parent action for this action.
180
-
181
- @return Returns the new action or nil if an error occurs.
182
- */
183
- + (DTXAction* _Nullable)enterActionWithName:(NSString* _Nonnull)actionName parentAction:(DTXAction* _Nullable)parentAction;
184
-
185
- /*!
186
- @brief Ends an action and computes its interval.
187
-
188
- All reported events, values, and tagged web requests between start and end of an action are
189
- nested in the mobile action PurePath. If this action has any child actions, they are ended
190
- first. Call this method at the end of the code that you wish to time. The number of milliseconds
191
- since the action began is stored as the interval.
192
-
193
- In non-ARC code the DTXAction must be released after calling this method.
194
-
195
- This method doesn't have an effect on auto generated actions.
196
-
197
- @return Returns a DTX_StatusCode indicating success (DTX_CaptureOn) or failure
198
- */
199
- - (DTX_StatusCode)leaveAction;
200
-
201
- /*!
202
- @brief Cancels an action so it will not be sent.
203
-
204
- All reported events, values, and tagged web requests since start of an action are
205
- not part of the action any more. If this action has any child actions, they are also
206
- cancelled. Call this method if you started a manual action that you wish to cancel and not be tracked after all.
207
-
208
- In non-ARC code the DTXAction must be released after calling this method.
209
-
210
- @return Returns a DTX_StatusCode indicating success (DTX_CaptureOn) or failure
211
- */
212
- - (DTX_StatusCode)cancelAction;
213
-
214
- /*!
215
- @brief Sends an event to Dynatrace.
216
-
217
- The event becomes a node of the mobile action PurePath.
218
-
219
- @param eventName Name of event
220
-
221
- @return Returns a DTX_StatusCode
222
- */
223
- - (DTX_StatusCode)reportEventWithName:(NSString* _Nonnull)eventName;
224
-
225
- /*!
226
- @brief Sends a key/value pair to Dynatrace.
227
-
228
- The value becomes a node of the mobile action PurePath. The value can be processed by a measure and
229
- thus be charted.
230
-
231
- @param valueName Name of value
232
-
233
- @param intValue An integer value associated with the value name
234
-
235
- @return Returns a DTX_StatusCode
236
- */
237
- - (DTX_StatusCode)reportValueWithName:(NSString* _Nonnull)valueName intValue:(int64_t)intValue;
238
-
239
- /*!
240
- @brief Sends a key/value pair to Dynatrace.
241
-
242
- The value becomes a node of the mobile action PurePath. The value can be processed by a measure and
243
- thus be charted.
244
-
245
- @param valueName Name of value
246
-
247
- @param doubleValue A double value associated with the value name
248
-
249
- @return Returns a DTX_StatusCode
250
- */
251
- - (DTX_StatusCode)reportValueWithName:(NSString* _Nonnull)valueName doubleValue:(double)doubleValue;
252
-
253
- /*!
254
- @brief Sends a key/value pair to Dynatrace.
255
-
256
- The value becomes a node of the mobile action PurePath.
257
-
258
- @param valueName Name of value
259
-
260
- @param stringValue A string value associated with the value name
261
-
262
- @return Returns a DTX_StatusCode
263
- */
264
- - (DTX_StatusCode)reportValueWithName:(NSString* _Nonnull)valueName stringValue:(NSString* _Nonnull)stringValue;
265
-
266
- /*!
267
- @brief Sends an error value to Dynatrace.
268
-
269
- The error becomes a node of the mobile action PurePath.
270
-
271
- @param errorName Name of error
272
-
273
- @param errorValue An integer value associated with the error
274
-
275
- @return Returns a DTX_StatusCode
276
- */
277
- - (DTX_StatusCode)reportErrorWithName:(NSString* _Nonnull)errorName errorValue:(int)errorValue;
278
-
279
- /*!
280
- @brief Sends an exception to Dynatrace.
281
-
282
- The exception becomes a node of the mobile action PurePath. This can be used to report exceptions
283
- that are caught and handled.
284
-
285
- @param errorName Name of error
286
-
287
- @param exception An exception object that has been caught. The description string of this
288
- object is sent to Dynatrace along with the call stack if one is present.
289
-
290
- @return Returns a DTX_StatusCode
291
- */
292
- - (DTX_StatusCode)reportErrorWithName:(NSString* _Nonnull)errorName exception:(NSException* _Nonnull)exception;
293
-
294
- /*!
295
- @brief Sends an error object to Dynatrace.
296
-
297
- The error becomes a node of the mobile action PurePath.
298
-
299
- @param errorName Name of error
300
-
301
- @param error An error object that has been caught. The error information for this
302
- object is sent to Dynatrace.
303
-
304
- @return Returns a DTX_StatusCode
305
- */
306
- - (DTX_StatusCode)reportErrorWithName:(NSString* _Nonnull)errorName error:(NSError* _Nonnull)error;
307
-
308
- /*!
309
- @brief Sends an error value to Dynatrace.
310
-
311
- Because this is a class method, the error is not associated with an action. It creates
312
- its own mobile-only PurePath.
313
-
314
- @param errorName Name of error
315
-
316
- @param errorValue An integer value associated with the error
317
-
318
- @return Returns a DTX_StatusCode
319
- */
320
- + (DTX_StatusCode)reportErrorWithName:(NSString* _Nonnull)errorName errorValue:(int)errorValue;
321
-
322
- /*!
323
- @brief Sends an exception to Dynatrace.
324
-
325
- Because this is a class method, the exception is not associated with an action. It creates
326
- its own mobile-only PurePath.
327
-
328
- @param errorName Name of error
329
-
330
- @param exception An exception object that has been caught. The description string of this
331
- object is sent to Dynatrace along with the call stack if one is present.
332
-
333
- @return Returns a DTX_StatusCode
334
- */
335
- + (DTX_StatusCode)reportErrorWithName:(NSString* _Nonnull)errorName exception:(NSException* _Nonnull)exception;
336
-
337
- /*!
338
- @brief Sends an error object to Dynatrace.
339
-
340
- Because this is a class method, the error is not associated with an action. It creates
341
- its own mobile-only PurePath.
342
-
343
- @param errorName Name of error
344
-
345
- @param error An error object that has been caught. The error information for this
346
- object is sent to Dynatrace.
347
-
348
- @return Returns a DTX_StatusCode
349
- */
350
- + (DTX_StatusCode)reportErrorWithName:(NSString* _Nonnull)errorName error:(NSError* _Nonnull)error;
351
-
352
- /*!
353
- @brief Get the tag for the action by url.
354
-
355
- @param url URL to get the action for.
356
-
357
- @return Returns the generated tag string or an empty string if not allowed by url filtering rules or privacy settings.
358
- */
359
- - (NSString* _Nullable) getTagForURL: (NSURL* _Nullable)url;
360
-
361
- @property (readonly) int tagId;
362
-
363
- @end
364
-
365
- /*************************************************************************************************/
366
-
367
- /*!
368
- @brief Provides the ability to manually tag and time web requests.
369
-
370
- The DTXWebRequestTiming class provides the ability to manually time web requests.
371
- */
372
- @interface DTXWebRequestTiming : NSObject
373
-
374
- /*!
375
- @brief Creates a DTXWebRequestTiming object.
376
-
377
- This method creates an instance of the DTXWebRequestTiming object.
378
-
379
- @param requestTagString the value of the HTTP header that you must add to your web request. this
380
- is obtained from the Dynatrace getRequestTagValueForURL method.
381
-
382
- @param requestUrl the value of the URL for the web request
383
-
384
- @return Returns the DTXWebRequestTiming object.
385
- */
386
- + (DTXWebRequestTiming* _Nullable)getDTXWebRequestTiming:(NSString* _Nonnull)requestTagString requestUrl:(NSURL* _Nullable)requestUrl;
387
-
388
- /*!
389
- @brief Manually start timing a web request.
390
-
391
- The Dynatrace OneAgent automatically times web requests made using NSURLRequest, NSURLConnection,
392
- NSURLProtocol and NSString. If you use an alternate technology to make
393
- web requests and want to time them, use the getRequestTagHeader method, adding that information to
394
- your request, and then this method to start the timing.
395
-
396
- @return Returns a DTX_StatusCode
397
- */
398
- - (DTX_StatusCode)startWebRequestTiming;
399
-
400
- /*!
401
- @brief Manually finish timing a web request.
402
-
403
- @param statusCode the response status code for a successful web request or the error code or error description
404
- for a failed web request
405
-
406
- The Dynatrace OneAgent automatically times web requests made using NSURLRequest, NSURLConnection,
407
- NSURLProtocol and NSString. If you use an alternate technology to make
408
- web requests and want to time them, use the getRequestTagHeader method, adding that information to
409
- your request, and then this method to stop the timing and send the information to the mobile action PurePath.
410
-
411
- @return Returns a DTX_StatusCode
412
- */
413
- - (DTX_StatusCode)stopWebRequestTiming:(NSString* _Nullable)statusCode;
414
-
415
- @end
416
-
417
- /*************************************************************************************************/
418
-
419
-
420
- /*!
421
- @brief DTXUserPrivacyOptions protocol should be implemented by objects passed to applyUserPrivacyOptions:completion: method.
422
- @property crashReportingOptedIn current privacy setting for crash reporting
423
- @property dataCollectionLevel the current data collection level.
424
- */
425
-
426
- @protocol DTXUserPrivacyOptions <NSObject>
427
- @required
428
- @property (nonatomic) BOOL crashReportingOptedIn;
429
- @property (nonatomic) BOOL crashReplayOptedIn;
430
- @property (nonatomic) DTX_DataCollectionLevel dataCollectionLevel;
431
- @end
432
-
433
- /*!
434
- @typedef DTX_SwiftUIViewType
435
- @abstract This enum represents the different view types the DTXOnChangeEventsListener listener supports.
436
- @discussion The DTXOnChangeEventsListener is limited to a few supported view types, this enum shows a list of supported types.
437
- @constant list List, LazyVGrid or LazyHGrid SwiftUI type
438
- */
439
- typedef NS_ENUM(int, DTX_SwiftUIViewType) {
440
- list
441
- };
442
-
443
- /*!
444
- @brief This API is not intended for manual use! DTXOnChangeEventsListener protocol should be implemented by any class that wants to recieve updates about specific SwiftUI onChange events.
445
- */
446
- @protocol DTXOnChangeEventsListener <NSObject>
447
- @required
448
-
449
- /*!
450
- @brief Called by the observer when it recieves a state update.
451
-
452
- @param viewType The type of the view that changed.
453
-
454
- @param frame The frame of the view that changed.
455
- */
456
- - (void)viewDidChange:(DTX_SwiftUIViewType)viewType inFrame:(CGRect)frame;
457
- @end
458
-
459
- /*!
460
- @brief This API is not intended for manual use! Provides a communication channel between the SwiftUI instrumentor and the mobile agent.
461
- */
462
- @interface DTXOnChangeEventsObserver : NSObject
463
-
464
- + (DTXOnChangeEventsObserver* _Nonnull)sharedInstance;
465
-
466
- /*!
467
- @brief Adds a listener for on change events.
468
-
469
- @param listener The listener to be added.
470
- */
471
- - (void)addListener:(id<DTXOnChangeEventsListener> _Nonnull)listener;
472
-
473
- /*!
474
- @brief Removes a listener for on change events.
475
-
476
- @param listener The listener to be removed..
477
- */
478
- - (void)removeListener:(id<DTXOnChangeEventsListener> _Nonnull)listener;
479
-
480
- /*!
481
- @brief Notifies all listener about an update.
482
-
483
- @param changedView The type of the view that changed.
484
-
485
- @param changedFrame The frame of the view that changed.
486
- */
487
- - (void)notifyListeners:(DTX_SwiftUIViewType)changedView frame:(CGRect)changedFrame;
488
- @end
489
-
490
-
491
- /*!
492
- @brief Provides for startup and shutdown of the Dynatrace OneAgent.
493
-
494
- The Dynatrace class provides the ability to startup, shutdown, and control other global
495
- attributes of the Dynatrace OneAgent.
496
- */
497
- @interface Dynatrace : NSObject
498
-
499
- /*!
500
- @brief Initializes the Dynatrace OneAgent.
501
-
502
- This must be invoked before any Events can be captured. Multiple calls to this method are
503
- ignored if the OneAgent is not shut down between them.
504
-
505
-
506
- @return Returns a DTX_StatusCode
507
- */
508
- + (DTX_StatusCode)startupWithInfoPlistSettings;
509
-
510
- /*!
511
- @brief Initializes the Dynatrace OneAgent.
512
-
513
- @param config A dictionary with key/value pairs similar to the ones in the project's Info.plist file.
514
-
515
- @discussion An overview of all possible key/value pairs can be found on the start page under "Constants"
516
-
517
- @return Returns a DTX_StatusCode
518
- */
519
- + (DTX_StatusCode)startupWithConfig:(NSDictionary<NSString*,id>* _Nonnull)config;
520
-
521
- /*!
522
- @brief Stops monitoring and flushes all collected data to Dynatrace.
523
-
524
- @return Returns a DTX_StatusCode
525
- */
526
- + (DTX_StatusCode)shutdown;
527
-
528
- /*!
529
- @brief Identify a user.
530
-
531
- The current session will be tagged with the provided userId. The userId needs to be set again on application restart.
532
-
533
- @param userId to tag the session with. If userId = nil or empty the user tag will be removed from the session.
534
-
535
- @return Returns a DTX_StatusCode
536
- */
537
- + (DTX_StatusCode)identifyUser:(NSString* _Nullable)userId;
538
-
539
- /*!
540
- @brief Identify a user. This method is deprecated! Parameter parentAction is being ignored! Please use (DTX_StatusCode)identifyUser:(NSString*)userId instead.
541
-
542
- The current session will be tagged with the provided userId. The userId needs to be set again on application restart.
543
-
544
- @param userId to tag the session with. If userId = nil or empty the user tag will be removed from the session.
545
-
546
- @param parentAction The parent action for the user identify. This parameter is being ignored!
547
-
548
- @return Returns a DTX_StatusCode
549
- */
550
- + (DTX_StatusCode)identifyUser:(NSString* _Nullable)userId parentAction:(DTXAction* _Nullable)parentAction __deprecated_msg("Please use (DTX_StatusCode)identifyUser:(NSString*)userId instead. Parameter '(DTXAction*)parentAction' is being ignored.");
551
-
552
- /*!
553
- @brief Allows to modify the currently pending user action.
554
-
555
- If there is no user action pending or if it is already closed upon modification, no modification takes place.
556
-
557
- @param modifier block which is applied to the currently pending user action.
558
- */
559
- + (void)modifyUserAction:(void(^ _Nullable)(DTXAction* _Nullable modifiableAction))modifier;
560
-
561
- /*!
562
- @brief Adds a callback that will be called every time an auto user action is generated.
563
-
564
- The generated auto user action is passed to the callback for modification.
565
-
566
- @param callback is called when a new auto user action is created.
567
- */
568
- + (void)setAutoUserActionCreationCallback:(void(^ _Nullable)(DTXAction* _Nullable modifiableAction))callback;
569
-
570
- /*!
571
- @brief Set the current GPS location of the user.
572
-
573
- The Dynatrace library does not automatically collect location information. If the
574
- developer wants location information to be transmitted to Dynatrace, then this function should
575
- be used to provide it.
576
-
577
- @param gpsLocation CLLocation object with GPS coordinates aquired by customer application
578
-
579
- @return Returns a DTX_StatusCode indicating current uem capture status (if the OneAgent is not
580
- capturing no GPS location is set)
581
- */
582
- + (DTX_StatusCode)setGpsLocation:(CLLocation* _Nonnull)gpsLocation;
583
-
584
- /*!
585
- @brief Provides information regarding internal errors.
586
-
587
- Use this to obtain the error code associated with the most recent DTX_Error_InternalError or
588
- enterActionWithName.
589
-
590
- @return Returns the error code or 0 if there is no error.
591
- */
592
- + (int)lastErrorCode;
593
-
594
- /*!
595
- @brief Provides a string describing internal errors.
596
-
597
- Use this to obtain the error message associated with most recent DTX_Error_InternalError.
598
-
599
- @return Returns the error message or nil if there is no error.
600
- */
601
- + (NSString* _Nullable)lastErrorMsg;
602
-
603
- /*!
604
- @brief Send all collected events immediately.
605
-
606
- To reduce network traffic/usage the collected events are usually sent in packages where the oldest
607
- event has an age of up to 9 minutes. Using this method you can force sending of all collected
608
- events regardless of their age.
609
-
610
- @return Returns a DTX_StatusCode
611
- */
612
- + (DTX_StatusCode)flushEvents;
613
-
614
- /*!
615
- @brief Enable Dynatrace crash reporting.
616
-
617
- The Dynatrace OneAgent can report on application crashes using the KSCrash framework. Call this
618
- method after startup to enable crash reporting to Dynatrace.
619
-
620
- When using auto-start use the Info.plist value DTXCrashReportingEnabled to control whether this
621
- method is invoked automatically. You must disable the automatic invocation of this method if
622
- you wish to use one of the following methods to enable third party crash reporting.
623
-
624
- @param sendCrashReport YES to send complete crash report to Dynatrace. NO to
625
- send only minimal information.
626
-
627
- @return Returns a DTX_StatusCode
628
- */
629
- + (DTX_StatusCode)enableCrashReportingWithReport:(BOOL)sendCrashReport;
630
-
631
- /*!
632
- @brief Sets a dictionary of custom headers to be included in all OneAgent data transmissions.
633
-
634
- The Dynatrace OneAgent sends data to the beacon endpoint via HTTP or HTTPS. If your infrastructure requires
635
- custom headers to be added to HTTP requests in order for them to pass you can use this method to provide
636
- them. This method needs to be called as early as possible to ensure that the headers are available for the first communication with the beacon endpoint.
637
- It can be called again later to change or to remove the headers.
638
-
639
- @param beaconHeaders The headers dictionary. Pass nil to remove all headers from future requests.
640
- The headers will be inspected for invalid or not allowed values.
641
- Limitations:
642
- - max number of headers: 10
643
- - max header len: 4096 bytes
644
- - max total size: 8192 bytes
645
-
646
- @return YES if the headers where successfully set, NO otherwise.
647
- */
648
- + (BOOL)setBeaconHeaders:(NSDictionary<NSString*,NSString*>* _Nullable)beaconHeaders;
649
-
650
- /**
651
- @return the dictionary of custom headers that was set with setBeaconHeaders: method
652
- */
653
- + (NSDictionary<NSString*,NSString*>* _Nullable)beaconHeaders;
654
-
655
- /**
656
- In order to receive notifications about the network errors occurred in the agent
657
- subscribe to the notification center using this as name.
658
-
659
- e.g.: [[NSNotificationCenter defaultCenter] addObserverForName:[Dynatrace getCommunicationProblemNotificationName] ... ];
660
- */
661
- + (NSString* _Nonnull)getCommunicationProblemNotificationName;
662
-
663
- /*!
664
- @brief Returns the HTTP header to use for manual web request tagging.
665
-
666
- The Dynatrace OneAgent automatically tags web requests made using NSURLRequest, NSURLConnection,
667
- NSURLProtocol and NSString. If you use an alternate technology to make
668
- web requests and want them to appear nested in a mobile action PurePath use this method and the
669
- getRequestTagValue method to retrieve the HTTP header and its value. Adding that information to
670
- your request will include it in the PurePath.
671
-
672
- @return Returns the name of the HTTP header that you must add to your web request.
673
- */
674
- + (NSString* _Nonnull)getRequestTagHeader;
675
-
676
- /*!
677
- @brief Returns the HTTP header value to use for manual web request tagging.
678
-
679
- The Dynatrace OneAgent automatically tags web requests made using NSURLRequest, NSURLConnection,
680
- NSURLProtocol and NSString. If you use an alternate technology to make
681
- web requests and want them to appear nested in a mobile action PurePath use this method and the
682
- getRequestTagHeader method to retrieve the HTTP header and its value. Adding that information to
683
- your request will include it in the PurePath.
684
-
685
- @param url The NSURL for the web request.
686
-
687
- @return Returns the value of the HTTP header that you need to add to your web request. An empty string is returned if request tagging not allowed by url filtering rules or privacy settings.
688
- */
689
- + (NSString* _Nullable)getRequestTagValueForURL:(NSURL* _Nullable)url;
690
-
691
- /*!
692
- @brief Returns the current data collection level. This method will always return DTX_DataCollectionUserBehavior when the user optin feature is not used.
693
-
694
- @return current data collection level
695
- */
696
- + (DTX_DataCollectionLevel)dataCollectionLevel __deprecated_msg("use userPrivacyOptions API");
697
-
698
- /*!
699
- @brief Allows the user to set the data collection level and stores the users decisions for future sessions.
700
-
701
- This method does not store the settings when the user optin feature is not used.
702
- When the user changes the data collection level a new session will be started.
703
-
704
- @param dataCollectionLevel new data collection level
705
-
706
- @param completion callback that is executed when switching to the new data collection level is finished
707
- */
708
- + (void)setDataCollectionLevel:(DTX_DataCollectionLevel)dataCollectionLevel completion:(void(^ _Nullable)(BOOL successful))completion __deprecated_msg("use userPrivacyOptions API");
709
-
710
- /*!
711
- @brief Returns the current privacy setting for crash reporting. This method will always return YES, when the user optin feature is not used.
712
-
713
- @return current privacy setting for crash reporting
714
- */
715
- + (BOOL)crashReportingOptedIn __deprecated_msg("use userPrivacyOptions API");
716
-
717
- /*!
718
- @brief Allows the user to activate/deactivate crash reporting and stores the users decisions for future sessions.
719
-
720
- This method does not store the settings when the user optin feature is not used.
721
- @param optedIn YES, if crash reporting is confirmed by the user
722
- */
723
- + (void)setCrashReportingOptedIn:(BOOL)optedIn __deprecated_msg("use userPrivacyOptions API");
724
-
725
- /*!
726
- @brief Ends the visit for Dynatrace and starts a new session.
727
-
728
- This method creates its own mobile-only PurePath.
729
-
730
- @return Returns a DTX_StatusCode
731
- */
732
- + (DTX_StatusCode)endVisit;
733
-
734
- /*!
735
- @brief Returns an object containig privacy options that can be made available to the application user.
736
-
737
- When the user optin feature is not used:
738
- - all the BOOL options default to YES.
739
- - dataCollection level defaults to: DTX_DataCollectionUserBehavior
740
- */
741
- + (id<DTXUserPrivacyOptions> _Nonnull)userPrivacyOptions;
742
-
743
- /*!
744
- @brief Allows the user to activate/deactivate various privacy options. This are detailed in the DTXUserPrivacyOptions protocol declaration
745
-
746
- @param completion callback that is executed when applying the new option is completed. (Can be ommited but its higly recommendable to be used. In best case scenario the application should wait for it.)
747
- */
748
- + (void)applyUserPrivacyOptions:(id<DTXUserPrivacyOptions> _Nonnull)userOptions completion:(void(^ _Nullable)(BOOL successful))completion;
749
-
750
- /*!
751
- @brief Set a SwiftUI instrumentor line number mapping file. This method is called automatically by the SwiftUI instrumentor.
752
-
753
- @param mappingJson generated and passed automatically by the Dynatrace SwiftUI intrumentor.
754
- */
755
- + (void)setLineNumberMapping:(NSString* _Nonnull)mappingJson __deprecated;
756
-
757
- /*!
758
- @brief Set SwiftUI instrumentor config data. This method is called automatically by the SwiftUI instrumentor.
759
-
760
- @param dict generated and passed automatically by the Dynatrace SwiftUI intrumentor.
761
- */
762
- + (void)handoverInstrumentorConfig:(NSDictionary* _Nonnull)dict;
763
-
764
- /*!
765
- @brief Send a business event.
766
-
767
- With sendBizEvent, you can report a business event. These standalone events are being sent detached from user actions or sessions.
768
- The 'dt' key, as well as all 'dt.' prefixed keys are considered reserved by Dynatrace and will be stripped from the passed in attributes.
769
- Note: Business events are only supported on Dynatrace SaaS deployments currently.
770
- https://www.dynatrace.com/support/help/how-to-use-dynatrace/business-analytics/ba-events-capturing#get-business-events-from-rum
771
-
772
- @param type type of the event being sent
773
- @param attributes dictionary of attributes being attached to the sent event
774
- */
775
- + (void)sendBizEventWithType:(NSString* _Nonnull)type attributes:(NSDictionary<NSString*,id>* _Nullable)attributes;
776
-
777
- @end
778
- #endif
779
-
780
- # pragma mark - Configuration Keys
781
-
782
- # pragma mark Logging
783
- /*!
784
- @const kDTXLogLevel
785
- If this key is present with a valid value (ALL, INFO, WARNING, SEVERE, OFF),
786
- the OneAgent logging level will be set to this value. If a key isn't present or doesn't have a valid value,
787
- logging will default to OFF.
788
- */
789
- extern NSString *_Nonnull const kDTXLogLevel;
790
-
791
- # pragma mark Agent Setup
792
- /*!
793
- @const kDTXApplicationID
794
- This key’s value is used by Dynatrace to identify your mobile app. Auto-instrumentation issues an error if the key isn't present.
795
- */
796
- extern NSString *_Nonnull const kDTXApplicationID;
797
-
798
- /*!
799
- @const kDTXBeaconURL
800
- The beacon URL as specified by the mobile application settings in the Dynatrace webUI.
801
- This value needs to begin with the transport mechanism to be used (http:// or https://).
802
- */
803
- extern NSString *_Nonnull const kDTXBeaconURL;
804
-
805
- /*!
806
- @const kDTXAgentCertificatePath
807
- This key defines the path to a (self-signed) certificate in DERformat, which is used as an additional anchor
808
- to validate HTTPS communication. This key is needed if DTXAllowAnyCert is false and a self-signed certificate
809
- is used on the beacon endpoint. The default value is false.
810
- */
811
- extern NSString *_Nonnull const kDTXAgentCertificatePath;
812
-
813
- /*!
814
- @const kDTXAllowAnyCert
815
- If set to true, self signed certificates are accepted.
816
- If set to false, valid certificates from known certificate authorities are accepted. The default value is false.
817
- */
818
- extern NSString *_Nonnull const kDTXAllowAnyCert;
819
-
820
- /*!
821
- @const kDTXStartupLoadBalancing
822
- This key enables agent-side load balancing on startup. By default, this is set to false. When set to true, this enables agent-side load balancing, which avoids unbalanced load on the Dynatrace cluster when multiple OneAgents simultaneously establish a connection to the ActiveGate. If OneAgent is used as a beacon endpoint in place of an ActiveGate, this configuration key requires OneAgent version 1.195+.
823
- @note This key is available as of OneAgent for iOS 8.203.
824
- */
825
- extern NSString *_Nonnull const kDTXStartupLoadBalancing;
826
-
827
- /*!
828
- @const kDTXAutoStart
829
- When set to false, the agent does not start automatically and must be started by either calling startupWithInfoPlistSettings to start with the configuration from Info.plist or startupWithConfig to start with the passed configuration dictionary. Configuration keys for the dictionary are the ones listed in this header file. The default value is true.
830
- */
831
- extern NSString *_Nonnull const kDTXAutoStart;
832
-
833
- /*!
834
- @const kDTXHybridApplication
835
- The default value is false. Set the value to true if you have a Hybrid application.
836
- This is necessary to share the same visit for user actions created by the JavaScript agent.
837
- */
838
- extern NSString *_Nonnull const kDTXHybridApplication;
839
-
840
- /*!
841
- @const kDTXSetCookiesForDomain
842
- For hybrid apps that use the JavaScript library, cookies must be set for each instrumented domain or server that the app communicates with. You can specify domains, host, or IP addresses. Domains and sub-domains must start with a dot.
843
- */
844
- extern NSString *_Nonnull const kDTXSetCookiesForDomain;
845
-
846
- /*!
847
- @const kDTXSetSecureCookiesForDomain
848
- For hybrid apps that use the JavaScript library, cookies must be set for each instrumented domain or webserver that the app communicates with. You can specify domains, host, or IP addresses. Domains and sub-domains must start with a dot. Similar to kDTXSetCookiesForDomain but will add the secure property to the cookie.
849
- */
850
- extern NSString *_Nonnull const kDTXSetSecureCookiesForDomain;
851
-
852
- /*!
853
- @const kDTXCrashReportingEnabled
854
- Set the value to false if you want to disable crash reporting. The default value is true.
855
- */
856
- extern NSString *_Nonnull const kDTXCrashReportingEnabled;
857
-
858
- /*!
859
- @const kDTXSendCrashReports
860
- Corresponds to the sendCrashReport parameter for enableCrashReportingwithReport to send crash reports to Dynatrace.
861
- Set the key to false if you do not want to send crash reports. The default value is true.
862
- */
863
- extern NSString *_Nonnull const kDTXSendCrashReports;
864
-
865
- # pragma mark Privacy Opt-In
866
- /*!
867
- @const kDTXUserOptIn
868
- If set to true, privacy mode is activated and user consent needs to be queried and set.
869
- The privacy settings for data collection and crash reporting can be changed via the OneAgent SDK for Mobile like described in Data privacy.
870
- The default value is false.
871
- https://www.dynatrace.com/support/help/user-experience/mobile-apps/how-do-i-enrich-mobile-user-experience-data-via-the-oneagent-sdk-for-mobile/#anchor_privacy
872
- */
873
- extern NSString *_Nonnull const kDTXUserOptIn;
874
-
875
- # pragma mark Instrumentation - GPS
876
- /*!
877
- @const kDTXInstrumentGPSLocation
878
- The location is captured only if the app uses CLLocationManager and sends the captured location as a metric to Dynatrace.
879
- OneAgent for iOS doesn't perform GPS location capturing on its own. Set the value to false to disable OneAgent
880
- for iOS location capturing. The default value is true.
881
- */
882
- extern NSString *_Nonnull const kDTXInstrumentGPSLocation;
883
-
884
- # pragma mark Instrumentation - Lifecycle
885
- /*!
886
- @const kDTXInstrumentLifecycleMonitoring
887
- Automatic lifecycle detection is enabled without the need to override your view controller classes with the OneAgent
888
- for iOS lifecycle classes. Set the value to false to disable automatic lifecycle monitoring. The default value is true.
889
- */
890
- extern NSString *_Nonnull const kDTXInstrumentLifecycleMonitoring;
891
-
892
- /*!
893
- @const kDTXExcludedLifecycleClasses
894
- An array of items where each item contains the name of a class to exclude from automatic lifecycle instrumentation.
895
- Each item in the array is a case-sensitive string that must exactly match the name of the class to be excluded.
896
- */
897
- extern NSString *_Nonnull const kDTXExcludedLifecycleClasses;
898
-
899
- # pragma mark Instrumentation - Auto User Actions (control touches)
900
- /*!
901
- @const kDTXInstrumentAutoUserAction
902
- The default value is true. Turns on the ability to automatically create user actions for user interactions with the app,
903
- such as button clicks. Set the value to false to disable automatic creation of user actions.
904
- */
905
- extern NSString *_Nonnull const kDTXInstrumentAutoUserAction;
906
-
907
- /*!
908
- @const kDTXAutoActionTimeoutMilliseconds
909
- The default value is 500 ms. Sets the value for how long a particular automatic user action is active.
910
- The purpose is to catch all web requests that happen when an automatic user action is active.
911
- If the automatic user action has completed web requests, OneAgent leaves the action at the end of this time.
912
- The minimum allowed value is 100 ms, the maximum allowed value is 5000 ms (five seconds).
913
- */
914
- extern NSString *_Nonnull const kDTXAutoActionTimeoutMilliseconds;
915
-
916
- /*!
917
- @const kDTXAutoActionMaxDurationMilliseconds
918
- The default value is 60000 ms (60 seconds). Sets the amount of time to retain an automatic user action before deletion.
919
- The purpose is to catch all web requests that occur when an automatic user action is active.
920
- If an automatic user action has pending web requests that are taking a long time to complete,
921
- OneAgent waits for this amount of time for the web requests to complete before leaving the user action.
922
- The minimum allowed value is 100 ms, the maximum allowed value is 540000 ms (nine minutes).
923
- */
924
- extern NSString *_Nonnull const kDTXAutoActionMaxDurationMilliseconds;
925
-
926
- /*!
927
- @const kDTXSendEmptyAutoAction
928
- Determines whether to send automatic user actions that don't contain any web requests or lifecycle actions.
929
- The default value is true.
930
- */
931
- extern NSString *_Nonnull const kDTXSendEmptyAutoAction;
932
-
933
- /*!
934
- @const kDTXExcludedControls
935
- Defines an array of items where each item contains a type of view or control to exclude from automatic creation
936
- of user actions. Each item in the array is a case-insensitive string. Possible values are Button, DatePicker, Slider, Stepper,
937
- Switch, RefreshControl, ToolBar, SegmentedControl, TableView, TabBar, AlertView, AlertAction, PageView, NavigationController,
938
- CollectionView, Gesture, and ActionSheet.
939
- */
940
- extern NSString *_Nonnull const kDTXExcludedControls;
941
-
942
- /*!
943
- @const kDTXExcludedControlClasses
944
- An array of items where each item contains the name of a UI control (sub-)class to exclude from automatic instrumentation.
945
- Each item in the array is a case-sensitive string that must exactly match the name of the class to be excluded.
946
- */
947
- extern NSString *_Nonnull const kDTXExcludedControlClasses;
948
-
949
- # pragma mark Instrumentation - Web Requests
950
- /*!
951
- @const kDTXInstrumentWebRequestTiming
952
- The default value is true, which turns on automatic web request timing. Set the value to false to disable automatic
953
- web request timing. Note that webRequestTagging is enabled if webRequestTiming is enabled, because it's a dependency.
954
- */
955
- extern NSString *_Nonnull const kDTXInstrumentWebRequestTiming;
956
-
957
- /*!
958
- @const kDTXFilterURLProtocolDuplicates
959
- This key is required if NSURLProtocol subclassing is used and duplicate web requests may appear. The default value is false.
960
- @note This key is available as of OneAgent for iOS 8.172 and 7.2.6.
961
- */
962
- extern NSString *_Nonnull const kDTXFilterURLProtocolDuplicates;
963
-
964
- /*!
965
- @const kDTXInstrumentWebViewTiming
966
- Detects and times web requests that originate from web views in your app. Set the value to false to disable
967
- automatic detection and timing of web view web requests. The default value is true.
968
- */
969
- extern NSString *_Nonnull const kDTXInstrumentWebViewTiming;
970
-
971
- /*!
972
- @const kDTXWebViewStandInDelegate
973
- (DEPRECATED in version >= 8.257) Use different instrumentation mode for WebView delegates to prevent circular instrumentation on delegate switching involving a subclass. The default value is false.
974
- @note This key is available as of OneAgent for iOS 8.175 and 7.2.7.
975
- */
976
- extern NSString *_Nonnull const kDTXWebViewStandInDelegate __deprecated_msg("Don't use this flag anymore, it will be ignored.");
977
-
978
- /*!
979
- @const kDTXURLFilters
980
- Provide an array of url strings or regex expressions to filter out web requests that should not be monitored.
981
- @note This key is available as of OneAgent for iOS 8.219.
982
- */
983
- extern NSString *_Nonnull const kDTXURLFilters;
984
-
985
- /*!
986
- @const kDTXWebViewInstrumentInitWithCoder
987
- Enables auto-instrumentation for WKWebView's initWithCoding. This might interfere with custom serialized data. The default value is true.
988
- @note This key is available as of OneAgent for iOS 8.249.
989
- */
990
- extern NSString *_Nonnull const kDTXWebViewInstrumentInitWithCoder;
991
-
992
- # pragma mark Instrumentation - Detect Rage Taps
993
- /*!
994
- @const kDTXDetectRageTaps
995
- If set to true, rage taps on the screen will be detected, signaling a user frustration while using the app.
996
- Set the value to false to turn off automatic detection. The default value is true.
997
- */
998
- extern NSString *_Nonnull const kDTXDetectRageTaps;
999
-
1000
- # pragma mark Instrumentation - 3rd Party Frameworks
1001
- /*!
1002
- @const kDTXInstrumentFrameworks
1003
- Flag to force the agent to also look for viewControllers inside the frameworks linked with the application
1004
- */
1005
- extern NSString *_Nonnull const kDTXInstrumentFrameworks;
1006
- /*!
1007
- @const kDTXUIActionNamePrivacy
1008
- If set to true, a label or accessibility identifier of a view will be replaced by the view class name when reporting a touch event.
1009
- */
1010
- extern NSString *_Nonnull const kDTXUIActionNamePrivacy;
1011
- /*!
1012
- @const kDTXFilterSwiftUIActionDuplicates
1013
- If set to true, actions generated for SwiftUI components will be ignored in favor of generated SwiftUI actions.
1014
- The default is true for SwiftUI lifecycle apps and false for UIKit/Storyboard lifecycle apps.
1015
- */
1016
- extern NSString *_Nonnull const kDTXFilterSwiftUIActionDuplicates;
1017
- /*!
1018
- @const kDTXSwiftMappingJson
1019
- Generated and passed automatically by the Dynatrace SwiftUI intrumentor.
1020
- */
1021
- extern NSString *_Nonnull const kDTXSwiftMappingJson;
1022
- /*!
1023
- @const kDTXSwiftIsSwiftUIApp
1024
- Generated and passed automatically by the Dynatrace SwiftUI intrumentor.
1025
- */
1026
- extern NSString *_Nonnull const kDTXSwiftIsSwiftUIApp;
1027
- /*!
1028
- @const kDTXInstrumentAsyncWebRequests
1029
- Enables auto-instrumentation of the async URLSession calls. The default value is true.
1030
- */
1031
- extern NSString *_Nonnull const kDTXInstrumentAsyncWebRequests;