@datadog/mobile-react-native-navigation 1.0.0-rc7 → 1.0.0-rc8

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.
@@ -31,6 +31,7 @@ export declare class DdSdkReactNativeConfiguration {
31
31
  nativeViewTracking: boolean;
32
32
  proxyConfig?: ProxyConfiguration;
33
33
  serviceName?: string;
34
+ firstPartyHosts: string[];
34
35
  additionalConfig: {
35
36
  [k: string]: any;
36
37
  };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react-native" />
2
+ import type { DdRumResourceTracingAttributes } from './DdRumXhr';
2
3
  export declare const TRACE_ID_HEADER_KEY = "x-datadog-trace-id";
3
4
  export declare const PARENT_ID_HEADER_KEY = "x-datadog-parent-id";
4
5
  export declare const ORIGIN_HEADER_KEY = "x-datadog-origin";
@@ -12,17 +13,25 @@ export declare function calculateResponseSize(xhr: XMLHttpRequest): number;
12
13
  export declare class DdRumResourceTracking {
13
14
  private static isTracking;
14
15
  private static tracingSamplingRate;
16
+ private static firstPartyHostsRegex;
15
17
  private static originalXhrOpen;
16
18
  private static originalXhrSend;
17
19
  /**
18
20
  * Starts tracking resources and sends a RUM Resource event every time a network request is detected.
19
21
  */
20
- static startTracking(tracingSamplingRate: number): void;
22
+ static startTracking({ tracingSamplingRate, firstPartyHosts }: {
23
+ tracingSamplingRate: number;
24
+ firstPartyHosts: string[];
25
+ }): void;
21
26
  /**
22
27
  * Starts tracking resources and sends a RUM Resource event every time a fetch or XHR call is detected.
23
28
  */
24
- static startTrackingInternal(xhrType: typeof XMLHttpRequest, tracingSamplingRate: number): void;
29
+ static startTrackingInternal(xhrType: typeof XMLHttpRequest, { tracingSamplingRate, firstPartyHosts }: {
30
+ tracingSamplingRate: number;
31
+ firstPartyHosts: string[];
32
+ }): void;
25
33
  static stopTracking(): void;
34
+ static getTracingAttributes(url: string): DdRumResourceTracingAttributes;
26
35
  static proxyXhr(xhrType: any): void;
27
36
  private static proxyOpen;
28
37
  private static proxySend;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns the host from an URL.
3
+ * @returns the host (without the port)
4
+ * @throws if URL is not well formatted
5
+ */
6
+ export declare const URLHostParser: (url: string) => string;
@@ -1 +1 @@
1
- export declare const version = "1.0.0-rc7";
1
+ export declare const version = "1.0.0-rc8";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/mobile-react-native-navigation",
3
- "version": "1.0.0-rc7",
3
+ "version": "1.0.0-rc8",
4
4
  "description": "A client-side React Native module to interact with Datadog",
5
5
  "keywords": [
6
6
  "datadog",
@@ -36,7 +36,7 @@
36
36
  "prepare": "bob build"
37
37
  },
38
38
  "devDependencies": {
39
- "@datadog/mobile-react-native": "^1.0.0-rc7",
39
+ "@datadog/mobile-react-native": "^1.0.0-rc8",
40
40
  "react-native-gesture-handler": "1.10.3",
41
41
  "react-native-navigation": "7.13.0"
42
42
  },
@@ -70,5 +70,5 @@
70
70
  ]
71
71
  ]
72
72
  },
73
- "gitHead": "d789622b6a8f0c06885bc43fcc2ec4ca9f750557"
73
+ "gitHead": "67456f90ac95007f8f99beb065ccbf6ec9a6f478"
74
74
  }