FlowPrime guides

Observability: see your product's errors, logs, traces and metrics

Observability collects what your apps send about their own health: errors (grouped into issues), log lines, traces and measurements. Every workspace has it from the start. Use it when you need to know whether the product you built is breaking, for whom, and why. Product events (signups, purchases, funnels) belong in analytics instead: see platform_guide topic=analytics.

It is light by design: each workspace keeps up to 100 MB for up to 7 days, whichever comes first.

What you can do

Capability How Status
Register an app that sends data (browser, mobile/desktop app, server) and get its key observability_source_create live
List registered sources observability_sources_list live
Send errors, logs, metrics and spans from a browser browser snippet obs.js with a browser source key live
Send from a server or an app REST: POST /v1/ingest, or any OpenTelemetry SDK to /v1/otlp live
Health of the workspace at a glance observability_overview live
List, read and search issues (errors grouped by fingerprint) observability_issues_list, observability_issue_get live
Resolve, reopen, ignore an issue, switch its alerts observability_issue_action live
Search logs, follow one user or one session observability_logs_search live
Read one trace with its spans and log lines observability_trace_get live
Percentiles of every measurement observability_metrics live
Storage used, days kept, rate limit, what was dropped observability_usage live
Delete a source or rotate its key dashboard (Observability > Sources) dashboard
Live tail, split a metric by tag dashboard dashboard

Before you start

Step by step

Instrument a web app

  1. observability_source_create with name (e.g. "Web app"), kind=browser, origins = every origin the pages run on, comma-separated (e.g. https://app.example.com,https://www.example.com). A browser source with no origin is refused.
  2. Copy the obs_pub_... key from the answer.
  3. Add to every page:
    <script src="https://{org}.observability.fastflow.tech/sdk/obs.js"></script>
    <script>
      FlowObs.init({ key: "obs_pub_...", release: "1.4.0", environment: "production" });
    </script>
    
    It captures uncaught errors, rejected promises, web vitals and fetch timing, batches every 5 seconds and flushes when the page closes.
  4. Report what the snippet cannot see: FlowObs.error(err, tags), FlowObs.log(level, message, attrs), FlowObs.metric(name, value, unit, tags).
  5. Load a page, throw a test error, then observability_issues_list to see it arrive.

Instrument a backend

  1. observability_source_create with kind=server. The answer is the ONLY time you see the secret key: store it as a server secret right away.
  2. Either send JSON:
    POST https://{org}.observability.fastflow.tech/v1/ingest
    { "key": "<server key>", "release": "1.4.0", "environment": "production",
      "user_id": "u_123", "session_id": "s_9",
      "items": [
        { "type": "error", "kind": "TypeError", "message": "x is undefined", "stack": "..." },
        { "type": "log", "level": "warn", "message": "slow query", "attrs": { "ms": 950 } },
        { "type": "metric", "name": "checkout.duration", "value": 412, "unit": "ms" }
      ] }
    
    Answers 202 {accepted, rejected, dropped}.
  3. Or point an OpenTelemetry OTLP/HTTP exporter at https://{org}.observability.fastflow.tech/v1/otlp with the header X-Obs-Key: <key> (JSON or protobuf, gzip accepted). Exception events and error spans also become issues.
  4. Put user_id and session_id on the request or on each item. Reads filter by them, so you do not need to copy them into tags.

Diagnose a problem

  1. observability_overview for the range (from, to as ISO 8601; default is the last 24 hours).
  2. observability_issues_list (default status open; q searches message, release and tags; userId lists only what one user hit).
  3. observability_issue_get on the top issue: the stack, the users it hit, and the latest event with its user_id and session_id.
  4. observability_logs_search with a q taken from the message, or sessionId of that event, e.g. q='level:error route:/checkout "timeout"'.
  5. observability_trace_get on a trace_id from the log line.
  6. After the fix ships, observability_issue_action action=resolve: it reopens by itself, marked regressed, if it shows up on a later release.

Things that trip agents up

Reference

Where to go next