@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,74 @@
|
|
|
1
|
+
import { T as TelemetryAdmissionPolicy, M as MetadataSnapshotLimits, a as TelemetryClient } from '../telemetry_client-CYaPYfOl.cjs';
|
|
2
|
+
import { T as TelemetrySinkPlugin, c as MaintenanceLifecycleEvent, e as TelemetryCollectorRuntime, f as TelemetryCollectorStatus } from '../maintenance_coordinator.types-B-bZUNvw.cjs';
|
|
3
|
+
import { S as SqliteTargetConfiguration, M as MetricDefinition } from '../query.types-Bntwh6KF.cjs';
|
|
4
|
+
import { T as TelemetryStorageTransport, e as TelemetryStorageTarget, a as TelemetryStorageCapabilities } from '../storage.types-DjuUMinz.cjs';
|
|
5
|
+
import { a as TelemetryBatchValidationLimits, c as TelemetryBatchReceiver } from '../transport.types-BAl_TRtU.cjs';
|
|
6
|
+
import { NodeTelemetryProducerOptions } from './producer/index.cjs';
|
|
7
|
+
export { NodeTelemetryProducerHost } from './producer/index.cjs';
|
|
8
|
+
export { SQLiteTelemetryTransport } from '../sqlite/index.cjs';
|
|
9
|
+
export { a as NodeTelemetryConfigurationParseOptions, N as NodeTelemetryConfigurationParser, T as TelemetryConfigurationError, b as TelemetryDurationParser } from '../telemetry_configuration_parser-R-niZQRZ.cjs';
|
|
10
|
+
export { D as DEFAULT_METADATA_SNAPSHOT_LIMITS, a as DEFAULT_TELEMETRY_ADMISSION_POLICY } from '../client_defaults-C9LnSX4j.cjs';
|
|
11
|
+
import '../envelope.types-rOLpWXRC.cjs';
|
|
12
|
+
import '../result.types-171Huujb.cjs';
|
|
13
|
+
import '../metric_definition_contract-BR6a_GzF.cjs';
|
|
14
|
+
|
|
15
|
+
type NodeLocalTelemetryProducerOptions = Omit<NodeTelemetryProducerOptions, 'transport'>;
|
|
16
|
+
type NodeTelemetryCollectorOptions = Readonly<{
|
|
17
|
+
storage: TelemetryStorageTransport | readonly TelemetryStorageTarget[];
|
|
18
|
+
definitions: readonly MetricDefinition[];
|
|
19
|
+
sinkPlugins: readonly TelemetrySinkPlugin[];
|
|
20
|
+
volatile: boolean;
|
|
21
|
+
defaultTargetId: string | null;
|
|
22
|
+
requiredCapabilities?: readonly (keyof TelemetryStorageCapabilities)[];
|
|
23
|
+
batchValidation?: Partial<TelemetryBatchValidationLimits>;
|
|
24
|
+
maintenance?: SqliteTargetConfiguration['maintenance'];
|
|
25
|
+
observeMaintenance?: (event: MaintenanceLifecycleEvent) => void;
|
|
26
|
+
}>;
|
|
27
|
+
type NodeCombinedTelemetryOptions = Readonly<{
|
|
28
|
+
source: string;
|
|
29
|
+
processKind: string;
|
|
30
|
+
sqlite: SqliteTargetConfiguration;
|
|
31
|
+
definitions: readonly MetricDefinition[];
|
|
32
|
+
sinkPlugins: readonly TelemetrySinkPlugin[];
|
|
33
|
+
admission: TelemetryAdmissionPolicy;
|
|
34
|
+
metadata: MetadataSnapshotLimits;
|
|
35
|
+
producerId: string | null;
|
|
36
|
+
batchValidation?: Partial<TelemetryBatchValidationLimits>;
|
|
37
|
+
observeMaintenance?: (event: MaintenanceLifecycleEvent) => void;
|
|
38
|
+
}>;
|
|
39
|
+
|
|
40
|
+
declare class NodeTelemetryHost {
|
|
41
|
+
readonly client: TelemetryClient | null;
|
|
42
|
+
readonly collector: TelemetryCollectorRuntime | null;
|
|
43
|
+
private readonly maintenance;
|
|
44
|
+
private readonly localClients;
|
|
45
|
+
private acceptingLocalProducers;
|
|
46
|
+
private constructor();
|
|
47
|
+
static producer(options: NodeTelemetryProducerOptions): NodeTelemetryHost;
|
|
48
|
+
static collector(options: NodeTelemetryCollectorOptions): NodeTelemetryHost;
|
|
49
|
+
static combined(options: NodeCombinedTelemetryOptions): NodeTelemetryHost;
|
|
50
|
+
createLocalProducer(options: NodeLocalTelemetryProducerOptions): TelemetryClient;
|
|
51
|
+
start(): Promise<void>;
|
|
52
|
+
stop(deadlineMs: number): Promise<void>;
|
|
53
|
+
private hasProducer;
|
|
54
|
+
private static createMaintenanceCoordinator;
|
|
55
|
+
private static inferMaintenanceConfiguration;
|
|
56
|
+
private static requiredCollectorCapabilities;
|
|
57
|
+
private static requiredCombinedCapabilities;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class NativeTelemetryHost {
|
|
61
|
+
readonly client: TelemetryClient;
|
|
62
|
+
readonly collector: TelemetryBatchReceiver;
|
|
63
|
+
private readonly native;
|
|
64
|
+
private readonly transport;
|
|
65
|
+
private constructor();
|
|
66
|
+
static combined(options: NodeCombinedTelemetryOptions): NativeTelemetryHost;
|
|
67
|
+
start(): Promise<void>;
|
|
68
|
+
stop(deadlineMs: number): Promise<void>;
|
|
69
|
+
status(): Promise<unknown>;
|
|
70
|
+
collectorStatus(): TelemetryCollectorStatus;
|
|
71
|
+
maintenance(): Promise<unknown>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { NativeTelemetryHost, type NodeCombinedTelemetryOptions, type NodeLocalTelemetryProducerOptions, type NodeTelemetryCollectorOptions, NodeTelemetryHost, NodeTelemetryProducerOptions };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { T as TelemetryAdmissionPolicy, M as MetadataSnapshotLimits, a as TelemetryClient } from '../telemetry_client-BXw8WH_F.js';
|
|
2
|
+
import { T as TelemetrySinkPlugin, c as MaintenanceLifecycleEvent, e as TelemetryCollectorRuntime, f as TelemetryCollectorStatus } from '../maintenance_coordinator.types-CBA5y74b.js';
|
|
3
|
+
import { S as SqliteTargetConfiguration, M as MetricDefinition } from '../query.types-DySoqYop.js';
|
|
4
|
+
import { T as TelemetryStorageTransport, e as TelemetryStorageTarget, a as TelemetryStorageCapabilities } from '../storage.types-BTCGVxOM.js';
|
|
5
|
+
import { a as TelemetryBatchValidationLimits, c as TelemetryBatchReceiver } from '../transport.types-DDnZoKWi.js';
|
|
6
|
+
import { NodeTelemetryProducerOptions } from './producer/index.js';
|
|
7
|
+
export { NodeTelemetryProducerHost } from './producer/index.js';
|
|
8
|
+
export { SQLiteTelemetryTransport } from '../sqlite/index.js';
|
|
9
|
+
export { a as NodeTelemetryConfigurationParseOptions, N as NodeTelemetryConfigurationParser, T as TelemetryConfigurationError, b as TelemetryDurationParser } from '../telemetry_configuration_parser-C7Et_gwG.js';
|
|
10
|
+
export { D as DEFAULT_METADATA_SNAPSHOT_LIMITS, a as DEFAULT_TELEMETRY_ADMISSION_POLICY } from '../client_defaults-B5tC-TgG.js';
|
|
11
|
+
import '../envelope.types-rOLpWXRC.js';
|
|
12
|
+
import '../result.types-171Huujb.js';
|
|
13
|
+
import '../metric_definition_contract-l4i4SaAp.js';
|
|
14
|
+
|
|
15
|
+
type NodeLocalTelemetryProducerOptions = Omit<NodeTelemetryProducerOptions, 'transport'>;
|
|
16
|
+
type NodeTelemetryCollectorOptions = Readonly<{
|
|
17
|
+
storage: TelemetryStorageTransport | readonly TelemetryStorageTarget[];
|
|
18
|
+
definitions: readonly MetricDefinition[];
|
|
19
|
+
sinkPlugins: readonly TelemetrySinkPlugin[];
|
|
20
|
+
volatile: boolean;
|
|
21
|
+
defaultTargetId: string | null;
|
|
22
|
+
requiredCapabilities?: readonly (keyof TelemetryStorageCapabilities)[];
|
|
23
|
+
batchValidation?: Partial<TelemetryBatchValidationLimits>;
|
|
24
|
+
maintenance?: SqliteTargetConfiguration['maintenance'];
|
|
25
|
+
observeMaintenance?: (event: MaintenanceLifecycleEvent) => void;
|
|
26
|
+
}>;
|
|
27
|
+
type NodeCombinedTelemetryOptions = Readonly<{
|
|
28
|
+
source: string;
|
|
29
|
+
processKind: string;
|
|
30
|
+
sqlite: SqliteTargetConfiguration;
|
|
31
|
+
definitions: readonly MetricDefinition[];
|
|
32
|
+
sinkPlugins: readonly TelemetrySinkPlugin[];
|
|
33
|
+
admission: TelemetryAdmissionPolicy;
|
|
34
|
+
metadata: MetadataSnapshotLimits;
|
|
35
|
+
producerId: string | null;
|
|
36
|
+
batchValidation?: Partial<TelemetryBatchValidationLimits>;
|
|
37
|
+
observeMaintenance?: (event: MaintenanceLifecycleEvent) => void;
|
|
38
|
+
}>;
|
|
39
|
+
|
|
40
|
+
declare class NodeTelemetryHost {
|
|
41
|
+
readonly client: TelemetryClient | null;
|
|
42
|
+
readonly collector: TelemetryCollectorRuntime | null;
|
|
43
|
+
private readonly maintenance;
|
|
44
|
+
private readonly localClients;
|
|
45
|
+
private acceptingLocalProducers;
|
|
46
|
+
private constructor();
|
|
47
|
+
static producer(options: NodeTelemetryProducerOptions): NodeTelemetryHost;
|
|
48
|
+
static collector(options: NodeTelemetryCollectorOptions): NodeTelemetryHost;
|
|
49
|
+
static combined(options: NodeCombinedTelemetryOptions): NodeTelemetryHost;
|
|
50
|
+
createLocalProducer(options: NodeLocalTelemetryProducerOptions): TelemetryClient;
|
|
51
|
+
start(): Promise<void>;
|
|
52
|
+
stop(deadlineMs: number): Promise<void>;
|
|
53
|
+
private hasProducer;
|
|
54
|
+
private static createMaintenanceCoordinator;
|
|
55
|
+
private static inferMaintenanceConfiguration;
|
|
56
|
+
private static requiredCollectorCapabilities;
|
|
57
|
+
private static requiredCombinedCapabilities;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class NativeTelemetryHost {
|
|
61
|
+
readonly client: TelemetryClient;
|
|
62
|
+
readonly collector: TelemetryBatchReceiver;
|
|
63
|
+
private readonly native;
|
|
64
|
+
private readonly transport;
|
|
65
|
+
private constructor();
|
|
66
|
+
static combined(options: NodeCombinedTelemetryOptions): NativeTelemetryHost;
|
|
67
|
+
start(): Promise<void>;
|
|
68
|
+
stop(deadlineMs: number): Promise<void>;
|
|
69
|
+
status(): Promise<unknown>;
|
|
70
|
+
collectorStatus(): TelemetryCollectorStatus;
|
|
71
|
+
maintenance(): Promise<unknown>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { NativeTelemetryHost, type NodeCombinedTelemetryOptions, type NodeLocalTelemetryProducerOptions, type NodeTelemetryCollectorOptions, NodeTelemetryHost, NodeTelemetryProducerOptions };
|