@hawk.so/types 0.6.4 → 0.6.5

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/build/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './src/base/event/breadcrumb';
7
7
  export * from './src/base/event/event';
8
8
  export * from './src/base/event/sourceCodeLine';
9
9
  export * from './src/base/event/taskManagerItem';
10
+ export * from './src/base/event/trace';
10
11
  export * from './src/base/event/addons';
11
12
  export * from './src/base/integrations/integrationToken';
12
13
  export * from './src/base/project/ProjectTaskManager';
package/build/index.js CHANGED
@@ -23,6 +23,7 @@ __exportStar(require("./src/base/event/breadcrumb"), exports);
23
23
  __exportStar(require("./src/base/event/event"), exports);
24
24
  __exportStar(require("./src/base/event/sourceCodeLine"), exports);
25
25
  __exportStar(require("./src/base/event/taskManagerItem"), exports);
26
+ __exportStar(require("./src/base/event/trace"), exports);
26
27
  __exportStar(require("./src/base/event/addons"), exports);
27
28
  __exportStar(require("./src/base/integrations/integrationToken"), exports);
28
29
  __exportStar(require("./src/base/project/ProjectTaskManager"), exports);
@@ -3,6 +3,7 @@ import type { AffectedUser } from './affectedUser.ts';
3
3
  import type { EventAddons } from './addons/index.ts';
4
4
  import type { Json } from '../../utils/index.ts';
5
5
  import type { Breadcrumb } from './breadcrumb.ts';
6
+ import type { EventTrace } from './trace.ts';
6
7
  /**
7
8
  * Information about event (Payload of the event)
8
9
  * That object will be sent as 'payload' from the Collector to the workers
@@ -45,6 +46,10 @@ export interface EventData<Addons extends EventAddons> {
45
46
  * Catcher version
46
47
  */
47
48
  catcherVersion?: string;
49
+ /**
50
+ * Distributed trace metadata for linking related events within the same execution chain.
51
+ */
52
+ trace?: EventTrace;
48
53
  }
49
54
  /**
50
55
  * Event data with decoded unsafe fields
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Distributed trace metadata attached to error and performance events.
3
+ */
4
+ export interface EventTrace {
5
+ /**
6
+ * Shared identifier for events from the same execution chain.
7
+ */
8
+ id: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Trace metadata attached to error events for linking related frontend/backend occurrences.
3
+ */
4
+ export interface TraceContext {
5
+ /**
6
+ * Shared identifier for events from the same execution chain.
7
+ */
8
+ traceId: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/index.ts CHANGED
@@ -10,6 +10,7 @@ export * from './src/base/event/breadcrumb';
10
10
  export * from './src/base/event/event';
11
11
  export * from './src/base/event/sourceCodeLine';
12
12
  export * from './src/base/event/taskManagerItem';
13
+ export * from './src/base/event/trace';
13
14
  export * from './src/base/event/addons';
14
15
 
15
16
  export * from './src/base/integrations/integrationToken';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawk.so/types",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "TypeScript definitions for Hawk",
5
5
  "types": "build/index.d.ts",
6
6
  "main": "build/index.js",
@@ -3,6 +3,7 @@ import type { AffectedUser } from './affectedUser.ts';
3
3
  import type { EventAddons } from './addons/index.ts';
4
4
  import type { Json } from '../../utils/index.ts';
5
5
  import type { Breadcrumb } from './breadcrumb.ts';
6
+ import type { EventTrace } from './trace.ts';
6
7
 
7
8
  /**
8
9
  * Information about event (Payload of the event)
@@ -54,6 +55,11 @@ export interface EventData<Addons extends EventAddons> {
54
55
  * Catcher version
55
56
  */
56
57
  catcherVersion?: string;
58
+
59
+ /**
60
+ * Distributed trace metadata for linking related events within the same execution chain.
61
+ */
62
+ trace?: EventTrace;
57
63
  }
58
64
 
59
65
  /**
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Distributed trace metadata attached to error and performance events.
3
+ */
4
+ export interface EventTrace {
5
+ /**
6
+ * Shared identifier for events from the same execution chain.
7
+ */
8
+ id: string;
9
+ }