Package codes.grow.packages.betterstack.core
package codes.grow.packages.betterstack.core
-
ClassDescriptionMissing or invalid credentials (HTTP 401).Base class of every error raised by the Better Stack Logs SDK (SPEC section 2.1).The caller cancelled the operation (future cancelled, thread interrupted, client closed).Invalid or missing configuration.Conflicting write or check-and-set mismatch (HTTP 409, 412).Reads configuration from environment variables (SPEC section 2.2).Canonical error codes shared by every Grow Codes SDK (SPEC section 2.1).Service hook that replaces the error
HttpTransportderived from a failed response, for vendor-specific mapping (for example a 403 that means bad credentials, or a 500 whose body says the request will never succeed).Implements thehealth()contract (SPEC section 2.4): never throws for an unhealthy or unreachable service, only forCancelledExceptionandConfigException.Result ofhealth()(SPEC section 2.4).Callbacks invoked for every HTTP attempt (SPEC section 2.5).The HTTP engine shared by every client of the SDK (SPEC section 2.3), built onHttpClient.Shared Jackson configuration of the SDK.Minimal logger used by the transport (SPEC section 2.5).The record does not exist (HTTP 404).The credentials lack a permission (HTTP 403).Generic polling helper (pollUntil): used bywaitForLog,waitForTraceand service waiters.The service rate-limited the call (HTTP 429); seeBetterStackException.retryAfter().Redaction helpers for headers, URLs, structured fields and free text (SPEC section 2.6).Retry settings with full-jitter exponential backoff (SPEC section 2.3).Builder forRetryPolicy.Package identity used in theUser-Agentheader.A credential held in achar[]that never prints itself.A connect, request or total deadline was exceeded (or HTTP 408, 504).TLS settings: custom CA, client certificate (mutual TLS) and the test-onlyinsecureSkipVerify.Builder forTlsOptions.Settings of oneHttpTransport.Builder forTransportConfig.One logical HTTP call executed byHttpTransport(with retries).Builder forTransportRequest.A response returned byHttpTransport(2xx or an accepted status).Network error or HTTP 500, 502, 503.The service or deployment does not offer this capability (HTTP 501).The request or a value is invalid (HTTP 400, 413, 422, other 4xx).