@tracewayapp/core 1.0.0 → 1.0.2
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/README.md +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install @tracewayapp/core
|
|
|
13
13
|
| Type | Description |
|
|
14
14
|
|------|-------------|
|
|
15
15
|
| `ExceptionStackTrace` | Exception/message record matching the Traceway protocol |
|
|
16
|
-
| `MetricRecord` | Metric data point (`name`, `value`, `recordedAt`) |
|
|
16
|
+
| `MetricRecord` | Metric data point (`name`, `value`, `recordedAt`, optional `tags`) |
|
|
17
17
|
| `Span` | Sub-operation span within a trace |
|
|
18
18
|
| `Trace` | Endpoint or task trace |
|
|
19
19
|
| `CollectionFrame` | Batch of stack traces, metrics, and traces |
|
package/dist/index.d.mts
CHANGED
|
@@ -6,11 +6,13 @@ interface ExceptionStackTrace {
|
|
|
6
6
|
attributes?: Record<string, string>;
|
|
7
7
|
isMessage: boolean;
|
|
8
8
|
sessionRecordingId?: string | null;
|
|
9
|
+
distributedTraceId?: string | null;
|
|
9
10
|
}
|
|
10
11
|
interface MetricRecord {
|
|
11
12
|
name: string;
|
|
12
13
|
value: number;
|
|
13
14
|
recordedAt: string;
|
|
15
|
+
tags?: Record<string, string>;
|
|
14
16
|
}
|
|
15
17
|
interface Span {
|
|
16
18
|
id: string;
|
|
@@ -29,6 +31,7 @@ interface Trace {
|
|
|
29
31
|
attributes?: Record<string, string>;
|
|
30
32
|
spans?: Span[];
|
|
31
33
|
isTask?: boolean;
|
|
34
|
+
distributedTraceId?: string;
|
|
32
35
|
}
|
|
33
36
|
interface CollectionFrame {
|
|
34
37
|
stackTraces: ExceptionStackTrace[];
|
package/dist/index.d.ts
CHANGED
|
@@ -6,11 +6,13 @@ interface ExceptionStackTrace {
|
|
|
6
6
|
attributes?: Record<string, string>;
|
|
7
7
|
isMessage: boolean;
|
|
8
8
|
sessionRecordingId?: string | null;
|
|
9
|
+
distributedTraceId?: string | null;
|
|
9
10
|
}
|
|
10
11
|
interface MetricRecord {
|
|
11
12
|
name: string;
|
|
12
13
|
value: number;
|
|
13
14
|
recordedAt: string;
|
|
15
|
+
tags?: Record<string, string>;
|
|
14
16
|
}
|
|
15
17
|
interface Span {
|
|
16
18
|
id: string;
|
|
@@ -29,6 +31,7 @@ interface Trace {
|
|
|
29
31
|
attributes?: Record<string, string>;
|
|
30
32
|
spans?: Span[];
|
|
31
33
|
isTask?: boolean;
|
|
34
|
+
distributedTraceId?: string;
|
|
32
35
|
}
|
|
33
36
|
interface CollectionFrame {
|
|
34
37
|
stackTraces: ExceptionStackTrace[];
|