@tracewayapp/core 1.0.0 → 1.0.1

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 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
@@ -11,6 +11,7 @@ interface MetricRecord {
11
11
  name: string;
12
12
  value: number;
13
13
  recordedAt: string;
14
+ tags?: Record<string, string>;
14
15
  }
15
16
  interface Span {
16
17
  id: string;
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ interface MetricRecord {
11
11
  name: string;
12
12
  value: number;
13
13
  recordedAt: string;
14
+ tags?: Record<string, string>;
14
15
  }
15
16
  interface Span {
16
17
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracewayapp/core",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Shared types and utilities for Traceway SDKs",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",