Skip to main content
A small static class that asserts a TelemetryConfig is well-formed. Used internally by TelemetryManager’s constructor — exposed publicly so you can validate configs in tests, CLIs, or at deploy time.

Method

validate(config: TelemetryConfig): void

Throws on invalid input. Returns nothing on success.

Rules enforced

Example

Use cases

Config tests

Assert your environment-driven config is valid in unit tests.

Bootstrap script

Fail fast at deploy time before connecting any transports.