Documentation Index
Fetch the complete documentation index at: https://sedataai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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
| Rule | Error message |
|---|---|
exporterEndpoint required unless exporterType: 'console' | exporterEndpoint is required |
samplingRate must be in [0, 1] (when set) | samplingRate must be between 0 and 1 |
metricExportIntervalMs must be > 0 (when set) | metricExportIntervalMs must be >0 |
batchTimeoutMs must be >= 0 (when set) | batchTimeout must be >=0 |
exporterAuth.type === 'bearer' requires token | Bearer token is required when using bearer auth |
exporterAuth.type === 'apiKey' requires apiKey | API key is required when using apiKey auth |
exporterAuth.type === 'basic' requires username + password | Username and password are required when using basic auth |
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.