diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3c1df30..7c57a5d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.98.0" + ".": "0.99.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index a3e18e2..637a1c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.99.0](https://github.com/kernel/kernel-node-sdk/compare/v0.98.0...v0.99.0) (2026-09-03) + + +### Features + +* Expose OTLP destination delivery health ([c393d37](https://github.com/kernel/kernel-node-sdk/commit/c393d37d72171e841f1ebf8ce0a9720f5ae271d8)) + ## [0.98.0](https://github.com/kernel/kernel-node-sdk/compare/v0.97.0...v0.98.0) (2026-09-02) diff --git a/package.json b/package.json index 1708299..bda9379 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onkernel/sdk", - "version": "0.98.0", + "version": "0.99.0", "description": "The official TypeScript library for the Kernel API", "author": "Kernel <>", "types": "dist/index.d.ts", diff --git a/src/resources/telemetry/destinations.ts b/src/resources/telemetry/destinations.ts index 0c5b8ad..0fd6212 100644 --- a/src/resources/telemetry/destinations.ts +++ b/src/resources/telemetry/destinations.ts @@ -92,6 +92,13 @@ export type OtlpDestinationsOffsetPagination = OffsetPagination export interface OtlpDestination { id: string; + /** + * Failed deliveries since the last success, as observed by the relay process that + * wrote the latest outcome. Zero means the most recently recorded outcome + * succeeded. + */ + consecutive_failures: number; + created_at: string; /** @@ -116,6 +123,26 @@ export interface OtlpDestination { updated_at: string; description?: string; + + /** + * Sanitized class of the delivery failure recorded at `last_error_at`. It is + * retained after a later success, so its presence does not mean the destination is + * currently failing. Response bodies, endpoint URLs, credentials, and raw + * transport errors are never returned. + */ + last_error?: string; + + /** + * Timestamp of the most recent failed delivery. It is retained after a later + * success, so it can predate `last_export_at`. Read `consecutive_failures` to tell + * whether the destination is currently failing. + */ + last_error_at?: string; + + /** + * Timestamp of the most recent successful delivery. Moves only on success. + */ + last_export_at?: string; } export interface DestinationCreateParams { diff --git a/src/version.ts b/src/version.ts index f94f8b8..7b4f2ce 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.98.0'; // x-release-please-version +export const VERSION = '0.99.0'; // x-release-please-version