@ciridae/telemetry 0.3.2-nightly.20261121074826.g2c44dcf → 0.4.0
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.
|
@@ -20,26 +20,26 @@ export type CiridaeTelemetryConfiguration = {
|
|
|
20
20
|
serviceVersion?: string;
|
|
21
21
|
};
|
|
22
22
|
export type CiridaeTelemetry = {
|
|
23
|
-
initialize(pathname: string)
|
|
24
|
-
isInitialized()
|
|
25
|
-
subscribeToInitialization(subscriber: () => void)
|
|
26
|
-
identify(user: TelemetryUser)
|
|
27
|
-
clearIdentity()
|
|
28
|
-
capture(eventName: string, properties?: Record<string, unknown>)
|
|
29
|
-
getFeatureFlag(key: string)
|
|
30
|
-
getFeatureFlagPayload(key: string)
|
|
31
|
-
subscribeToFeatureFlags(subscriber: () => void)
|
|
32
|
-
reloadFeatureFlags()
|
|
23
|
+
initialize: (pathname: string) => void;
|
|
24
|
+
isInitialized: () => boolean;
|
|
25
|
+
subscribeToInitialization: (subscriber: () => void) => () => void;
|
|
26
|
+
identify: (user: TelemetryUser) => void;
|
|
27
|
+
clearIdentity: () => void;
|
|
28
|
+
capture: (eventName: string, properties?: Record<string, unknown>) => void;
|
|
29
|
+
getFeatureFlag: (key: string) => FeatureFlagValue | undefined;
|
|
30
|
+
getFeatureFlagPayload: (key: string) => unknown;
|
|
31
|
+
subscribeToFeatureFlags: (subscriber: () => void) => () => void;
|
|
32
|
+
reloadFeatureFlags: () => void;
|
|
33
33
|
/** Context must not contain credentials, private payloads, prompts, or raw user-authored text. */
|
|
34
|
-
captureException(error: unknown, context?: Record<string, unknown>)
|
|
34
|
+
captureException: (error: unknown, context?: Record<string, unknown>) => void;
|
|
35
35
|
/** Use a stable step name and non-sensitive context. */
|
|
36
|
-
addExceptionStep(stepName: string, context?: Record<string, unknown>)
|
|
36
|
+
addExceptionStep: (stepName: string, context?: Record<string, unknown>) => void;
|
|
37
37
|
/** Group properties must be stable, non-sensitive analytics dimensions. */
|
|
38
|
-
setGroup(groupType: string, groupId: string, properties?: Record<string, unknown>)
|
|
39
|
-
clearGroups()
|
|
40
|
-
getSessionReplayUrl(options?: SessionReplayUrlOptions)
|
|
41
|
-
startSessionRecording()
|
|
42
|
-
stopSessionRecording()
|
|
43
|
-
isSessionRecording()
|
|
38
|
+
setGroup: (groupType: string, groupId: string, properties?: Record<string, unknown>) => void;
|
|
39
|
+
clearGroups: () => void;
|
|
40
|
+
getSessionReplayUrl: (options?: SessionReplayUrlOptions) => string | null;
|
|
41
|
+
startSessionRecording: () => void;
|
|
42
|
+
stopSessionRecording: () => void;
|
|
43
|
+
isSessionRecording: () => boolean;
|
|
44
44
|
};
|
|
45
45
|
export declare function createCiridaeTelemetry(configuration: CiridaeTelemetryConfiguration): CiridaeTelemetry;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import posthog from "posthog-js";
|
|
1
|
+
import { posthog } from "posthog-js";
|
|
2
2
|
import { filterCapturedEvent, isSensitiveTelemetryPath } from "./filterCapturedEvent.js";
|
|
3
3
|
import { maskSensitiveUrlParameters, SENSITIVE_URL_PARAMETER_NAMES, } from "./maskSensitiveUrlParameters.js";
|
|
4
4
|
import { redactCapturedLog } from "./redactCapturedLog.js";
|