@dynatrace/react-native-plugin 2.335.1 → 2.337.2
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 +145 -61
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceRNBridgeImpl.kt +1 -1
- package/files/plugin.gradle +1 -1
- package/instrumentation/BabelPluginDynatrace.js +1 -1
- package/instrumentation/DynatraceInstrumentation.js +1 -1
- package/instrumentation/libs/community/Picker.js +1 -1
- package/instrumentation/libs/react-navigation/ReactNavigation.js +9 -0
- package/instrumentation/libs/withOnPressMonitoring.js +59 -14
- package/lib/core/Dynatrace.js +3 -0
- package/lib/core/DynatraceBridge.js +5 -7
- package/lib/core/configuration/ActionNameOptions.js +2 -0
- package/lib/core/configuration/Configuration.js +5 -1
- package/lib/core/configuration/ConfigurationBuilder.js +11 -1
- package/lib/core/configuration/ConfigurationDefaults.js +3 -1
- package/lib/core/configuration/ConfigurationHandler.js +64 -0
- package/lib/core/configuration/ConfigurationPreset.js +6 -0
- package/lib/core/configuration/ManualStartupConfiguration.js +9 -1
- package/lib/features/ui-interaction/Runtime.js +31 -19
- package/lib/next/Dynatrace.js +44 -0
- package/lib/next/configuration/INativeRuntimeConfiguration.js +9 -0
- package/lib/next/configuration/RuntimeConfigurationObserver.js +50 -6
- package/lib/next/events/EventPipeline.js +14 -6
- package/lib/next/events/HttpRequestEventData.js +26 -30
- package/lib/next/provider/TimestampProvider.js +20 -7
- package/lib/next/util/TraceContextUtils.js +108 -0
- package/package.json +4 -3
- package/react-native-dynatrace.podspec +1 -1
- package/scripts/Android.js +27 -10
- package/scripts/Config.js +1 -1
- package/scripts/Ios.js +288 -71
- package/scripts/PathsConstants.js +34 -20
- package/scripts/core/InstrumentCall.js +7 -1
- package/scripts/util/SourceMapUtil.js +49 -11
- package/types.d.ts +178 -39
package/types.d.ts
CHANGED
|
@@ -516,6 +516,24 @@ declare enum LogLevel {
|
|
|
516
516
|
Info = 1
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
+
/**
|
|
520
|
+
* Interface which is containing the additional properties available for instrumentation.
|
|
521
|
+
*/
|
|
522
|
+
interface IDynatraceProperties {
|
|
523
|
+
/**
|
|
524
|
+
* This string is changing the name of the action. So it is possible to override the action naming.
|
|
525
|
+
*/
|
|
526
|
+
dtActionName?: string;
|
|
527
|
+
/**
|
|
528
|
+
* If true is passed the auto instrumentation will skip the action creation. We allow both string
|
|
529
|
+
* and boolean.
|
|
530
|
+
*/
|
|
531
|
+
dtActionIgnore?: boolean | 'true' | 'false';
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
type ActionNamePreference = 'any' | 'text' | 'icon';
|
|
535
|
+
type ActionNameAlgorithm = 'depth-first' | 'breadth-first';
|
|
536
|
+
|
|
519
537
|
/**
|
|
520
538
|
* Configuration interface for Dynatrace agent startup.
|
|
521
539
|
* Use this interface when configuring the agent programmatically instead of using auto-startup.
|
|
@@ -588,6 +606,26 @@ interface IConfiguration {
|
|
|
588
606
|
* Defaults to `false` if not specified.
|
|
589
607
|
*/
|
|
590
608
|
readonly actionNamePrivacy: boolean;
|
|
609
|
+
/**
|
|
610
|
+
* Controls which type of child element is preferred when searching the component tree for the
|
|
611
|
+
* name of an `onPress` action.
|
|
612
|
+
*
|
|
613
|
+
* - `'text'`: Prefers text content and falls back to any match.
|
|
614
|
+
* - `'icon'`: Prefers `ReactNative.Image` or custom Icons and falls back to any match.
|
|
615
|
+
* - `'any'`: Accepts the first match regardless of type (text, image, or icon).
|
|
616
|
+
*
|
|
617
|
+
* Defaults to `'any'` if not specified.
|
|
618
|
+
*/
|
|
619
|
+
readonly actionNamePreference: ActionNamePreference;
|
|
620
|
+
/**
|
|
621
|
+
* Controls the traversal algorithm used when searching the component tree for the name of an `onPress` action.
|
|
622
|
+
*
|
|
623
|
+
* - `'depth-first'`: Follows the first child branch fully before trying siblings.
|
|
624
|
+
* - `'breadth-first'`: Visits all siblings at a level before going deeper, returning the shallowest match first.
|
|
625
|
+
*
|
|
626
|
+
* Defaults to `'depth-first'` if not specified.
|
|
627
|
+
*/
|
|
628
|
+
readonly actionNameAlgorithm: ActionNameAlgorithm;
|
|
591
629
|
/**
|
|
592
630
|
* The bundle name used as a prefix for internal action IDs. Optional.
|
|
593
631
|
*/
|
|
@@ -651,6 +689,12 @@ interface IEventModifier {
|
|
|
651
689
|
*/
|
|
652
690
|
type EventProperty = string | number | boolean;
|
|
653
691
|
|
|
692
|
+
type TraceparentHeader = `${string}-${string}-${string}-${string}`;
|
|
693
|
+
interface TraceContext {
|
|
694
|
+
traceparent: TraceparentHeader;
|
|
695
|
+
tracestate: string;
|
|
696
|
+
}
|
|
697
|
+
|
|
654
698
|
/**
|
|
655
699
|
* Base interface for all events.
|
|
656
700
|
*/
|
|
@@ -800,7 +844,7 @@ interface IHttpRequestEventData extends IBaseEvent {
|
|
|
800
844
|
*
|
|
801
845
|
* @see https://docs.dynatrace.com/docs/shortlink/react-native-web-request-performance#manual-http-request-reporting
|
|
802
846
|
*/
|
|
803
|
-
withTraceparentHeader(traceparentHeader: TraceparentHeader): this;
|
|
847
|
+
withTraceparentHeader(traceparentHeader: TraceparentHeader | undefined): this;
|
|
804
848
|
/**
|
|
805
849
|
* Adds a custom event property to the request event.
|
|
806
850
|
* @param key The property key. See property requirements below.
|
|
@@ -832,7 +876,6 @@ interface IHttpRequestEventData extends IBaseEvent {
|
|
|
832
876
|
addEventProperty(key: `event_properties.${string}`, value: EventProperty): this;
|
|
833
877
|
}
|
|
834
878
|
|
|
835
|
-
type TraceparentHeader = `00-${string}-${string}-0${'0' | '1'}`;
|
|
836
879
|
type AllowedRequestMethods = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH' | 'get' | 'head' | 'post' | 'put' | 'delete' | 'connect' | 'options' | 'trace' | 'patch';
|
|
837
880
|
type Url = `http://${string}` | `https://${string}`;
|
|
838
881
|
type EventPropertyKey = `event_properties.${string}`;
|
|
@@ -875,9 +918,10 @@ declare class HttpRequestEventData implements IHttpRequestEventData {
|
|
|
875
918
|
withError(error: Error): this;
|
|
876
919
|
withBytesSent(bytesSent: number): this;
|
|
877
920
|
withBytesReceived(bytesReceived: number): this;
|
|
878
|
-
withTraceparentHeader(traceparentHeader: TraceparentHeader): this;
|
|
921
|
+
withTraceparentHeader(traceparentHeader: TraceparentHeader | undefined): this;
|
|
879
922
|
addEventProperty(key: EventPropertyKey, value: EventProperty): this;
|
|
880
923
|
toJSON(): JSONObject | null;
|
|
924
|
+
private getTraceContextHint;
|
|
881
925
|
private hasValidMandatoryAttributes;
|
|
882
926
|
private isInvalidUrl;
|
|
883
927
|
private sanitizeStatusCode;
|
|
@@ -885,8 +929,6 @@ declare class HttpRequestEventData implements IHttpRequestEventData {
|
|
|
885
929
|
private sanitizeBytesSent;
|
|
886
930
|
private sanitizeBytesReceived;
|
|
887
931
|
private isStatusCodeError;
|
|
888
|
-
private parseTraceparent;
|
|
889
|
-
private allZeros;
|
|
890
932
|
}
|
|
891
933
|
|
|
892
934
|
/**
|
|
@@ -1220,26 +1262,92 @@ interface IDynatrace$1 {
|
|
|
1220
1262
|
/**
|
|
1221
1263
|
* Sends an HTTP request event for network activity monitoring.
|
|
1222
1264
|
*
|
|
1223
|
-
* @param {HttpRequestEventData} httpRequestEvent Event object containing the HTTP request details
|
|
1265
|
+
* @param {HttpRequestEventData} httpRequestEvent Event object containing the HTTP request details.
|
|
1266
|
+
*
|
|
1267
|
+
* The {@link HttpRequestEventData} class supports the following builder methods:
|
|
1268
|
+
* - `withDuration(duration)` — Override the request duration in milliseconds.
|
|
1269
|
+
* - `withStatusCode(statusCode)` — Set the HTTP response status code.
|
|
1270
|
+
* - `withReasonPhrase(reasonPhrase)` — Set the HTTP response reason phrase.
|
|
1271
|
+
* - `withError(error)` — Attach an `Error` object for failed requests.
|
|
1272
|
+
* - `withBytesSent(bytesSent)` — Set the number of bytes sent in the request body.
|
|
1273
|
+
* - `withBytesReceived(bytesReceived)` — Set the number of bytes received in the response body.
|
|
1274
|
+
* - `withTraceparentHeader(traceparentHeader)` — Attach a W3C traceparent header for distributed tracing.
|
|
1275
|
+
* - `addEventProperty(key, value)` — Add a custom event property (key must start with `event_properties.`).
|
|
1224
1276
|
*
|
|
1225
1277
|
* @example
|
|
1226
1278
|
* ```ts
|
|
1227
1279
|
* import { Dynatrace, HttpRequestEventData } from '@dynatrace/react-native-plugin';
|
|
1228
1280
|
*
|
|
1229
|
-
*
|
|
1230
|
-
* const
|
|
1231
|
-
*
|
|
1281
|
+
* const traceContext = Dynatrace.generateTraceContext();
|
|
1282
|
+
* const body = JSON.stringify({ query: 'search term' });
|
|
1283
|
+
*
|
|
1284
|
+
* try {
|
|
1285
|
+
* const response = await fetch('https://api.example.com/data', {
|
|
1286
|
+
* method: 'POST',
|
|
1287
|
+
* headers: { 'Content-Type': 'application/json', ...traceContext },
|
|
1288
|
+
* body,
|
|
1289
|
+
* });
|
|
1290
|
+
*
|
|
1291
|
+
* const responseBody = await response.text();
|
|
1232
1292
|
*
|
|
1233
|
-
*
|
|
1234
|
-
*
|
|
1235
|
-
*
|
|
1236
|
-
*
|
|
1237
|
-
*
|
|
1293
|
+
* const requestEvent = new HttpRequestEventData('https://api.example.com/data', 'POST')
|
|
1294
|
+
* .withStatusCode(response.status)
|
|
1295
|
+
* .withReasonPhrase(response.statusText)
|
|
1296
|
+
* .withDuration(340)
|
|
1297
|
+
* .withBytesSent(new Blob([body]).size)
|
|
1298
|
+
* .withBytesReceived(new Blob([responseBody]).size)
|
|
1299
|
+
* .withTraceparentHeader(traceContext?.traceparent)
|
|
1300
|
+
* .addEventProperty('event_properties.endpoint', '/data')
|
|
1301
|
+
* .addEventProperty('event_properties.payload_type', 'json');
|
|
1302
|
+
*
|
|
1303
|
+
* Dynatrace.sendHttpRequestEvent(requestEvent);
|
|
1304
|
+
* } catch (error) {
|
|
1305
|
+
* const requestEvent = new HttpRequestEventData('https://api.example.com/data', 'POST')
|
|
1306
|
+
* .withError(error instanceof Error ? error : new Error(String(error)))
|
|
1307
|
+
* .withTraceparentHeader(traceContext?.traceparent)
|
|
1308
|
+
* .addEventProperty('event_properties.endpoint', '/data')
|
|
1309
|
+
* .addEventProperty('event_properties.payload_type', 'json');
|
|
1310
|
+
*
|
|
1311
|
+
* Dynatrace.sendHttpRequestEvent(requestEvent);
|
|
1312
|
+
* }
|
|
1238
1313
|
* ```
|
|
1239
1314
|
*
|
|
1240
1315
|
* @see https://docs.dynatrace.com/docs/shortlink/react-native-web-request-performance#manual-http-request-reporting
|
|
1241
1316
|
*/
|
|
1242
1317
|
sendHttpRequestEvent(httpRequestEvent: HttpRequestEventData): void;
|
|
1318
|
+
/**
|
|
1319
|
+
* Generates a W3C trace context for distributed tracing.
|
|
1320
|
+
*
|
|
1321
|
+
* Creates a {@link TraceContext} containing traceparent and tracestate headers
|
|
1322
|
+
* for distributed tracing. If existing headers are provided, they will be
|
|
1323
|
+
* reused according to the W3C Trace Context specification.
|
|
1324
|
+
*
|
|
1325
|
+
* @param traceparent Optional existing W3C traceparent header value.
|
|
1326
|
+
* @param tracestate Optional existing W3C tracestate header value.
|
|
1327
|
+
* @returns A {@link TraceContext} with traceparent and tracestate values, or `undefined` if:
|
|
1328
|
+
* - The agent is not started
|
|
1329
|
+
* - The agent configuration is not yet available
|
|
1330
|
+
*
|
|
1331
|
+
* @example
|
|
1332
|
+
* ```ts
|
|
1333
|
+
* import { Dynatrace } from '@dynatrace/react-native-plugin';
|
|
1334
|
+
*
|
|
1335
|
+
* // Generate new trace context
|
|
1336
|
+
* const traceContext = Dynatrace.generateTraceContext();
|
|
1337
|
+
*
|
|
1338
|
+
* const response = await fetch('https://api.example.com/data', {
|
|
1339
|
+
* headers: {
|
|
1340
|
+
* ...traceContext,
|
|
1341
|
+
* },
|
|
1342
|
+
* });
|
|
1343
|
+
*
|
|
1344
|
+
* // Or reuse existing trace context from an incoming request
|
|
1345
|
+
* // const existingTraceparent = req.headers['traceparent'];
|
|
1346
|
+
* // const existingTracestate = req.headers['tracestate'];
|
|
1347
|
+
* // const traceContext = Dynatrace.generateTraceContext(existingTraceparent, existingTracestate);
|
|
1348
|
+
* ```
|
|
1349
|
+
*/
|
|
1350
|
+
generateTraceContext(traceparent?: TraceparentHeader, tracestate?: string): TraceContext | undefined;
|
|
1243
1351
|
}
|
|
1244
1352
|
|
|
1245
1353
|
/**
|
|
@@ -1706,6 +1814,8 @@ declare class ManualStartupConfiguration implements IConfiguration {
|
|
|
1706
1814
|
readonly logLevel: LogLevel;
|
|
1707
1815
|
readonly lifecycleUpdate: boolean;
|
|
1708
1816
|
readonly actionNamePrivacy: boolean;
|
|
1817
|
+
readonly actionNamePreference: ActionNamePreference;
|
|
1818
|
+
readonly actionNameAlgorithm: ActionNameAlgorithm;
|
|
1709
1819
|
readonly bundleName?: string;
|
|
1710
1820
|
readonly errorHandler: boolean;
|
|
1711
1821
|
readonly reportFatalErrorAsCrash: boolean;
|
|
@@ -1727,7 +1837,7 @@ declare class ManualStartupConfiguration implements IConfiguration {
|
|
|
1727
1837
|
*
|
|
1728
1838
|
* @deprecated Use ConfigurationBuilder and IConfiguration instead
|
|
1729
1839
|
*/
|
|
1730
|
-
constructor(beaconUrl: string, applicationId: string, reportCrash?: boolean, logLevel?: LogLevel, lifecycleUpdate?: boolean, userOptIn?: boolean, actionNamePrivacy?: boolean, bundleName?: string, bundleVersion?: string);
|
|
1840
|
+
constructor(beaconUrl: string, applicationId: string, reportCrash?: boolean, logLevel?: LogLevel, lifecycleUpdate?: boolean, userOptIn?: boolean, actionNamePrivacy?: boolean, actionNamePreference?: ActionNamePreference, actionNameAlgorithm?: ActionNameAlgorithm, bundleName?: string, bundleVersion?: string);
|
|
1731
1841
|
toString(): string;
|
|
1732
1842
|
}
|
|
1733
1843
|
|
|
@@ -1744,6 +1854,8 @@ declare class ConfigurationBuilder {
|
|
|
1744
1854
|
private lifecycleUpdate;
|
|
1745
1855
|
private userOptIn;
|
|
1746
1856
|
private actionNamePrivacy;
|
|
1857
|
+
private actionNamePreference;
|
|
1858
|
+
private actionNameAlgorithm;
|
|
1747
1859
|
private bundleName;
|
|
1748
1860
|
private bundleVersion;
|
|
1749
1861
|
private autoStartup;
|
|
@@ -1781,7 +1893,7 @@ declare class ConfigurationBuilder {
|
|
|
1781
1893
|
*
|
|
1782
1894
|
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#plugin-startup
|
|
1783
1895
|
*/
|
|
1784
|
-
withCrashReporting(reportCrash: boolean):
|
|
1896
|
+
withCrashReporting(reportCrash: boolean): this;
|
|
1785
1897
|
/**
|
|
1786
1898
|
* Configures the React Native error handler. Defaults to `true`.
|
|
1787
1899
|
*
|
|
@@ -1799,7 +1911,7 @@ declare class ConfigurationBuilder {
|
|
|
1799
1911
|
*
|
|
1800
1912
|
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#plugin-startup
|
|
1801
1913
|
*/
|
|
1802
|
-
withErrorHandler(errorHandler: boolean):
|
|
1914
|
+
withErrorHandler(errorHandler: boolean): this;
|
|
1803
1915
|
/**
|
|
1804
1916
|
* Configures how fatal errors are reported. Defaults to `true`.
|
|
1805
1917
|
*
|
|
@@ -1818,7 +1930,7 @@ declare class ConfigurationBuilder {
|
|
|
1818
1930
|
*
|
|
1819
1931
|
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#plugin-startup
|
|
1820
1932
|
*/
|
|
1821
|
-
withReportFatalErrorAsCrash(reportFatalErrorAsCrash: boolean):
|
|
1933
|
+
withReportFatalErrorAsCrash(reportFatalErrorAsCrash: boolean): this;
|
|
1822
1934
|
/**
|
|
1823
1935
|
* Configures the log level for the Dynatrace plugin. Defaults to `LogLevel.Info`.
|
|
1824
1936
|
*
|
|
@@ -1837,7 +1949,7 @@ declare class ConfigurationBuilder {
|
|
|
1837
1949
|
*
|
|
1838
1950
|
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#plugin-startup
|
|
1839
1951
|
*/
|
|
1840
|
-
withLogLevel(logLevel: LogLevel):
|
|
1952
|
+
withLogLevel(logLevel: LogLevel): this;
|
|
1841
1953
|
/**
|
|
1842
1954
|
* Configures tracking of component update cycles in lifecycle actions. Defaults to `false`.
|
|
1843
1955
|
*
|
|
@@ -1856,7 +1968,7 @@ declare class ConfigurationBuilder {
|
|
|
1856
1968
|
*
|
|
1857
1969
|
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#plugin-startup
|
|
1858
1970
|
*/
|
|
1859
|
-
withLifecycleUpdate(lifecycleUpdate: boolean):
|
|
1971
|
+
withLifecycleUpdate(lifecycleUpdate: boolean): this;
|
|
1860
1972
|
/**
|
|
1861
1973
|
* Configures privacy mode and user opt-in. Defaults to `false`.
|
|
1862
1974
|
*
|
|
@@ -1875,7 +1987,7 @@ declare class ConfigurationBuilder {
|
|
|
1875
1987
|
*
|
|
1876
1988
|
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#plugin-startup
|
|
1877
1989
|
*/
|
|
1878
|
-
withUserOptIn(userOptIn: boolean):
|
|
1990
|
+
withUserOptIn(userOptIn: boolean): this;
|
|
1879
1991
|
/**
|
|
1880
1992
|
* Configures action name privacy for Touchables and Buttons. Defaults to `false`.
|
|
1881
1993
|
*
|
|
@@ -1895,7 +2007,49 @@ declare class ConfigurationBuilder {
|
|
|
1895
2007
|
*
|
|
1896
2008
|
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#plugin-startup
|
|
1897
2009
|
*/
|
|
1898
|
-
withActionNamePrivacy(actionNamePrivacy: boolean):
|
|
2010
|
+
withActionNamePrivacy(actionNamePrivacy: boolean): this;
|
|
2011
|
+
/**
|
|
2012
|
+
* Configures the preferred child element type for resolving `onPress` action names. Defaults to `'any'`.
|
|
2013
|
+
*
|
|
2014
|
+
* @param {ActionNamePreference} actionNamePreference The preferred child element type.
|
|
2015
|
+
* - `'text'`: Prefers text content and falls back to any match.
|
|
2016
|
+
* - `'icon'`: Prefers `ReactNative.Image` or custom Icons and falls back to any match.
|
|
2017
|
+
* - `'any'`: Accepts the first match regardless of type (text, image, or icon).
|
|
2018
|
+
* @returns {ConfigurationBuilder} The builder instance for method chaining
|
|
2019
|
+
*
|
|
2020
|
+
* @example
|
|
2021
|
+
* ```ts
|
|
2022
|
+
* import { ConfigurationBuilder, Dynatrace } from '@dynatrace/react-native-plugin';
|
|
2023
|
+
*
|
|
2024
|
+
* const config = new ConfigurationBuilder('beaconUrl', 'applicationId')
|
|
2025
|
+
* .withActionNamePreference('text'); // Prioritize text labels for action names
|
|
2026
|
+
* await Dynatrace.start(config.buildConfiguration());
|
|
2027
|
+
* ```
|
|
2028
|
+
*
|
|
2029
|
+
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#how-does-dynatrace-determine-the-user-action-name
|
|
2030
|
+
*/
|
|
2031
|
+
withActionNamePreference(actionNamePreference: ActionNamePreference): this;
|
|
2032
|
+
/**
|
|
2033
|
+
* Configures the traversal algorithm for searching the component tree for `onPress` action names.
|
|
2034
|
+
* Defaults to `'depth-first'`.
|
|
2035
|
+
*
|
|
2036
|
+
* @param {ActionNameAlgorithm} actionNameAlgorithm The traversal algorithm to use.
|
|
2037
|
+
* - `'depth-first'`: Follows the first child branch fully before trying siblings.
|
|
2038
|
+
* - `'breadth-first'`: Visits all siblings at a level before going deeper, returning the shallowest match first.
|
|
2039
|
+
* @returns {ConfigurationBuilder} The builder instance for method chaining
|
|
2040
|
+
*
|
|
2041
|
+
* @example
|
|
2042
|
+
* ```ts
|
|
2043
|
+
* import { ConfigurationBuilder, Dynatrace } from '@dynatrace/react-native-plugin';
|
|
2044
|
+
*
|
|
2045
|
+
* const config = new ConfigurationBuilder('beaconUrl', 'applicationId')
|
|
2046
|
+
* .withActionNameAlgorithm('breadth-first'); // Prioritize shallowest matches in the component tree
|
|
2047
|
+
* await Dynatrace.start(config.buildConfiguration());
|
|
2048
|
+
* ```
|
|
2049
|
+
*
|
|
2050
|
+
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#how-does-dynatrace-determine-the-user-action-name
|
|
2051
|
+
*/
|
|
2052
|
+
withActionNameAlgorithm(actionNameAlgorithm: ActionNameAlgorithm): this;
|
|
1899
2053
|
/**
|
|
1900
2054
|
* Configures the bundle name used as a prefix for internal action IDs.
|
|
1901
2055
|
*
|
|
@@ -1913,7 +2067,7 @@ declare class ConfigurationBuilder {
|
|
|
1913
2067
|
*
|
|
1914
2068
|
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#plugin-startup
|
|
1915
2069
|
*/
|
|
1916
|
-
withBundleName(bundleName: string):
|
|
2070
|
+
withBundleName(bundleName: string): this;
|
|
1917
2071
|
/**
|
|
1918
2072
|
* Configures the bundle version for events. This is mandatory for proper crash reporting.
|
|
1919
2073
|
*
|
|
@@ -1932,7 +2086,7 @@ declare class ConfigurationBuilder {
|
|
|
1932
2086
|
*
|
|
1933
2087
|
* @see https://www.npmjs.com/package/@dynatrace/react-native-plugin#plugin-startup
|
|
1934
2088
|
*/
|
|
1935
|
-
withBundleVersion(bundleVersion: string):
|
|
2089
|
+
withBundleVersion(bundleVersion: string): this;
|
|
1936
2090
|
/**
|
|
1937
2091
|
* Builds the configuration object for Dynatrace agent startup.
|
|
1938
2092
|
*
|
|
@@ -2192,21 +2346,6 @@ declare class DynatraceWebRequestTiming implements IDynatraceWebRequestTiming {
|
|
|
2192
2346
|
getRequestTagHeader(): string;
|
|
2193
2347
|
}
|
|
2194
2348
|
|
|
2195
|
-
/**
|
|
2196
|
-
* Interface which is containing the additional properties available for instrumentation.
|
|
2197
|
-
*/
|
|
2198
|
-
interface IDynatraceProperties {
|
|
2199
|
-
/**
|
|
2200
|
-
* This string is changing the name of the action. So it is possible to override the action naming.
|
|
2201
|
-
*/
|
|
2202
|
-
dtActionName?: string;
|
|
2203
|
-
/**
|
|
2204
|
-
* If true is passed the auto instrumentation will skip the action creation. We allow both string
|
|
2205
|
-
* and boolean.
|
|
2206
|
-
*/
|
|
2207
|
-
dtActionIgnore?: boolean | 'true' | 'false';
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
2349
|
declare module 'react' {
|
|
2211
2350
|
namespace JSX {
|
|
2212
2351
|
interface IntrinsicAttributes extends IDynatraceProperties {
|