Skip to main content
Use this page when the quickstart does not produce a visible event in the dashboard, or when the SDK logs a warning during first setup.

Fast check

Before debugging deeply, verify the first integration path:
  1. Install @pylva/sdk for TypeScript or pylva-sdk for Python.
  2. Create an API key and store it as PYLVA_API_KEY.
  3. Call init at process startup - provider calls made before init runs are not recorded.
  4. Wrap one real provider call with a customer_id and step.
  5. Wait for the SDK flush interval, or flush explicitly in a short script.
  6. Check the dashboard for the same customer and step; events appear within a few seconds of a flush.

See SDK diagnostics

There is no verbosity flag today; both SDKs surface problems through their normal logging:
  • TypeScript prints [pylva]-prefixed console warnings and errors: per-rejected-event warnings, pricing warnings once per provider+model, a buffer-overflow warning, and a loud error (with batch drop) on the first 401.
  • Python logs through the standard library logger named pylva at warning level. Enable it with logging.basicConfig(level=logging.WARNING) or attach a handler to logging.getLogger("pylva").

Install or import fails

API key or init problems

No events in the dashboard

Flush a short script

TypeScript:
Python:

API responses and warnings

Missing cost sources

For the full coverage workflow, see Cost Source Discovery.

Budget hard stops

For safe rollout guidance, see Controls Workflow.

Webhook alerts

For the full delivery workflow, see Alert Delivery And Webhooks.

Privacy mistakes

Do not send prompts, completions, raw messages, emails, phone numbers, API keys, authorization headers, request bodies, or raw tool arguments in telemetry metadata. Pylva needs cost-shaped usage facts: customer id, step name, provider, model, token counts, status, latency, metric, and metric value. See Privacy and PII for the full data boundary.