@noego/telemetry 0.0.5 → 0.1.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/README.md +6 -0
- package/dist/browser/index.d.cts +6 -5
- package/dist/browser/index.d.ts +6 -5
- package/dist/{browser_telemetry_client-BSAMZ8Qb.d.cts → browser_telemetry_client-ClZl3awO.d.cts} +2 -2
- package/dist/{browser_telemetry_client-DPBU6NGw.d.ts → browser_telemetry_client-t4dPp8Ku.d.ts} +2 -2
- package/dist/cli/telemetry_bin.cjs +393 -35
- package/dist/cli/telemetry_bin.cjs.map +1 -1
- package/dist/cli/telemetry_bin.js +378 -20
- package/dist/cli/telemetry_bin.js.map +1 -1
- package/dist/cli/telemetry_cli.cjs +393 -35
- package/dist/cli/telemetry_cli.cjs.map +1 -1
- package/dist/cli/telemetry_cli.d.cts +35 -5
- package/dist/cli/telemetry_cli.d.ts +35 -5
- package/dist/cli/telemetry_cli.js +378 -20
- package/dist/cli/telemetry_cli.js.map +1 -1
- package/dist/{client_defaults-ShVYQYmn.d.ts → client_defaults-CZ8PysZX.d.ts} +2 -2
- package/dist/{client_defaults-Dk0MMzvx.d.cts → client_defaults-lDbWYWWK.d.cts} +2 -2
- package/dist/core/index.cjs +5 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +15 -12
- package/dist/core/index.d.ts +15 -12
- package/dist/core/index.js +5 -1
- package/dist/core/index.js.map +1 -1
- package/dist/electron/index.d.cts +5 -4
- package/dist/electron/index.d.ts +5 -4
- package/dist/{envelope.types-rOLpWXRC.d.cts → envelope.types-DIvZD3xH.d.ts} +2 -6
- package/dist/{envelope.types-rOLpWXRC.d.ts → envelope.types-DyrlRG49.d.cts} +2 -6
- package/dist/{in_memory_batch_transport-DKW9EZnU.d.cts → in_memory_batch_transport-3T6gElXP.d.cts} +1 -1
- package/dist/{in_memory_batch_transport-oOwNxXnA.d.ts → in_memory_batch_transport-DpQU6JqM.d.ts} +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -12
- package/dist/index.d.ts +14 -12
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/json.types-BqS77fcN.d.cts +7 -0
- package/dist/json.types-BqS77fcN.d.ts +7 -0
- package/dist/{maintenance_coordinator.types-C4ULi4A4.d.cts → maintenance_coordinator.types-Crhx9i9k.d.cts} +3 -3
- package/dist/{maintenance_coordinator.types-ikUrRXmO.d.ts → maintenance_coordinator.types-DprmgpVn.d.ts} +3 -3
- package/dist/metric.types-D8aOAnUm.d.ts +67 -0
- package/dist/metric.types-Dg4eZq6u.d.cts +67 -0
- package/dist/{metric_definition_contract-BYtnODhu.d.ts → metric_definition_contract-C6MERhJs.d.ts} +1 -1
- package/dist/{metric_definition_contract-DfhhmTZ1.d.cts → metric_definition_contract-DoAk7NOw.d.cts} +1 -1
- package/dist/node/index.cjs +5 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +11 -9
- package/dist/node/index.d.ts +11 -9
- package/dist/node/index.js +5 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/producer/index.d.cts +5 -4
- package/dist/node/producer/index.d.ts +5 -4
- package/dist/projector/index.cjs +1370 -0
- package/dist/projector/index.cjs.map +1 -0
- package/dist/projector/index.d.cts +246 -0
- package/dist/projector/index.d.ts +246 -0
- package/dist/projector/index.js +1328 -0
- package/dist/projector/index.js.map +1 -0
- package/dist/{query.types-DU5v7vM0.d.ts → query.types-CRqAsGTX.d.cts} +4 -66
- package/dist/{query.types-DuYWbFFe.d.cts → query.types-DnOMYXpC.d.ts} +4 -66
- package/dist/sqlite/index.cjs +5 -1
- package/dist/sqlite/index.cjs.map +1 -1
- package/dist/sqlite/index.d.cts +7 -5
- package/dist/sqlite/index.d.ts +7 -5
- package/dist/sqlite/index.js +5 -1
- package/dist/sqlite/index.js.map +1 -1
- package/dist/{storage.types-k7oElEB3.d.ts → storage.types-BKWoIOHp.d.ts} +3 -2
- package/dist/{storage.types-Bji_pWqr.d.cts → storage.types-DHbAm3j_.d.cts} +3 -2
- package/dist/{telemetry_client-BO5Pjp41.d.cts → telemetry_client-Bg5tbj5E.d.cts} +3 -2
- package/dist/{telemetry_client-D8uZ-mTL.d.ts → telemetry_client-DWKgufmc.d.ts} +3 -2
- package/dist/{telemetry_configuration_parser-BZ8Nvnle.d.ts → telemetry_configuration_parser-6BR3_dD_.d.ts} +2 -2
- package/dist/{telemetry_configuration_parser-CgSN7R6A.d.cts → telemetry_configuration_parser-ybeweUPE.d.cts} +2 -2
- package/dist/testing/index.d.cts +7 -5
- package/dist/testing/index.d.ts +7 -5
- package/dist/trace-adapter/index.d.cts +4 -3
- package/dist/trace-adapter/index.d.ts +4 -3
- package/dist/{transport.types-BAl_TRtU.d.cts → transport.types-C2dP-eed.d.cts} +1 -1
- package/dist/{transport.types-DDnZoKWi.d.ts → transport.types-SA8KpLiK.d.ts} +1 -1
- package/native/noego_telemetry_native.node +0 -0
- package/package.json +11 -4
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { R as ResolvedTelemetryConfiguration, S as SqliteTargetConfiguration, T as TimelineQuery,
|
|
1
|
+
import { R as ResolvedTelemetryConfiguration, S as SqliteTargetConfiguration, T as TimelineQuery, a as TimelineQueryResponse, b as TelemetryQueryError, M as MetricQuery, c as MetricQueryResponse } from '../query.types-CRqAsGTX.cjs';
|
|
2
2
|
import { T as TelemetryResult } from '../result.types-171Huujb.cjs';
|
|
3
|
-
import { N as NodeTelemetryConfigurationParser } from '../telemetry_configuration_parser-
|
|
4
|
-
import '../
|
|
5
|
-
import '../
|
|
3
|
+
import { N as NodeTelemetryConfigurationParser } from '../telemetry_configuration_parser-ybeweUPE.cjs';
|
|
4
|
+
import '../metric.types-Dg4eZq6u.cjs';
|
|
5
|
+
import '../json.types-BqS77fcN.cjs';
|
|
6
|
+
import '../envelope.types-DyrlRG49.cjs';
|
|
7
|
+
import '../metric_definition_contract-DoAk7NOw.cjs';
|
|
6
8
|
|
|
7
9
|
type TelemetryCliStructuredFormat = 'table' | 'json' | 'jsonl' | 'csv';
|
|
8
10
|
type TelemetryCliSessionMode = 'query' | 'maintenance';
|
|
@@ -11,6 +13,22 @@ type TelemetryCliMigrationStatus = Readonly<{
|
|
|
11
13
|
completed: readonly string[];
|
|
12
14
|
pending: readonly string[];
|
|
13
15
|
}>;
|
|
16
|
+
type TelemetryCliCompactionResult = Readonly<{
|
|
17
|
+
targetId: string;
|
|
18
|
+
autoVacuum: 'incremental';
|
|
19
|
+
pageSize: number;
|
|
20
|
+
pagesBefore: number;
|
|
21
|
+
pagesAfter: number;
|
|
22
|
+
freePagesBefore: number;
|
|
23
|
+
freePagesAfter: number;
|
|
24
|
+
reclaimedPages: number;
|
|
25
|
+
databaseBytesBefore: number;
|
|
26
|
+
databaseBytesAfter: number;
|
|
27
|
+
walBytesBefore: number;
|
|
28
|
+
walBytesAfter: number;
|
|
29
|
+
reclaimedBytes: number;
|
|
30
|
+
elapsedMs: number;
|
|
31
|
+
}>;
|
|
14
32
|
type TelemetryCliDiagnosticResult = Readonly<{
|
|
15
33
|
columns: readonly string[];
|
|
16
34
|
rows: readonly Readonly<Record<string, unknown>>[];
|
|
@@ -27,6 +45,7 @@ interface TelemetryCliSession {
|
|
|
27
45
|
}>): Promise<TelemetryCliDiagnosticResult>;
|
|
28
46
|
migrationStatus(): Promise<TelemetryCliMigrationStatus>;
|
|
29
47
|
migrateUp(): Promise<TelemetryCliMigrationStatus>;
|
|
48
|
+
compact(): Promise<TelemetryCliCompactionResult>;
|
|
30
49
|
close(): Promise<void>;
|
|
31
50
|
}
|
|
32
51
|
type TelemetryCliSessionFactory = (configuration: ResolvedTelemetryConfiguration, target: SqliteTargetConfiguration, mode: TelemetryCliSessionMode) => Promise<TelemetryCliSession>;
|
|
@@ -55,12 +74,23 @@ declare class TelemetryCli {
|
|
|
55
74
|
run(argv: readonly string[]): Promise<number>;
|
|
56
75
|
shutdown(): Promise<void>;
|
|
57
76
|
private execute;
|
|
77
|
+
/**
|
|
78
|
+
* Which store answers a metric command. `history` is the projector's
|
|
79
|
+
* pre-aggregated buckets (history.db, current whenever the app runs with
|
|
80
|
+
* ingest-time extraction off); `legacy` is the collector's own rollups in
|
|
81
|
+
* telemetry.db. `auto` prefers history.db when it exists beside the target —
|
|
82
|
+
* since ingestion moved to the projector the legacy rollups stopped
|
|
83
|
+
* advancing, so answering from them silently reports stale gaps.
|
|
84
|
+
*/
|
|
85
|
+
private metricSource;
|
|
86
|
+
private executeHistoryMetrics;
|
|
58
87
|
private executeCommand;
|
|
59
88
|
private timelineQuery;
|
|
60
89
|
private metricQuery;
|
|
61
90
|
private metricGraph;
|
|
62
91
|
private sqliteQuery;
|
|
63
92
|
private sqliteMigration;
|
|
93
|
+
private sqliteCompact;
|
|
64
94
|
private metricQueryInput;
|
|
65
95
|
private resolveTarget;
|
|
66
96
|
private sessionMode;
|
|
@@ -89,4 +119,4 @@ declare class TelemetryCli {
|
|
|
89
119
|
}
|
|
90
120
|
declare function runTelemetryCli(argv: readonly string[], options?: TelemetryCliOptions): Promise<number>;
|
|
91
121
|
|
|
92
|
-
export { TelemetryCli, type TelemetryCliDiagnosticResult, type TelemetryCliMigrationStatus, type TelemetryCliOptions, type TelemetryCliSession, type TelemetryCliSessionFactory, type TelemetryCliSessionMode, type TelemetryCliStructuredFormat, runTelemetryCli };
|
|
122
|
+
export { TelemetryCli, type TelemetryCliCompactionResult, type TelemetryCliDiagnosticResult, type TelemetryCliMigrationStatus, type TelemetryCliOptions, type TelemetryCliSession, type TelemetryCliSessionFactory, type TelemetryCliSessionMode, type TelemetryCliStructuredFormat, runTelemetryCli };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { R as ResolvedTelemetryConfiguration, S as SqliteTargetConfiguration, T as TimelineQuery,
|
|
1
|
+
import { R as ResolvedTelemetryConfiguration, S as SqliteTargetConfiguration, T as TimelineQuery, a as TimelineQueryResponse, b as TelemetryQueryError, M as MetricQuery, c as MetricQueryResponse } from '../query.types-DnOMYXpC.js';
|
|
2
2
|
import { T as TelemetryResult } from '../result.types-171Huujb.js';
|
|
3
|
-
import { N as NodeTelemetryConfigurationParser } from '../telemetry_configuration_parser-
|
|
4
|
-
import '../
|
|
5
|
-
import '../
|
|
3
|
+
import { N as NodeTelemetryConfigurationParser } from '../telemetry_configuration_parser-6BR3_dD_.js';
|
|
4
|
+
import '../metric.types-D8aOAnUm.js';
|
|
5
|
+
import '../json.types-BqS77fcN.js';
|
|
6
|
+
import '../envelope.types-DIvZD3xH.js';
|
|
7
|
+
import '../metric_definition_contract-C6MERhJs.js';
|
|
6
8
|
|
|
7
9
|
type TelemetryCliStructuredFormat = 'table' | 'json' | 'jsonl' | 'csv';
|
|
8
10
|
type TelemetryCliSessionMode = 'query' | 'maintenance';
|
|
@@ -11,6 +13,22 @@ type TelemetryCliMigrationStatus = Readonly<{
|
|
|
11
13
|
completed: readonly string[];
|
|
12
14
|
pending: readonly string[];
|
|
13
15
|
}>;
|
|
16
|
+
type TelemetryCliCompactionResult = Readonly<{
|
|
17
|
+
targetId: string;
|
|
18
|
+
autoVacuum: 'incremental';
|
|
19
|
+
pageSize: number;
|
|
20
|
+
pagesBefore: number;
|
|
21
|
+
pagesAfter: number;
|
|
22
|
+
freePagesBefore: number;
|
|
23
|
+
freePagesAfter: number;
|
|
24
|
+
reclaimedPages: number;
|
|
25
|
+
databaseBytesBefore: number;
|
|
26
|
+
databaseBytesAfter: number;
|
|
27
|
+
walBytesBefore: number;
|
|
28
|
+
walBytesAfter: number;
|
|
29
|
+
reclaimedBytes: number;
|
|
30
|
+
elapsedMs: number;
|
|
31
|
+
}>;
|
|
14
32
|
type TelemetryCliDiagnosticResult = Readonly<{
|
|
15
33
|
columns: readonly string[];
|
|
16
34
|
rows: readonly Readonly<Record<string, unknown>>[];
|
|
@@ -27,6 +45,7 @@ interface TelemetryCliSession {
|
|
|
27
45
|
}>): Promise<TelemetryCliDiagnosticResult>;
|
|
28
46
|
migrationStatus(): Promise<TelemetryCliMigrationStatus>;
|
|
29
47
|
migrateUp(): Promise<TelemetryCliMigrationStatus>;
|
|
48
|
+
compact(): Promise<TelemetryCliCompactionResult>;
|
|
30
49
|
close(): Promise<void>;
|
|
31
50
|
}
|
|
32
51
|
type TelemetryCliSessionFactory = (configuration: ResolvedTelemetryConfiguration, target: SqliteTargetConfiguration, mode: TelemetryCliSessionMode) => Promise<TelemetryCliSession>;
|
|
@@ -55,12 +74,23 @@ declare class TelemetryCli {
|
|
|
55
74
|
run(argv: readonly string[]): Promise<number>;
|
|
56
75
|
shutdown(): Promise<void>;
|
|
57
76
|
private execute;
|
|
77
|
+
/**
|
|
78
|
+
* Which store answers a metric command. `history` is the projector's
|
|
79
|
+
* pre-aggregated buckets (history.db, current whenever the app runs with
|
|
80
|
+
* ingest-time extraction off); `legacy` is the collector's own rollups in
|
|
81
|
+
* telemetry.db. `auto` prefers history.db when it exists beside the target —
|
|
82
|
+
* since ingestion moved to the projector the legacy rollups stopped
|
|
83
|
+
* advancing, so answering from them silently reports stale gaps.
|
|
84
|
+
*/
|
|
85
|
+
private metricSource;
|
|
86
|
+
private executeHistoryMetrics;
|
|
58
87
|
private executeCommand;
|
|
59
88
|
private timelineQuery;
|
|
60
89
|
private metricQuery;
|
|
61
90
|
private metricGraph;
|
|
62
91
|
private sqliteQuery;
|
|
63
92
|
private sqliteMigration;
|
|
93
|
+
private sqliteCompact;
|
|
64
94
|
private metricQueryInput;
|
|
65
95
|
private resolveTarget;
|
|
66
96
|
private sessionMode;
|
|
@@ -89,4 +119,4 @@ declare class TelemetryCli {
|
|
|
89
119
|
}
|
|
90
120
|
declare function runTelemetryCli(argv: readonly string[], options?: TelemetryCliOptions): Promise<number>;
|
|
91
121
|
|
|
92
|
-
export { TelemetryCli, type TelemetryCliDiagnosticResult, type TelemetryCliMigrationStatus, type TelemetryCliOptions, type TelemetryCliSession, type TelemetryCliSessionFactory, type TelemetryCliSessionMode, type TelemetryCliStructuredFormat, runTelemetryCli };
|
|
122
|
+
export { TelemetryCli, type TelemetryCliCompactionResult, type TelemetryCliDiagnosticResult, type TelemetryCliMigrationStatus, type TelemetryCliOptions, type TelemetryCliSession, type TelemetryCliSessionFactory, type TelemetryCliSessionMode, type TelemetryCliStructuredFormat, runTelemetryCli };
|