@jaak.ai/stamps 2.2.0-dev.6 → 2.2.0-dev.9
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/dist/cjs/jaak-stamps.cjs.entry.js +592 -3098
- package/dist/cjs/jaak-stamps.cjs.entry.js.map +1 -1
- package/dist/cjs/jaak-stamps.entry.cjs.js.map +1 -1
- package/dist/collection/components/my-component/my-component.js +17 -4
- package/dist/collection/components/my-component/my-component.js.map +1 -1
- package/dist/collection/services/LicenseValidationService.js +2 -2
- package/dist/collection/services/LicenseValidationService.js.map +1 -1
- package/dist/collection/services/TracingService.js +130 -78
- package/dist/collection/services/TracingService.js.map +1 -1
- package/dist/collection/services/interfaces/ITracingService.js.map +1 -1
- package/dist/components/jaak-stamps.js +592 -3098
- package/dist/components/jaak-stamps.js.map +1 -1
- package/dist/esm/jaak-stamps.entry.js +592 -3098
- package/dist/esm/jaak-stamps.entry.js.map +1 -1
- package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js +1 -1
- package/dist/jaak-stamps-webcomponent/jaak-stamps.entry.esm.js.map +1 -1
- package/dist/jaak-stamps-webcomponent/p-dfecb452.entry.js +7 -0
- package/dist/jaak-stamps-webcomponent/p-dfecb452.entry.js.map +1 -0
- package/dist/types/services/TracingService.d.ts +6 -1
- package/dist/types/services/interfaces/ITracingService.d.ts +5 -0
- package/package.json +1 -1
- package/dist/jaak-stamps-webcomponent/p-8c49893d.entry.js +0 -7
- package/dist/jaak-stamps-webcomponent/p-8c49893d.entry.js.map +0 -1
|
@@ -22,7 +22,6 @@ export declare class TracingService implements ITracingService {
|
|
|
22
22
|
private readonly customerId?;
|
|
23
23
|
private readonly tenantId?;
|
|
24
24
|
private readonly environment?;
|
|
25
|
-
private readonly propagateTraceHeaderCorsUrls;
|
|
26
25
|
private readonly enableAutoInstrumentation;
|
|
27
26
|
private spanProcessor;
|
|
28
27
|
private parser;
|
|
@@ -55,6 +54,12 @@ export declare class TracingService implements ITracingService {
|
|
|
55
54
|
recordException(span: Span, error: Error): void;
|
|
56
55
|
setSpanAttribute(span: Span, key: string, value: any): void;
|
|
57
56
|
trace<T>(name: string, fn: () => T | Promise<T>, attributes?: Record<string, any>): Promise<T>;
|
|
57
|
+
traceAsync<T>(name: string, fn: () => Promise<T>, attributes?: Record<string, any>): Promise<T>;
|
|
58
|
+
/**
|
|
59
|
+
* Flush all pending spans to the collector
|
|
60
|
+
* Call this when capture/process is complete to send all traces
|
|
61
|
+
*/
|
|
62
|
+
flush(): Promise<void>;
|
|
58
63
|
cleanup(): Promise<void>;
|
|
59
64
|
/**
|
|
60
65
|
* Get the current trace ID (useful for logging correlation)
|
|
@@ -43,6 +43,11 @@ export interface ITracingService {
|
|
|
43
43
|
* @param attributes - Optional attributes
|
|
44
44
|
*/
|
|
45
45
|
trace<T>(name: string, fn: () => T | Promise<T>, attributes?: Record<string, any>): Promise<T>;
|
|
46
|
+
/**
|
|
47
|
+
* Flushes all pending spans to the collector
|
|
48
|
+
* Call this when capture/process is complete
|
|
49
|
+
*/
|
|
50
|
+
flush(): Promise<void>;
|
|
46
51
|
/**
|
|
47
52
|
* Cleans up resources
|
|
48
53
|
*/
|