@noego/telemetry 0.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 +130 -0
- package/dist/browser/index.cjs +1346 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts +5 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.js +1318 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser_telemetry_client-BzBPQm4m.d.cts +29 -0
- package/dist/browser_telemetry_client-Ch_VzwEa.d.ts +29 -0
- package/dist/cli/telemetry_bin.cjs +5531 -0
- package/dist/cli/telemetry_bin.cjs.map +1 -0
- package/dist/cli/telemetry_bin.d.cts +1 -0
- package/dist/cli/telemetry_bin.d.ts +1 -0
- package/dist/cli/telemetry_bin.js +5517 -0
- package/dist/cli/telemetry_bin.js.map +1 -0
- package/dist/cli/telemetry_cli.cjs +5523 -0
- package/dist/cli/telemetry_cli.cjs.map +1 -0
- package/dist/cli/telemetry_cli.d.cts +92 -0
- package/dist/cli/telemetry_cli.d.ts +92 -0
- package/dist/cli/telemetry_cli.js +5497 -0
- package/dist/cli/telemetry_cli.js.map +1 -0
- package/dist/client_defaults-B5tC-TgG.d.ts +8 -0
- package/dist/client_defaults-C9LnSX4j.d.cts +8 -0
- package/dist/core/index.cjs +2354 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +168 -0
- package/dist/core/index.d.ts +168 -0
- package/dist/core/index.js +2318 -0
- package/dist/core/index.js.map +1 -0
- package/dist/electron/index.cjs +1379 -0
- package/dist/electron/index.cjs.map +1 -0
- package/dist/electron/index.d.cts +31 -0
- package/dist/electron/index.d.ts +31 -0
- package/dist/electron/index.js +1353 -0
- package/dist/electron/index.js.map +1 -0
- package/dist/envelope.types-rOLpWXRC.d.cts +42 -0
- package/dist/envelope.types-rOLpWXRC.d.ts +42 -0
- package/dist/in_memory_batch_transport-DKW9EZnU.d.cts +16 -0
- package/dist/in_memory_batch_transport-oOwNxXnA.d.ts +16 -0
- package/dist/index.cjs +3325 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +66 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +3285 -0
- package/dist/index.js.map +1 -0
- package/dist/maintenance_coordinator.types-B-bZUNvw.d.cts +127 -0
- package/dist/maintenance_coordinator.types-CBA5y74b.d.ts +127 -0
- package/dist/metric_definition_contract-BR6a_GzF.d.cts +12 -0
- package/dist/metric_definition_contract-l4i4SaAp.d.ts +12 -0
- package/dist/node/index.cjs +7157 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.d.cts +74 -0
- package/dist/node/index.d.ts +74 -0
- package/dist/node/index.js +7122 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/producer/index.cjs +1322 -0
- package/dist/node/producer/index.cjs.map +1 -0
- package/dist/node/producer/index.d.cts +21 -0
- package/dist/node/producer/index.d.ts +21 -0
- package/dist/node/producer/index.js +1294 -0
- package/dist/node/producer/index.js.map +1 -0
- package/dist/query.types-Bntwh6KF.d.cts +186 -0
- package/dist/query.types-DySoqYop.d.ts +186 -0
- package/dist/result.types-171Huujb.d.cts +9 -0
- package/dist/result.types-171Huujb.d.ts +9 -0
- package/dist/sqlite/index.cjs +3409 -0
- package/dist/sqlite/index.cjs.map +1 -0
- package/dist/sqlite/index.d.cts +77 -0
- package/dist/sqlite/index.d.ts +77 -0
- package/dist/sqlite/index.js +3382 -0
- package/dist/sqlite/index.js.map +1 -0
- package/dist/storage.types-BTCGVxOM.d.ts +76 -0
- package/dist/storage.types-DjuUMinz.d.cts +76 -0
- package/dist/telemetry_client-BXw8WH_F.d.ts +141 -0
- package/dist/telemetry_client-CYaPYfOl.d.cts +141 -0
- package/dist/telemetry_configuration_parser-C7Et_gwG.d.ts +39 -0
- package/dist/telemetry_configuration_parser-R-niZQRZ.d.cts +39 -0
- package/dist/testing/index.cjs +215 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +32 -0
- package/dist/testing/index.d.ts +32 -0
- package/dist/testing/index.js +187 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/trace-adapter/index.cjs +1034 -0
- package/dist/trace-adapter/index.cjs.map +1 -0
- package/dist/trace-adapter/index.d.cts +72 -0
- package/dist/trace-adapter/index.d.ts +72 -0
- package/dist/trace-adapter/index.js +1007 -0
- package/dist/trace-adapter/index.js.map +1 -0
- package/dist/transport.types-BAl_TRtU.d.cts +99 -0
- package/dist/transport.types-DDnZoKWi.d.ts +99 -0
- package/migrations/1783695629569_raw_events.down.sql +1 -0
- package/migrations/1783695629569_raw_events.up.sql +30 -0
- package/migrations/1783695630053_batch_acknowledgements.down.sql +1 -0
- package/migrations/1783695630053_batch_acknowledgements.up.sql +13 -0
- package/migrations/1783695630960_ingest_watermarks.down.sql +1 -0
- package/migrations/1783695630960_ingest_watermarks.up.sql +9 -0
- package/migrations/1783695631522_metric_definitions.down.sql +1 -0
- package/migrations/1783695631522_metric_definitions.up.sql +10 -0
- package/migrations/1783695631966_metric_samples.down.sql +1 -0
- package/migrations/1783695631966_metric_samples.up.sql +15 -0
- package/migrations/1783695632417_metric_rollups.down.sql +1 -0
- package/migrations/1783695632417_metric_rollups.up.sql +22 -0
- package/migrations/1783695632860_rollup_completions.down.sql +1 -0
- package/migrations/1783695632860_rollup_completions.up.sql +17 -0
- package/migrations/1783695633302_extraction_failures.down.sql +1 -0
- package/migrations/1783695633302_extraction_failures.up.sql +10 -0
- package/migrations/1783695633748_maintenance_runs.down.sql +1 -0
- package/migrations/1783695633748_maintenance_runs.up.sql +12 -0
- package/migrations/1783695634221_reader_leases.down.sql +1 -0
- package/migrations/1783695634221_reader_leases.up.sql +9 -0
- package/migrations/1783702703104_committed_drop_counters.down.sql +1 -0
- package/migrations/1783702703104_committed_drop_counters.up.sql +11 -0
- package/migrations/1783705542684_rollup_completion_state.down.sql +2 -0
- package/migrations/1783705542684_rollup_completion_state.up.sql +6 -0
- package/migrations/1784309799539_metric_samples_event_index.down.sql +1 -0
- package/migrations/1784309799539_metric_samples_event_index.up.sql +2 -0
- package/native/noego_telemetry_native.node +0 -0
- package/package.json +137 -0
- package/proper.json +8 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { R as ResolvedTelemetryConfiguration, S as SqliteTargetConfiguration, T as TimelineQuery, b as TimelineQueryResponse, c as TelemetryQueryError, d as MetricQuery, e as MetricQueryResponse } from '../query.types-Bntwh6KF.cjs';
|
|
2
|
+
import { T as TelemetryResult } from '../result.types-171Huujb.cjs';
|
|
3
|
+
import { N as NodeTelemetryConfigurationParser } from '../telemetry_configuration_parser-R-niZQRZ.cjs';
|
|
4
|
+
import '../envelope.types-rOLpWXRC.cjs';
|
|
5
|
+
import '../metric_definition_contract-BR6a_GzF.cjs';
|
|
6
|
+
|
|
7
|
+
type TelemetryCliStructuredFormat = 'table' | 'json' | 'jsonl' | 'csv';
|
|
8
|
+
type TelemetryCliSessionMode = 'query' | 'maintenance';
|
|
9
|
+
type TelemetryCliMigrationStatus = Readonly<{
|
|
10
|
+
targetId: string;
|
|
11
|
+
completed: readonly string[];
|
|
12
|
+
pending: readonly string[];
|
|
13
|
+
}>;
|
|
14
|
+
type TelemetryCliDiagnosticResult = Readonly<{
|
|
15
|
+
columns: readonly string[];
|
|
16
|
+
rows: readonly Readonly<Record<string, unknown>>[];
|
|
17
|
+
truncated: boolean;
|
|
18
|
+
elapsedMs: number;
|
|
19
|
+
}>;
|
|
20
|
+
interface TelemetryCliSession {
|
|
21
|
+
timeline(query: TimelineQuery): Promise<TelemetryResult<TimelineQueryResponse, TelemetryQueryError>>;
|
|
22
|
+
metrics(query: MetricQuery): Promise<TelemetryResult<MetricQueryResponse, TelemetryQueryError>>;
|
|
23
|
+
diagnosticQuery(sql: string, bindings: Readonly<Record<string, unknown>>, limits: Readonly<{
|
|
24
|
+
maxRows: number;
|
|
25
|
+
maxBytes: number;
|
|
26
|
+
maxDurationMs: number;
|
|
27
|
+
}>): Promise<TelemetryCliDiagnosticResult>;
|
|
28
|
+
migrationStatus(): Promise<TelemetryCliMigrationStatus>;
|
|
29
|
+
migrateUp(): Promise<TelemetryCliMigrationStatus>;
|
|
30
|
+
close(): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
type TelemetryCliSessionFactory = (configuration: ResolvedTelemetryConfiguration, target: SqliteTargetConfiguration, mode: TelemetryCliSessionMode) => Promise<TelemetryCliSession>;
|
|
33
|
+
type TelemetryCliOptions = Readonly<{
|
|
34
|
+
configurationParser?: NodeTelemetryConfigurationParser;
|
|
35
|
+
createSession?: TelemetryCliSessionFactory;
|
|
36
|
+
stdout?: (text: string) => void;
|
|
37
|
+
stderr?: (text: string) => void;
|
|
38
|
+
writeOutputFile?: (path: string, content: string) => void;
|
|
39
|
+
now?: () => number;
|
|
40
|
+
}>;
|
|
41
|
+
|
|
42
|
+
declare class TelemetryCli {
|
|
43
|
+
private readonly configurationParser;
|
|
44
|
+
private readonly argumentsParser;
|
|
45
|
+
private readonly formatter;
|
|
46
|
+
private readonly graphRenderer;
|
|
47
|
+
private readonly durations;
|
|
48
|
+
private readonly createSession;
|
|
49
|
+
private readonly stdout;
|
|
50
|
+
private readonly stderr;
|
|
51
|
+
private readonly writeOutputFile;
|
|
52
|
+
private readonly now;
|
|
53
|
+
private activeSession;
|
|
54
|
+
constructor(options?: TelemetryCliOptions);
|
|
55
|
+
run(argv: readonly string[]): Promise<number>;
|
|
56
|
+
shutdown(): Promise<void>;
|
|
57
|
+
private execute;
|
|
58
|
+
private executeCommand;
|
|
59
|
+
private timelineQuery;
|
|
60
|
+
private metricQuery;
|
|
61
|
+
private metricGraph;
|
|
62
|
+
private sqliteQuery;
|
|
63
|
+
private sqliteMigration;
|
|
64
|
+
private metricQueryInput;
|
|
65
|
+
private resolveTarget;
|
|
66
|
+
private sessionMode;
|
|
67
|
+
private structuredFormat;
|
|
68
|
+
private graphFormat;
|
|
69
|
+
private graphType;
|
|
70
|
+
private orderOption;
|
|
71
|
+
private timezoneOption;
|
|
72
|
+
private resolutionOption;
|
|
73
|
+
private rowLimitOption;
|
|
74
|
+
private bucketLimitOption;
|
|
75
|
+
private limitOption;
|
|
76
|
+
private positiveIntegerOption;
|
|
77
|
+
private timestampOption;
|
|
78
|
+
private where;
|
|
79
|
+
private whereValue;
|
|
80
|
+
private bindings;
|
|
81
|
+
private bindingValue;
|
|
82
|
+
private isJsonPrimitive;
|
|
83
|
+
private requiredOption;
|
|
84
|
+
private optionalOption;
|
|
85
|
+
private options;
|
|
86
|
+
private writeBounded;
|
|
87
|
+
private assertBytes;
|
|
88
|
+
private help;
|
|
89
|
+
}
|
|
90
|
+
declare function runTelemetryCli(argv: readonly string[], options?: TelemetryCliOptions): Promise<number>;
|
|
91
|
+
|
|
92
|
+
export { TelemetryCli, type TelemetryCliDiagnosticResult, type TelemetryCliMigrationStatus, type TelemetryCliOptions, type TelemetryCliSession, type TelemetryCliSessionFactory, type TelemetryCliSessionMode, type TelemetryCliStructuredFormat, runTelemetryCli };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { R as ResolvedTelemetryConfiguration, S as SqliteTargetConfiguration, T as TimelineQuery, b as TimelineQueryResponse, c as TelemetryQueryError, d as MetricQuery, e as MetricQueryResponse } from '../query.types-DySoqYop.js';
|
|
2
|
+
import { T as TelemetryResult } from '../result.types-171Huujb.js';
|
|
3
|
+
import { N as NodeTelemetryConfigurationParser } from '../telemetry_configuration_parser-C7Et_gwG.js';
|
|
4
|
+
import '../envelope.types-rOLpWXRC.js';
|
|
5
|
+
import '../metric_definition_contract-l4i4SaAp.js';
|
|
6
|
+
|
|
7
|
+
type TelemetryCliStructuredFormat = 'table' | 'json' | 'jsonl' | 'csv';
|
|
8
|
+
type TelemetryCliSessionMode = 'query' | 'maintenance';
|
|
9
|
+
type TelemetryCliMigrationStatus = Readonly<{
|
|
10
|
+
targetId: string;
|
|
11
|
+
completed: readonly string[];
|
|
12
|
+
pending: readonly string[];
|
|
13
|
+
}>;
|
|
14
|
+
type TelemetryCliDiagnosticResult = Readonly<{
|
|
15
|
+
columns: readonly string[];
|
|
16
|
+
rows: readonly Readonly<Record<string, unknown>>[];
|
|
17
|
+
truncated: boolean;
|
|
18
|
+
elapsedMs: number;
|
|
19
|
+
}>;
|
|
20
|
+
interface TelemetryCliSession {
|
|
21
|
+
timeline(query: TimelineQuery): Promise<TelemetryResult<TimelineQueryResponse, TelemetryQueryError>>;
|
|
22
|
+
metrics(query: MetricQuery): Promise<TelemetryResult<MetricQueryResponse, TelemetryQueryError>>;
|
|
23
|
+
diagnosticQuery(sql: string, bindings: Readonly<Record<string, unknown>>, limits: Readonly<{
|
|
24
|
+
maxRows: number;
|
|
25
|
+
maxBytes: number;
|
|
26
|
+
maxDurationMs: number;
|
|
27
|
+
}>): Promise<TelemetryCliDiagnosticResult>;
|
|
28
|
+
migrationStatus(): Promise<TelemetryCliMigrationStatus>;
|
|
29
|
+
migrateUp(): Promise<TelemetryCliMigrationStatus>;
|
|
30
|
+
close(): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
type TelemetryCliSessionFactory = (configuration: ResolvedTelemetryConfiguration, target: SqliteTargetConfiguration, mode: TelemetryCliSessionMode) => Promise<TelemetryCliSession>;
|
|
33
|
+
type TelemetryCliOptions = Readonly<{
|
|
34
|
+
configurationParser?: NodeTelemetryConfigurationParser;
|
|
35
|
+
createSession?: TelemetryCliSessionFactory;
|
|
36
|
+
stdout?: (text: string) => void;
|
|
37
|
+
stderr?: (text: string) => void;
|
|
38
|
+
writeOutputFile?: (path: string, content: string) => void;
|
|
39
|
+
now?: () => number;
|
|
40
|
+
}>;
|
|
41
|
+
|
|
42
|
+
declare class TelemetryCli {
|
|
43
|
+
private readonly configurationParser;
|
|
44
|
+
private readonly argumentsParser;
|
|
45
|
+
private readonly formatter;
|
|
46
|
+
private readonly graphRenderer;
|
|
47
|
+
private readonly durations;
|
|
48
|
+
private readonly createSession;
|
|
49
|
+
private readonly stdout;
|
|
50
|
+
private readonly stderr;
|
|
51
|
+
private readonly writeOutputFile;
|
|
52
|
+
private readonly now;
|
|
53
|
+
private activeSession;
|
|
54
|
+
constructor(options?: TelemetryCliOptions);
|
|
55
|
+
run(argv: readonly string[]): Promise<number>;
|
|
56
|
+
shutdown(): Promise<void>;
|
|
57
|
+
private execute;
|
|
58
|
+
private executeCommand;
|
|
59
|
+
private timelineQuery;
|
|
60
|
+
private metricQuery;
|
|
61
|
+
private metricGraph;
|
|
62
|
+
private sqliteQuery;
|
|
63
|
+
private sqliteMigration;
|
|
64
|
+
private metricQueryInput;
|
|
65
|
+
private resolveTarget;
|
|
66
|
+
private sessionMode;
|
|
67
|
+
private structuredFormat;
|
|
68
|
+
private graphFormat;
|
|
69
|
+
private graphType;
|
|
70
|
+
private orderOption;
|
|
71
|
+
private timezoneOption;
|
|
72
|
+
private resolutionOption;
|
|
73
|
+
private rowLimitOption;
|
|
74
|
+
private bucketLimitOption;
|
|
75
|
+
private limitOption;
|
|
76
|
+
private positiveIntegerOption;
|
|
77
|
+
private timestampOption;
|
|
78
|
+
private where;
|
|
79
|
+
private whereValue;
|
|
80
|
+
private bindings;
|
|
81
|
+
private bindingValue;
|
|
82
|
+
private isJsonPrimitive;
|
|
83
|
+
private requiredOption;
|
|
84
|
+
private optionalOption;
|
|
85
|
+
private options;
|
|
86
|
+
private writeBounded;
|
|
87
|
+
private assertBytes;
|
|
88
|
+
private help;
|
|
89
|
+
}
|
|
90
|
+
declare function runTelemetryCli(argv: readonly string[], options?: TelemetryCliOptions): Promise<number>;
|
|
91
|
+
|
|
92
|
+
export { TelemetryCli, type TelemetryCliDiagnosticResult, type TelemetryCliMigrationStatus, type TelemetryCliOptions, type TelemetryCliSession, type TelemetryCliSessionFactory, type TelemetryCliSessionMode, type TelemetryCliStructuredFormat, runTelemetryCli };
|