posthog-js-lite 3.2.1 → 3.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.
- package/CHANGELOG.md +13 -2
- package/README.md +2 -2
- package/lib/index.cjs.js +48 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +19 -0
- package/lib/index.esm.js +48 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/posthog-core/src/index.d.ts +19 -0
- package/package.json +1 -1
|
@@ -183,6 +183,25 @@ export declare abstract class PostHogCore extends PostHogCoreStateless {
|
|
|
183
183
|
onFeatureFlags(cb: (flags: PostHogDecideResponse['featureFlags']) => void): () => void;
|
|
184
184
|
onFeatureFlag(key: string, cb: (value: string | boolean) => void): () => void;
|
|
185
185
|
overrideFeatureFlag(flags: PostHogDecideResponse['featureFlags'] | null): Promise<void>;
|
|
186
|
+
/***
|
|
187
|
+
*** ERROR TRACKING
|
|
188
|
+
***/
|
|
189
|
+
captureException(error: Error, additionalProperties?: {
|
|
190
|
+
[key: string]: any;
|
|
191
|
+
}): void;
|
|
192
|
+
/**
|
|
193
|
+
* Capture written user feedback for a LLM trace. Numeric values are converted to strings.
|
|
194
|
+
* @param traceId The trace ID to capture feedback for.
|
|
195
|
+
* @param userFeedback The feedback to capture.
|
|
196
|
+
*/
|
|
197
|
+
captureTraceFeedback(traceId: string | number, userFeedback: string): void;
|
|
198
|
+
/**
|
|
199
|
+
* Capture a metric for a LLM trace. Numeric values are converted to strings.
|
|
200
|
+
* @param traceId The trace ID to capture the metric for.
|
|
201
|
+
* @param metricName The name of the metric to capture.
|
|
202
|
+
* @param metricValue The value of the metric to capture.
|
|
203
|
+
*/
|
|
204
|
+
captureTraceMetric(traceId: string | number, metricName: string, metricValue: string | number | boolean): void;
|
|
186
205
|
}
|
|
187
206
|
export * from './types';
|
|
188
207
|
export { LZString };
|