@datadog/mobile-react-native-apollo-client
Advanced tools
Comparing version
@@ -45,2 +45,3 @@ import { DdSdkReactNativeConfiguration } from './DdSdkReactNativeConfiguration'; | ||
* Set the user information. | ||
* @deprecated UserInfo id property is now mandatory (please user setUserInfo instead) | ||
* @param user: The user object (use builtin attributes: 'id', 'email', 'name', and/or any custom attribute). | ||
@@ -51,7 +52,21 @@ * @returns a Promise. | ||
/** | ||
* Sets the user information. | ||
* @param id: A mandatory unique user identifier (relevant to your business domain). | ||
* @param name: The user name or alias. | ||
* @param email: The user email. | ||
* @param extraInfo: Additional information. | ||
* @returns a Promise. | ||
*/ | ||
static setUserInfo: (userInfo: { | ||
id: string; | ||
name?: string; | ||
email?: string; | ||
extraInfo?: Record<string, unknown>; | ||
}) => Promise<void>; | ||
/** | ||
* Set the user information. | ||
* @param extraUserInfo: The extra info object (use builtin attributes: 'id', 'email', 'name', and/or any custom attribute). | ||
* @param extraUserInfo: The additional information. (To set the id, name or email please user setUserInfo). | ||
* @returns a Promise. | ||
*/ | ||
static addUserExtraInfo: (extraUserInfo: UserInfo) => Promise<void>; | ||
static addUserExtraInfo: (extraUserInfo: Record<string, unknown>) => Promise<void>; | ||
/** | ||
@@ -58,0 +73,0 @@ * Set the tracking consent regarding the data collection. |
@@ -265,2 +265,9 @@ import type { ProxyConfiguration } from './ProxyConfiguration'; | ||
/** | ||
* The amount of time after a view starts where a Resource should be | ||
* considered when calculating Time to Network-Settled (TNS). TNS will be | ||
* calculated using all resources that start withing the specified threshold, in seconds. | ||
* Defaults to 0.1 seconds. | ||
*/ | ||
initialResourceThreshold?: number; | ||
/** | ||
* Determines whether the SDK should track application termination by the watchdog on iOS. Default: `false`. | ||
@@ -359,2 +366,3 @@ */ | ||
readonly batchProcessingLevel?: BatchProcessingLevel; | ||
readonly initialResourceThreshold?: number; | ||
}; | ||
@@ -361,0 +369,0 @@ export declare const buildConfigurationFromPartialConfiguration: (features: AutoInstrumentationConfiguration, configuration: PartialInitializationConfiguration) => DdSdkReactNativeConfiguration; |
@@ -16,3 +16,2 @@ import type { GestureResponderEvent } from 'react-native'; | ||
private timeProvider; | ||
private currentRumSessionId; | ||
constructor(); | ||
@@ -19,0 +18,0 @@ startView: (key: string, name: string, context?: object, timestampMs?: number) => Promise<void>; |
export type UserInfo = { | ||
readonly id?: string; | ||
readonly id?: string /** @deprecated To be made mandatory when removing DdSdkReactnative.setUser */; | ||
readonly name?: string; | ||
readonly email?: string; | ||
readonly [key: string]: unknown; | ||
readonly extraInfo?: Record<string, unknown>; | ||
readonly [key: string]: unknown /** @deprecated To be removed alongside DdSdkReactnative.setUser */; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -19,2 +19,3 @@ import type { TurboModule } from 'react-native'; | ||
* Set the user information. | ||
* @deprecated: Use setUserInfo instead | ||
* @param user: The user object (use builtin attributes: 'id', 'email', 'name', and/or any custom attribute). | ||
@@ -24,2 +25,12 @@ */ | ||
/** | ||
* Set the user information. | ||
* @param user: The user object (use builtin attributes: 'id', 'email', 'name', and any custom attribute under extraInfo). | ||
*/ | ||
setUserInfo(user: Object): Promise<Object>; | ||
/** | ||
* Add custom attributes to the current user information | ||
* @param extraInfo: The extraInfo object containing additionall custom attributes | ||
*/ | ||
addUserExtraInfo(extraInfo: Object): Promise<Object>; | ||
/** | ||
* Set the tracking consent regarding the data collection. | ||
@@ -26,0 +37,0 @@ * @param trackingConsent: Consent, which can take one of the following values: 'pending', 'granted', 'not_granted'. |
@@ -54,5 +54,6 @@ import type { BatchProcessingLevel } from './DdSdkReactNativeConfiguration'; | ||
readonly appHangThreshold: number | undefined; | ||
readonly resourceTracingSamplingRate: number | undefined; | ||
readonly resourceTracingSamplingRate: number; | ||
readonly trackWatchdogTerminations: boolean | undefined; | ||
readonly batchProcessingLevel: BatchProcessingLevel; | ||
readonly initialResourceThreshold: number | undefined; | ||
constructor(clientToken: string, env: string, applicationId: string, nativeCrashReportEnabled: boolean, nativeLongTaskThresholdMs: number, longTaskThresholdMs: number, sampleRate: number, site: string, trackingConsent: string, additionalConfiguration: object, telemetrySampleRate: number, vitalsUpdateFrequency: string, uploadFrequency: string, batchSize: string, trackFrustrations: boolean, trackBackgroundEvents: boolean, customEndpoints: { | ||
@@ -78,3 +79,4 @@ rum?: string; | ||
propagatorTypes: string[]; | ||
}[], bundleLogsWithRum: boolean, bundleLogsWithTraces: boolean, trackNonFatalAnrs: boolean | undefined, appHangThreshold: number | undefined, resourceTracingSamplingRate: number | undefined, trackWatchdogTerminations: boolean | undefined, batchProcessingLevel: BatchProcessingLevel); | ||
}[], bundleLogsWithRum: boolean, bundleLogsWithTraces: boolean, trackNonFatalAnrs: boolean | undefined, appHangThreshold: number | undefined, resourceTracingSamplingRate: number, trackWatchdogTerminations: boolean | undefined, batchProcessingLevel: BatchProcessingLevel, // eslint-disable-next-line no-empty-function | ||
initialResourceThreshold: number | undefined); | ||
} | ||
@@ -96,3 +98,4 @@ /** | ||
/** | ||
* Set the user information. | ||
* Sets the user information. | ||
* @deprecated UserInfo id property is now mandatory (please user setUserInfo instead) | ||
* @param user: The user object (use builtin attributes: 'id', 'email', 'name', and/or any custom attribute). | ||
@@ -102,6 +105,14 @@ */ | ||
/** | ||
* Sets the user information. | ||
* @param id: A unique user identifier (relevant to your business domain) | ||
* @param name: The user name or alias. | ||
* @param email: The user email. | ||
* @param extraInfo: Additional information. | ||
*/ | ||
setUserInfo(userInfo: UserInfo): Promise<void>; | ||
/** | ||
* Add additional user information. | ||
* @param extraUserInfo: The extra info object (use builtin attributes: 'id', 'email', 'name', and/or any custom attribute). | ||
* @param extraUserInfo: The additional information. (To set the id, name or email please user setUserInfo). | ||
*/ | ||
addUserExtraInfo(extraUserInfo: object): Promise<void>; | ||
addUserExtraInfo(extraUserInfo: Record<string, unknown>): Promise<void>; | ||
/** | ||
@@ -113,2 +124,8 @@ * Set the tracking consent regarding the data collection. | ||
}; | ||
export type UserInfo = { | ||
id: string; | ||
name?: string; | ||
email?: string; | ||
extraInfo?: object; | ||
}; | ||
/** | ||
@@ -115,0 +132,0 @@ * The entry point to use Datadog's Trace feature. |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.6.4"; | ||
export declare const version = "2.6.5"; | ||
//# sourceMappingURL=version.d.ts.map |
{ | ||
"name": "@datadog/mobile-react-native-apollo-client", | ||
"version": "2.6.4", | ||
"version": "2.6.5", | ||
"description": "A client-side React Native module to interact with Apollo Client and Datadog", | ||
@@ -81,3 +81,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "8c31bf4d2a3fb6e1f1596b36cd61fa27c41b8576" | ||
"gitHead": "1f3d75abb1851875b133c8e4d6cf7b54e57b0aa3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
213079
2.64%178
2.3%2994
2.99%