SDK configuration options
Init options for the JavaScript, PHP, Dart, and Flutter SDKs.
Init options for the official SDKs. Tracing, analytics, replay, flags, and sample rates also come from project policy via GET /v1/sdk-config. Leave url unset on Talaria Cloud; the SDK derives https://ingest-<cell>.newtalaria.com from the key. Cloud OTLP is https://ingest-nz1.newtalaria.com/otlp.
JavaScript#
Package: @newtalaria/browser.
| Option | Required | Default | Description |
|---|---|---|---|
apiKey |
yes | Publishable tal_pk_ key for browser and React; secret tal_sk_ key for Node. | |
url |
Ingest origin. Leave unset on Talaria Cloud; derived from the key as https://ingest-.newtalaria.com. | ||
release |
Release name. | ||
minLevel |
Minimum severity for captured messages. |
Full page: JavaScript configuration.
PHP#
Package: talaria/talaria.
| Option | Required | Default | Description |
|---|---|---|---|
apiKey |
yes | Secret tal_sk_ key (or publishable tal_pk_ where the page says so). | |
url |
Ingest origin, or TALARIA_URL. Leave unset on Talaria Cloud. | ||
release |
Release name. Omit in GitHub Actions or GitLab and the SDK sends @. | ||
minLevel |
Minimum severity for captured messages. |
Full page: PHP configuration.
Dart#
Package: talaria.
| Option | Required | Default | Description |
|---|---|---|---|
apiKey |
yes | Project API key. Must be present. Official SDKs accept tal_pk_ or tal_sk_ depending on the surface. | |
url |
Ingest origin. Leave unset on Talaria Cloud; the SDK derives https://ingest-.newtalaria.com from the key. | ||
release |
Release name. Omit in CI and the SDK may send @. | ||
commitSha |
Optional commit SHA used when resolving the release identity. | ||
environment |
Accepted for compatibility; the API key decides the environment. Not stored or sent. | ||
sampleRate |
1.0 |
Error sample rate, clamped to 0–1. | |
maxBatchSize |
50 |
Maximum events per flush. | |
flushIntervalMs |
2000 |
Flush interval in milliseconds. | |
defaultIntegrations |
true |
Install the default integrations. | |
userId |
Default user id attached to events. | ||
tags |
Default tags (string map). | ||
httpTimeoutSeconds |
3.0 |
HTTP timeout for ingest requests. | |
minLevel |
debug |
Minimum log severity the SDK keeps. | |
enforceDefaultLevel |
false |
When true, the default minLevel cannot be lowered by a logger preset. | |
loggers |
Per-logger presets. | ||
beforeSend |
Callback that may drop or edit an event before send. | ||
ignoreErrors |
Error patterns the SDK drops. | ||
ignoreUrls |
URL patterns the SDK ignores. | ||
platform |
dart |
Wire platform field: dart or flutter. | |
storage |
Optional identity storage override. |
Full page: Dart configuration.
Flutter#
Package: talaria_flutter.
| Option | Required | Default | Description |
|---|---|---|---|
apiKey |
yes | Project API key. Must be present. Official SDKs accept tal_pk_ or tal_sk_ depending on the surface. | |
url |
Ingest origin. Leave unset on Talaria Cloud; the SDK derives https://ingest-.newtalaria.com from the key. | ||
release |
Release name. Omit in CI and the SDK may send @. | ||
commitSha |
Optional commit SHA used when resolving the release identity. | ||
environment |
Accepted for compatibility; the API key decides the environment. Not stored or sent. | ||
sampleRate |
1.0 |
Error sample rate, clamped to 0–1. | |
maxBatchSize |
50 |
Maximum events per flush. | |
flushIntervalMs |
2000 |
Flush interval in milliseconds. | |
defaultIntegrations |
true |
Install the default integrations. | |
userId |
Default user id attached to events. | ||
tags |
Default tags (string map). | ||
httpTimeoutSeconds |
3.0 |
HTTP timeout for ingest requests. | |
minLevel |
debug |
Minimum log severity the SDK keeps. | |
enforceDefaultLevel |
false |
When true, the default minLevel cannot be lowered by a logger preset. | |
loggers |
Per-logger presets. | ||
beforeSend |
Callback that may drop or edit an event before send. | ||
ignoreErrors |
Error patterns the SDK drops. | ||
ignoreUrls |
URL patterns the SDK ignores. | ||
platform |
dart |
Wire platform field: dart or flutter. | |
storage |
Optional identity storage override. |
Full page: Flutter configuration.