@datadog/mobile-react-native 1.0.0-rc4 → 1.0.0-rc5

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 (77) hide show
  1. package/DatadogSDKReactNative.podspec +1 -1
  2. package/README.md +4 -2
  3. package/android/build.gradle +1 -1
  4. package/lib/commonjs/DdSdkReactNative.js +15 -0
  5. package/lib/commonjs/DdSdkReactNative.js.map +1 -1
  6. package/lib/commonjs/DdSdkReactNativeConfiguration.js +5 -1
  7. package/lib/commonjs/DdSdkReactNativeConfiguration.js.map +1 -1
  8. package/lib/commonjs/InternalLog.js +51 -0
  9. package/lib/commonjs/InternalLog.js.map +1 -0
  10. package/lib/commonjs/SdkVerbosity.js +26 -0
  11. package/lib/commonjs/SdkVerbosity.js.map +1 -0
  12. package/lib/commonjs/foundation.js +91 -16
  13. package/lib/commonjs/foundation.js.map +1 -1
  14. package/lib/commonjs/index.js +14 -6
  15. package/lib/commonjs/index.js.map +1 -1
  16. package/lib/commonjs/rum/instrumentation/DdEventsInterceptor.js +6 -2
  17. package/lib/commonjs/rum/instrumentation/DdEventsInterceptor.js.map +1 -1
  18. package/lib/commonjs/rum/instrumentation/DdRumErrorTracking.js +29 -14
  19. package/lib/commonjs/rum/instrumentation/DdRumErrorTracking.js.map +1 -1
  20. package/lib/commonjs/rum/instrumentation/DdRumResourceTracking.js +9 -1
  21. package/lib/commonjs/rum/instrumentation/DdRumResourceTracking.js.map +1 -1
  22. package/lib/commonjs/rum/instrumentation/DdRumUserInteractionTracking.js +16 -4
  23. package/lib/commonjs/rum/instrumentation/DdRumUserInteractionTracking.js.map +1 -1
  24. package/lib/commonjs/rum/instrumentation/DdRumXhr.js +4 -0
  25. package/lib/commonjs/rum/instrumentation/NoOpEventsInterceptor.js +1 -1
  26. package/lib/commonjs/rum/instrumentation/NoOpEventsInterceptor.js.map +1 -1
  27. package/lib/commonjs/version.js +1 -1
  28. package/lib/commonjs/version.js.map +1 -1
  29. package/lib/module/DdSdkReactNative.js +8 -0
  30. package/lib/module/DdSdkReactNative.js.map +1 -1
  31. package/lib/module/DdSdkReactNativeConfiguration.js +5 -1
  32. package/lib/module/DdSdkReactNativeConfiguration.js.map +1 -1
  33. package/lib/module/InternalLog.js +46 -0
  34. package/lib/module/InternalLog.js.map +1 -0
  35. package/lib/module/SdkVerbosity.js +18 -0
  36. package/lib/module/SdkVerbosity.js.map +1 -0
  37. package/lib/module/foundation.js +58 -15
  38. package/lib/module/foundation.js.map +1 -1
  39. package/lib/module/index.js +2 -1
  40. package/lib/module/index.js.map +1 -1
  41. package/lib/module/rum/instrumentation/DdEventsInterceptor.js +5 -1
  42. package/lib/module/rum/instrumentation/DdEventsInterceptor.js.map +1 -1
  43. package/lib/module/rum/instrumentation/DdRumErrorTracking.js +25 -14
  44. package/lib/module/rum/instrumentation/DdRumErrorTracking.js.map +1 -1
  45. package/lib/module/rum/instrumentation/DdRumResourceTracking.js +4 -0
  46. package/lib/module/rum/instrumentation/DdRumResourceTracking.js.map +1 -1
  47. package/lib/module/rum/instrumentation/DdRumUserInteractionTracking.js +12 -4
  48. package/lib/module/rum/instrumentation/DdRumUserInteractionTracking.js.map +1 -1
  49. package/lib/module/rum/instrumentation/DdRumXhr.js +1 -1
  50. package/lib/module/rum/instrumentation/NoOpEventsInterceptor.js +1 -1
  51. package/lib/module/rum/instrumentation/NoOpEventsInterceptor.js.map +1 -1
  52. package/lib/module/version.js +1 -1
  53. package/lib/module/version.js.map +1 -1
  54. package/lib/typescript/DdSdkReactNativeConfiguration.d.ts +2 -2
  55. package/lib/typescript/InternalLog.d.ts +6 -0
  56. package/lib/typescript/SdkVerbosity.d.ts +9 -0
  57. package/lib/typescript/index.d.ts +2 -1
  58. package/lib/typescript/version.d.ts +1 -1
  59. package/package.json +2 -2
  60. package/src/DdSdkReactNative.tsx +18 -10
  61. package/src/DdSdkReactNativeConfiguration.tsx +3 -3
  62. package/src/InternalLog.tsx +48 -0
  63. package/src/{NativeSdkVerbosity.tsx → SdkVerbosity.tsx} +2 -2
  64. package/src/__tests__/DdSdkReactNative.test.tsx +3 -3
  65. package/src/__tests__/InternalLog.test.tsx +382 -0
  66. package/src/__tests__/rum/instrumentation/DdRumErrorTracking.test.tsx +21 -0
  67. package/src/foundation.tsx +77 -61
  68. package/src/index.tsx +2 -1
  69. package/src/rum/instrumentation/DdRumErrorTracking.tsx +20 -13
  70. package/src/rum/instrumentation/DdRumResourceTracking.tsx +6 -2
  71. package/src/rum/instrumentation/DdRumUserInteractionTracking.tsx +4 -0
  72. package/src/version.ts +1 -1
  73. package/lib/commonjs/NativeSdkVerbosity.js +0 -26
  74. package/lib/commonjs/NativeSdkVerbosity.js.map +0 -1
  75. package/lib/module/NativeSdkVerbosity.js +0 -18
  76. package/lib/module/NativeSdkVerbosity.js.map +0 -1
  77. package/lib/typescript/NativeSdkVerbosity.d.ts +0 -9
@@ -6,85 +6,101 @@
6
6
 
7
7
  import { NativeModules } from 'react-native';
8
8
  import { DdSdkConfiguration, DdSdkType, DdLogsType, DdTraceType, DdRumType } from './types';
9
+ import {InternalLog} from "./InternalLog"
10
+ import {SdkVerbosity} from "./SdkVerbosity";
9
11
 
10
12
  class DdLogsWrapper implements DdLogsType {
11
13
 
12
- private nativeLogs: DdLogsType = NativeModules.DdLogs;
14
+ private nativeLogs: DdLogsType = NativeModules.DdLogs;
13
15
 
14
- debug(message: string, context: object = {}): Promise<void> {
15
- return this.nativeLogs.debug(message, context);
16
- }
16
+ debug(message: string, context: object = {}): Promise<void> {
17
+ InternalLog.log("Tracking debug log “" + message + "”", SdkVerbosity.DEBUG);
18
+ return this.nativeLogs.debug(message, context);
19
+ }
17
20
 
18
- info(message: string, context: object = {}): Promise<void> {
19
- return this.nativeLogs.info(message, context);
20
- }
21
+ info(message: string, context: object = {}): Promise<void> {
22
+ InternalLog.log("Tracking info log “" + message + "”", SdkVerbosity.DEBUG);
23
+ return this.nativeLogs.info(message, context);
24
+ }
21
25
 
22
- warn(message: string, context: object = {}): Promise<void> {
23
- return this.nativeLogs.warn(message, context);
24
- }
26
+ warn(message: string, context: object = {}): Promise<void> {
27
+ InternalLog.log("Tracking warn log “" + message + "”", SdkVerbosity.DEBUG);
28
+ return this.nativeLogs.warn(message, context);
29
+ }
25
30
 
26
- error(message: string, context: object = {}): Promise<void> {
27
- return this.nativeLogs.error(message, context);
28
- }
31
+ error(message: string, context: object = {}): Promise<void> {
32
+ InternalLog.log("Tracking error log “" + message + "”", SdkVerbosity.DEBUG);
33
+ return this.nativeLogs.error(message, context);
34
+ }
29
35
 
30
36
  }
31
37
 
32
38
  class DdTraceWrapper implements DdTraceType {
33
39
 
34
- private nativeTrace: DdTraceType = NativeModules.DdTrace;
40
+ private nativeTrace: DdTraceType = NativeModules.DdTrace;
35
41
 
36
- startSpan(operation: string, context: object = {}, timestampMs: number = Date.now()): Promise<string> {
37
- return this.nativeTrace.startSpan(operation, context, timestampMs);
38
- }
39
-
40
- finishSpan(spanId: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
41
- return this.nativeTrace.finishSpan(spanId, context, timestampMs);
42
- }
42
+ startSpan(operation: string, context: object = {}, timestampMs: number = Date.now()): Promise<string> {
43
+ let spanId = this.nativeTrace.startSpan(operation, context, timestampMs);
44
+ InternalLog.log("Starting span “" + operation + "” #" + spanId, SdkVerbosity.DEBUG);
45
+ return spanId
46
+ }
43
47
 
48
+ finishSpan(spanId: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
49
+ InternalLog.log("Finishing span #" + spanId, SdkVerbosity.DEBUG);
50
+ return this.nativeTrace.finishSpan(spanId, context, timestampMs);
51
+ }
44
52
  }
45
53
 
46
54
  class DdRumWrapper implements DdRumType {
47
55
 
48
- private nativeRum: DdRumType = NativeModules.DdRum;
49
-
50
- startView(key: string, name: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
51
- return this.nativeRum.startView(key, name, context, timestampMs);
52
- }
53
-
54
- stopView(key: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
55
- return this.nativeRum.stopView(key, context, timestampMs);
56
- }
57
-
58
- startAction(type: string, name: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
59
- return this.nativeRum.startAction(type, name, context, timestampMs);
60
- }
61
-
62
- stopAction(context: object = {}, timestampMs: number = Date.now()): Promise<void> {
63
- return this.nativeRum.stopAction(context, timestampMs);
64
- }
65
-
66
- addAction(type: string, name: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
67
- return this.nativeRum.addAction(type, name, context, timestampMs);
68
- }
69
-
70
- startResource(key: string, method: string, url: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
71
- return this.nativeRum.startResource(key, method, url, context, timestampMs);
72
- }
73
-
74
- stopResource(key: string, statusCode: number, kind: string, size: number = -1, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
75
- return this.nativeRum.stopResource(key, statusCode, kind, size, context, timestampMs);
76
- }
77
-
78
- addError(message: string, source: string, stacktrace: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
79
- let updatedContext: any = context;
80
- updatedContext["_dd.error.source_type"] = "react-native";
81
- return this.nativeRum.addError(message, source, stacktrace, updatedContext, timestampMs);
82
- }
83
-
84
- addTiming(name: string): Promise<void> {
85
- return this.nativeRum.addTiming(name);
86
- }
87
-
56
+ private nativeRum: DdRumType = NativeModules.DdRum;
57
+
58
+ startView(key: string, name: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
59
+ InternalLog.log("Starting RUM View “" + name + "” #" + key, SdkVerbosity.DEBUG);
60
+ return this.nativeRum.startView(key, name, context, timestampMs);
61
+ }
62
+
63
+ stopView(key: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
64
+ InternalLog.log("Stopping RUM View #" + key, SdkVerbosity.DEBUG);
65
+ return this.nativeRum.stopView(key, context, timestampMs);
66
+ }
67
+
68
+ startAction(type: string, name: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
69
+ InternalLog.log("Starting RUM Action “" + name + "” (" + type + ")", SdkVerbosity.DEBUG);
70
+ return this.nativeRum.startAction(type, name, context, timestampMs);
71
+ }
72
+
73
+ stopAction(context: object = {}, timestampMs: number = Date.now()): Promise<void> {
74
+ InternalLog.log("Stopping current RUM Action", SdkVerbosity.DEBUG);
75
+ return this.nativeRum.stopAction(context, timestampMs);
76
+ }
77
+
78
+ addAction(type: string, name: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
79
+ InternalLog.log("Adding RUM Action “" + name + "” (" + type + ")", SdkVerbosity.DEBUG);
80
+ return this.nativeRum.addAction(type, name, context, timestampMs);
81
+ }
82
+
83
+ startResource(key: string, method: string, url: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
84
+ InternalLog.log("Starting RUM Resource #" + key + " " + method + ": " + url, SdkVerbosity.DEBUG);
85
+ return this.nativeRum.startResource(key, method, url, context, timestampMs);
86
+ }
87
+
88
+ stopResource(key: string, statusCode: number, kind: string, size: number = -1, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
89
+ InternalLog.log("Stopping RUM Resource #" + key + " status:" + statusCode, SdkVerbosity.DEBUG);
90
+ return this.nativeRum.stopResource(key, statusCode, kind, size, context, timestampMs);
91
+ }
92
+
93
+ addError(message: string, source: string, stacktrace: string, context: object = {}, timestampMs: number = Date.now()): Promise<void> {
94
+ InternalLog.log("Adding RUM Error “" + message + "”", SdkVerbosity.DEBUG);
95
+ let updatedContext: any = context;
96
+ updatedContext["_dd.error.source_type"] = "react-native";
97
+ return this.nativeRum.addError(message, source, stacktrace, updatedContext, timestampMs);
98
+ }
99
+
100
+ addTiming(name: string): Promise<void> {
101
+ InternalLog.log("Adding timing “" + name + "” to RUM View", SdkVerbosity.DEBUG);
102
+ return this.nativeRum.addTiming(name);
103
+ }
88
104
  }
89
105
 
90
106
  const DdSdk: DdSdkType = NativeModules.DdSdk;
package/src/index.tsx CHANGED
@@ -10,5 +10,6 @@ import { DdSdkReactNativeConfiguration } from './DdSdkReactNativeConfiguration';
10
10
  import { DdSdkReactNative } from './DdSdkReactNative';
11
11
  import { ProxyConfiguration, ProxyType } from './ProxyConfiguration';
12
12
  import { TrackingConsent } from './TrackingConsent';
13
+ import { SdkVerbosity } from './SdkVerbosity'
13
14
 
14
- export { DdLogs, DdTrace, DdRum, DdSdkReactNativeConfiguration, DdSdkReactNative, ProxyConfiguration, ProxyType, TrackingConsent };
15
+ export { DdLogs, DdTrace, DdRum, DdSdkReactNativeConfiguration, DdSdkReactNative, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity };
@@ -6,6 +6,8 @@
6
6
 
7
7
  import type { ErrorHandlerCallback } from 'react-native';
8
8
  import { DdRum } from '../../foundation';
9
+ import {InternalLog} from "../../InternalLog";
10
+ import {SdkVerbosity} from "../../SdkVerbosity";
9
11
 
10
12
 
11
13
  const EMPTY_MESSAGE = "Unknown Error"
@@ -22,10 +24,10 @@ export class DdRumErrorTracking {
22
24
 
23
25
  private static isInDefaultErrorHandler = false;
24
26
 
25
- // eslint-disable-next-line
27
+ // eslint-disable-next-line
26
28
  private static defaultErrorHandler: ErrorHandlerCallback = (_error: any, _isFatal?: boolean) => { }
27
29
 
28
- // eslint-disable-next-line
30
+ // eslint-disable-next-line
29
31
  private static defaultConsoleError = (..._params: unknown[]) => { }
30
32
 
31
33
  /**
@@ -34,7 +36,7 @@ export class DdRumErrorTracking {
34
36
  static startTracking(): void {
35
37
  // extra safety to avoid wrapping the Error handler twice
36
38
  if (DdRumErrorTracking.isTracking) {
37
- console.log("DdRumErrorTracking already started");
39
+ InternalLog.log("Datadog SDK is already tracking errors", SdkVerbosity.WARN);
38
40
  return
39
41
  }
40
42
 
@@ -47,6 +49,9 @@ export class DdRumErrorTracking {
47
49
  console.error = DdRumErrorTracking.onConsoleError;
48
50
 
49
51
  DdRumErrorTracking.isTracking = true;
52
+ InternalLog.log("Datadog SDK is tracking errors", SdkVerbosity.INFO);
53
+ } else {
54
+ InternalLog.log("Datadog SDK cannot track errors, ErrorUtils is not defined", SdkVerbosity.ERROR);
50
55
  }
51
56
 
52
57
  }
@@ -86,7 +91,7 @@ export class DdRumErrorTracking {
86
91
  }
87
92
  }
88
93
 
89
- const message = params.map((param) => {
94
+ const message = params.map((param) => {
90
95
  if (typeof param === 'string') { return param; }
91
96
  else { return DdRumErrorTracking.getErrorMessage(param); }
92
97
  }).join(' ');
@@ -106,7 +111,7 @@ export class DdRumErrorTracking {
106
111
  let message = EMPTY_MESSAGE;
107
112
  if (error == undefined) {
108
113
  message = EMPTY_MESSAGE;
109
- } else if ("message" in error){
114
+ } else if (typeof error == 'object' && "message" in error){
110
115
  message = String(error.message);
111
116
  } else {
112
117
  message = String(error);
@@ -122,14 +127,16 @@ export class DdRumErrorTracking {
122
127
  stack = EMPTY_STACK_TRACE;
123
128
  } else if (typeof error === 'string') {
124
129
  stack = EMPTY_STACK_TRACE;
125
- } else if ('componentStack' in error) {
126
- stack = String(error.componentStack);
127
- } else if ('stacktrace' in error) {
128
- stack = String(error.stacktrace);
129
- } else if ('stack' in error) {
130
- stack = String(error.stack);
131
- } else if (('sourceURL' in error) && ('line' in error) && ('column' in error)) {
132
- stack = `at ${error.sourceURL}:${error.line}:${error.column}`;
130
+ } else if (typeof error === 'object') {
131
+ if ('componentStack' in error) {
132
+ stack = String(error.componentStack);
133
+ } else if ('stacktrace' in error) {
134
+ stack = String(error.stacktrace);
135
+ } else if ('stack' in error) {
136
+ stack = String(error.stack);
137
+ } else if (('sourceURL' in error) && ('line' in error) && ('column' in error)) {
138
+ stack = `at ${error.sourceURL}:${error.line}:${error.column}`;
139
+ }
133
140
  }
134
141
 
135
142
  return stack
@@ -8,7 +8,9 @@ import { Platform } from 'react-native';
8
8
  import { DdRum } from '../../foundation'
9
9
  import Timer from '../../Timer';
10
10
  import type { DdRumXhr } from './DdRumXhr'
11
- import { generateTraceId } from './TraceIdentifier';
11
+ import { generateTraceId } from './TraceIdentifier'
12
+ import {InternalLog} from "../../InternalLog"
13
+ import {SdkVerbosity} from "../../SdkVerbosity"
12
14
 
13
15
  export const TRACE_ID_HEADER_KEY = "x-datadog-trace-id"
14
16
  export const PARENT_ID_HEADER_KEY = "x-datadog-parent-id"
@@ -162,13 +164,15 @@ export class DdRumResourceTracking {
162
164
  static startTrackingInternal(xhrType: any): void {
163
165
  // extra safety to avoid proxying the XHR class twice
164
166
  if (DdRumResourceTracking.isTracking) {
167
+ InternalLog.log("Datadog SDK is already tracking XHR resources", SdkVerbosity.WARN);
165
168
  return
166
169
  }
167
170
 
168
171
  DdRumResourceTracking.originalXhrOpen = xhrType.prototype.open;
169
172
  DdRumResourceTracking.originalXhrSend = xhrType.prototype.send;
170
173
 
171
- DdRumResourceTracking.proxyXhr(xhrType)
174
+ DdRumResourceTracking.proxyXhr(xhrType);
175
+ InternalLog.log("Datadog SDK is tracking XHR resources", SdkVerbosity.INFO);
172
176
  }
173
177
 
174
178
 
@@ -8,6 +8,8 @@ import React from 'react'
8
8
  import { DdEventsInterceptor } from './DdEventsInterceptor'
9
9
  import NoOpEventsInterceptor from './NoOpEventsInterceptor'
10
10
  import type EventsInterceptor from './EventsInterceptor'
11
+ import {InternalLog} from "../../InternalLog"
12
+ import {SdkVerbosity} from "../../SdkVerbosity"
11
13
 
12
14
 
13
15
  const PROPERTY_FUNCTION_TYPE = "function"
@@ -29,6 +31,7 @@ export class DdRumUserInteractionTracking {
29
31
  static startTracking(): void {
30
32
  // extra safety to avoid wrapping more than 1 time this function
31
33
  if (DdRumUserInteractionTracking.isTracking) {
34
+ InternalLog.log("Datadog SDK is already tracking interactions", SdkVerbosity.WARN);
32
35
  return
33
36
  }
34
37
  DdRumUserInteractionTracking.eventsInterceptor = new DdEventsInterceptor()
@@ -45,6 +48,7 @@ export class DdRumUserInteractionTracking {
45
48
  return original(element, props, ...children)
46
49
  }
47
50
  DdRumUserInteractionTracking.isTracking = true
51
+ InternalLog.log("Datadog SDK is tracking interactions", SdkVerbosity.INFO);
48
52
  }
49
53
 
50
54
  }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '1.0.0-rc4';
2
+ export const version = '1.0.0-rc5';
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.NativeSdkVerbosity = void 0;
7
-
8
- /*
9
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
10
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
11
- * Copyright 2016-Present Datadog, Inc.
12
- */
13
-
14
- /**
15
- * Enum specifying possible consent options for DD SDK.
16
- */
17
- let NativeSdkVerbosity;
18
- exports.NativeSdkVerbosity = NativeSdkVerbosity;
19
-
20
- (function (NativeSdkVerbosity) {
21
- NativeSdkVerbosity["DEBUG"] = "debug";
22
- NativeSdkVerbosity["INFO"] = "info";
23
- NativeSdkVerbosity["WARN"] = "warn";
24
- NativeSdkVerbosity["ERROR"] = "error";
25
- })(NativeSdkVerbosity || (exports.NativeSdkVerbosity = NativeSdkVerbosity = {}));
26
- //# sourceMappingURL=NativeSdkVerbosity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["NativeSdkVerbosity.tsx"],"names":["NativeSdkVerbosity"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;IACYA,kB;;;WAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;GAAAA,kB,kCAAAA,kB","sourcesContent":["/*\n * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2016-Present Datadog, Inc.\n */\n\n/**\n * Enum specifying possible consent options for DD SDK.\n */\nexport enum NativeSdkVerbosity {\n DEBUG = \"debug\",\n INFO = \"info\",\n WARN = \"warn\",\n ERROR = \"error\"\n}\n"]}
@@ -1,18 +0,0 @@
1
- /*
2
- * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
3
- * This product includes software developed at Datadog (https://www.datadoghq.com/).
4
- * Copyright 2016-Present Datadog, Inc.
5
- */
6
-
7
- /**
8
- * Enum specifying possible consent options for DD SDK.
9
- */
10
- export let NativeSdkVerbosity;
11
-
12
- (function (NativeSdkVerbosity) {
13
- NativeSdkVerbosity["DEBUG"] = "debug";
14
- NativeSdkVerbosity["INFO"] = "info";
15
- NativeSdkVerbosity["WARN"] = "warn";
16
- NativeSdkVerbosity["ERROR"] = "error";
17
- })(NativeSdkVerbosity || (NativeSdkVerbosity = {}));
18
- //# sourceMappingURL=NativeSdkVerbosity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["NativeSdkVerbosity.tsx"],"names":["NativeSdkVerbosity"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAYA,kBAAZ;;WAAYA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;AAAAA,EAAAA,kB;GAAAA,kB,KAAAA,kB","sourcesContent":["/*\n * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2016-Present Datadog, Inc.\n */\n\n/**\n * Enum specifying possible consent options for DD SDK.\n */\nexport enum NativeSdkVerbosity {\n DEBUG = \"debug\",\n INFO = \"info\",\n WARN = \"warn\",\n ERROR = \"error\"\n}\n"]}
@@ -1,9 +0,0 @@
1
- /**
2
- * Enum specifying possible consent options for DD SDK.
3
- */
4
- export declare enum NativeSdkVerbosity {
5
- DEBUG = "debug",
6
- INFO = "info",
7
- WARN = "warn",
8
- ERROR = "error"
9
- }