Skip to main content

Interface: FromEnvOptions

Defined in: src/client.ts:153

Properties​

apiKey?​

optional apiKey?: string

Defined in: src/client.ts:155


authToken?​

optional authToken?: string

Defined in: src/client.ts:156


baseUrl?​

optional baseUrl?: string

Defined in: src/client.ts:154


env?​

optional env?: Record<string, string | undefined>

Defined in: src/client.ts:162

The variables to read (default process.env).


fetch?​

optional fetch?: (input, init?) => Promise<Response>

Defined in: src/client.ts:160

Parameters​

input​

string | URL | Request

init?​

RequestInit

Returns​

Promise<Response>


onTokensRotated?​

optional onTokensRotated?: OnTokensRotated

Defined in: src/client.ts:158


refreshAuthToken?​

optional refreshAuthToken?: string

Defined in: src/client.ts:157


timeoutMs?​

optional timeoutMs?: number

Defined in: src/client.ts:159


tokenFile?​

optional tokenFile?: string | false

Defined in: src/client.ts:167

File the rotated pair is persisted to (default SIGNOZ_TOKEN_FILE or .signoz-session.json). false turns persistence off. Does not apply to the API key.