@gravito/monitor 3.0.0 → 3.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/dist/index.cjs CHANGED
@@ -986,10 +986,10 @@ var MonitorOrbit = class {
986
986
  metrics: this.metricsRegistry,
987
987
  tracing: this.tracingManager
988
988
  };
989
- core.services.set("monitor", monitorService);
990
- core.services.set("health", this.healthRegistry);
991
- core.services.set("metrics", this.metricsRegistry);
992
- core.services.set("tracing", this.tracingManager);
989
+ core.container.instance("monitor", monitorService);
990
+ core.container.instance("health", this.healthRegistry);
991
+ core.container.instance("metrics", this.metricsRegistry);
992
+ core.container.instance("tracing", this.tracingManager);
993
993
  const router = core.router;
994
994
  if (healthEnabled && this.healthRegistry) {
995
995
  const healthController = new HealthController(this.healthRegistry);
package/dist/index.d.cts CHANGED
@@ -101,6 +101,10 @@ declare function defineMonitorConfig(config: MonitorConfig): MonitorConfig;
101
101
  * Manages health check registrations and executions
102
102
  */
103
103
 
104
+ /**
105
+ * Aggregated health check report.
106
+ * @public
107
+ */
104
108
  interface HealthReport {
105
109
  status: 'healthy' | 'unhealthy' | 'degraded';
106
110
  timestamp: string;
@@ -224,6 +228,10 @@ declare function createDiskCheck(options?: {
224
228
  * Manages metric collection and Prometheus exposition
225
229
  */
226
230
 
231
+ /**
232
+ * Represents a single metric data point with labels.
233
+ * @public
234
+ */
227
235
  interface MetricValue {
228
236
  value: number;
229
237
  labels: Record<string, string>;
@@ -396,6 +404,10 @@ interface Span {
396
404
  status: 'ok' | 'error' | 'unset';
397
405
  events: SpanEvent[];
398
406
  }
407
+ /**
408
+ * Event recorded within a span.
409
+ * @public
410
+ */
399
411
  interface SpanEvent {
400
412
  name: string;
401
413
  timestamp: number;
package/dist/index.d.ts CHANGED
@@ -101,6 +101,10 @@ declare function defineMonitorConfig(config: MonitorConfig): MonitorConfig;
101
101
  * Manages health check registrations and executions
102
102
  */
103
103
 
104
+ /**
105
+ * Aggregated health check report.
106
+ * @public
107
+ */
104
108
  interface HealthReport {
105
109
  status: 'healthy' | 'unhealthy' | 'degraded';
106
110
  timestamp: string;
@@ -224,6 +228,10 @@ declare function createDiskCheck(options?: {
224
228
  * Manages metric collection and Prometheus exposition
225
229
  */
226
230
 
231
+ /**
232
+ * Represents a single metric data point with labels.
233
+ * @public
234
+ */
227
235
  interface MetricValue {
228
236
  value: number;
229
237
  labels: Record<string, string>;
@@ -396,6 +404,10 @@ interface Span {
396
404
  status: 'ok' | 'error' | 'unset';
397
405
  events: SpanEvent[];
398
406
  }
407
+ /**
408
+ * Event recorded within a span.
409
+ * @public
410
+ */
399
411
  interface SpanEvent {
400
412
  name: string;
401
413
  timestamp: number;
package/dist/index.js CHANGED
@@ -934,10 +934,10 @@ var MonitorOrbit = class {
934
934
  metrics: this.metricsRegistry,
935
935
  tracing: this.tracingManager
936
936
  };
937
- core.services.set("monitor", monitorService);
938
- core.services.set("health", this.healthRegistry);
939
- core.services.set("metrics", this.metricsRegistry);
940
- core.services.set("tracing", this.tracingManager);
937
+ core.container.instance("monitor", monitorService);
938
+ core.container.instance("health", this.healthRegistry);
939
+ core.container.instance("metrics", this.metricsRegistry);
940
+ core.container.instance("tracing", this.tracingManager);
941
941
  const router = core.router;
942
942
  if (healthEnabled && this.healthRegistry) {
943
943
  const healthController = new HealthController(this.healthRegistry);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravito/monitor",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Observability module for Gravito - Health checks, Metrics, and Tracing",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",