21 symbols from @neontechspace/fluxerly/effect
Interfaces#
ClientLogging #
Change what this client logs while it runs
Creation settings other than level, categories and debug, such as sink and format, stay fixed for the client's lifetime
interface ClientLoggingconfigure#
Replace the client's log level and per-category levels, and optionally its Debug categories, effective for the next record
The settings are validated like level, categories and debug in the logging option of create. Omitted level and categories return to their defaults, level info without category levels, as at creation. An omitted debug keeps the current Debug categories, which start as the debug creation setting plus FLUXERLY_DEBUG. A debug value replaces them, including those from FLUXERLY_DEBUG. Pass true for every category, a list for only those categories, or false or an empty list for none. Debug categories lower their threshold to Debug, never raise it. It works before, during and after a connection, and changes nothing else about the client
configure(settings: LogLevelSettings): voidconfigure(
settings: LogLevelSettings
): voidParameters
settings-
LogLevelSettings
Returns synchronously. Invalid settings, including keys other than level, categories and debug, throw
Configuration and leave the previous settings in place. A throwing settings getter throws Sdk with code
application
import type { Client } from "@neontechspace/fluxerly/effect"
export function traceRequests(client: Client) {
client.logging.configure({ categories: { rest: "debug" } })
}
export function stopDebugOutput(client: Client) {
client.logging.configure({ debug: false })
}
FailureReport #
A failure outside any returned result, delivered to a native on hook or logged at Error with its full error
The error field is the handler's typed failure or defect value, and cause keeps the complete Effect Cause, including every reason. The message reference contains IDs only. The original error and Cause can contain message content or other application data
interface FailureReport extends FailureReportinterface FailureReport
extends FailureReportInherited from Failure: command, error, event, kind, message, subscription, describe
Re-Exports#
Declared in JavaScript & TypeScript and documented there. Import them from @neontechspace/fluxerly/effect as well
Client#Counters - Running totals for one client since creation, returned by
diagnostics().counters Client#Diagnostics - Inspect this client's current connection state, occupied request slots and cache usage
Failure#Message Reference - IDs of the message involved in a failure, without its content
Handler#Observation - One finished event handler or prefix command router invocation, including event and command middleware
Log#Record - One structured SDK log record, delivered frozen to sinks and printed by the built-in console output
Logging#Options - Configure what the SDK logs and where the output goes
Rate#Limit Observation - A REST request that waits before retrying because Fluxer rate-limited it with HTTP
429 Reconnect#Observation - A shard begins a reconnection attempt after its established connection was lost
Rest#Observation - One finished REST request attempt
Resume#Observation - A shard resumed its session, so Fluxer replays the events it missed
Failure#Kind - What failed
Log#Category - The SDK area that produced a log record
Log#Level Settings - The level, categories and debug settings of
Logging, whichOptions clientchanges while a client runs.logging .configure Log#Threshold - A minimum severity for SDK log output, or silent to emit nothing
Observation#- One structured measurement passed to the observe client option