Error Tracking

Temps includes Sentry-compatible error tracking built-in — point your existing @sentry/react, @sentry/nextjs, or any other Sentry SDK at your Temps DSN and errors appear in your dashboard with zero code changes. No Sentry account or separate Sentry bill. Error data stays on your infrastructure in self-hosted mode; enabling Temps Cloud uploads configured error and telemetry data to Temps Cloud for managed storage and queries.

Coming from Sentry? Migrate from Sentry walks through the switch, the Temps vs Sentry comparison covers feature and cost differences, and 8 best Sentry alternatives compares the wider field. For a product overview, see self-hosted error tracking.


How it works

Temps implements the Sentry envelope ingestion protocol at /api/<project_id>/envelope/, so any Sentry SDK works without modification. Error grouping uses a built-in vector similarity engine — no OpenAI API call is made; embeddings are computed locally using a hash tokenizer into a 384-dimension vector, then stored in pgvector for cosine-similarity lookup. It covers the parts of the Sentry protocol that error tracking needs — envelope protocol (v7+) error events, stack trace fingerprinting, source map parsing, user and request context, breadcrumbs, session correlation, and W3C trace ID correlation with spans (request/proxy-log correlation is pending — see Trace Correlation). Self-hosted mode runs on your own infrastructure; with Temps Cloud enabled, configured error and telemetry data is stored and queried through Temps Cloud.

TempsSentry CloudSelf-hosted Sentry
ProtocolSentry envelope (v7+)Sentry envelope (v7+)Sentry envelope (v7+)
SDK compatibilityAll official Sentry SDKsAll official Sentry SDKsAll official Sentry SDKs
Error groupingStack trace + local vector similarityStack trace + ML clusteringStack trace fingerprinting (no Seer/ML grouping)
Source mapsBuilt-in upload + parsingBuilt-inBuilt-in
Session replayBuilt-in (Session Replay, same platform)Included (50 replays/mo on every plan, then pay-as-you-go)Included (you run and scale the replay storage)
Analytics integrationBuilt-inSeparate productSeparate product
Uptime monitoringBuilt-in (Monitoring)1 uptime monitor included; more are $1/alert on Team and BusinessIncluded (you run the uptime checker service)
PricingFree (self-hosted) / Temps Cloud $29/mo (invite-only beta)$0–$80+/mo by event volumeSelf-hosted infra cost
Data locationYour server (self-hosted) or Temps Cloud (managed, invite-only beta)Sentry cloudYour server

Sentry plan details as of October 2026 (sentry.io/pricing); self-hosted Sentry is "the Business plan without any software limitations" except billing features, Seer and other AI/ML features, per Sentry's self-hosted docs.


Sentry compatibility

Temps accepts the Sentry envelope protocol, so official Sentry SDKs work without modification. It stores error events and, from the same envelopes, spans, logs, metrics, web replays, user feedback, cron check-ins, release-health sessions and attachments. Profiles, minidumps and other native crash files are accepted but skipped, and so are span, log and metric versions Temps doesn't read. A skipped item is counted in the x-temps-sentry-unsupported-items response header. See Migrate from Sentry for the full list.

Supported Features

  • Name
    Envelope Ingestion
    Description

    Sentry envelope protocol (v7+): errors, transactions and spans, logs, metrics, web replays, feedback, check-ins, sessions and attachments are stored; profiles and native crash files are skipped

  • Name
    Error Events
    Description

    Exception tracking with stack traces

  • Name
    Breadcrumbs
    Description

    Event trail leading up to errors

  • Name
    User Context
    Description

    User identification and metadata

  • Name
    Tags & Metadata
    Description

    Custom tagging and context

  • Name
    Releases
    Description

    Track errors by release version

Compatibility Matrix

Fully Supported SDKs

  • @sentry/browser (JavaScript)
  • @sentry/react (React)
  • @sentry/nextjs (Next.js)
  • @sentry/node (Node.js)
  • sentry-sdk (Python, pip)
  • github.com/getsentry/sentry-go (Go)
  • sentry/sentry (PHP, Composer)
  • sentry-ruby (Ruby gem)
  • io.sentry:sentry (Java, Maven/Gradle)
  • Sentry (.NET, NuGet)

Supported Platforms

  • Web browsers
  • Node.js servers
  • React Native
  • Electron
  • Mobile apps (iOS, Android)
  • Desktop apps
  • Serverless functions
  • Docker containers

Setup and integration

Get started with error tracking in minutes using your existing Sentry SDK.

Step 1: Get Your DSN

Get your project DSN

  1. 1

    Open your project's error tracking setup page at https://<temps_app>/projects/<project_slug>/errors?tab=setup.

  2. 2

    Copy your project's unique DSN from the setup page (the public key is a 64-character hex string unique to your project).

    Checkpoint: Confirm the DSN matches the format https://<public_key>@<temps_app>/<project_id> before pasting it into your SDK config.

  3. 3

    Paste the DSN into your Sentry SDK init (for example as NEXT_PUBLIC_SENTRY_DSN) and trigger a test error with Sentry.captureException(new Error('Test error from Temps')).

  4. 4

    Reload the Error Tracking page in the dashboard to confirm the test event arrived.

    Checkpoint: The new error group appears in the project's error list, confirming the SDK is sending events.

Each project gets a unique DSN (Data Source Name) for error reporting. The DSN format is:

https://<public_key>@<temps_app>/<project_id>

Example DSN format:

https://0000000000000000000000000000000000000000000000000000000000000000@your-temps-instance.com/1

Step 2: Install Sentry SDK

Install the official Sentry SDK for your platform:

npm install @sentry/react

If you already use the Temps Node SDK, its ErrorTracking namespace sends to the same DSN — see the Node SDK reference.

Step 3: Configure SDK

Point the Sentry SDK to your Temps instance:

Configure Sentry SDK

import * as Sentry from '@sentry/react';

Sentry.init({
  // Copy your DSN from: https://<temps_app>/projects/<project_slug>/errors?tab=setup
  dsn: process.env.NEXT_PUBLIC_SENTRY_DSN || 'YOUR_DSN_HERE',
  environment: 'production',
  release: 'my-app@1.0.0',

  // Performance monitoring
  tracesSampleRate: 1.0,

  integrations: [Sentry.browserTracingIntegration()],

  beforeSend(event, hint) {
    // Filter sensitive data
    return event;
  }
});

Step 4: Test Error Tracking

Trigger a test error to verify setup:

Test Error Tracking

// Throw test error
Sentry.captureException(new Error('Test error from Temps'));

// Capture message
Sentry.captureMessage('Test message', 'info');

// Add breadcrumb
Sentry.addBreadcrumb({
  message: 'User clicked button',
  level: 'info',
  data: { button: 'signup' }
});

Error grouping

Temps automatically groups similar errors together using stack trace fingerprinting and local vector similarity clustering.

Grouping Strategies

  • Name
    Stack Trace Fingerprinting
    Description

    Groups errors with identical stack traces (default)

  • Name
    Exception Type
    Description

    Groups by exception class/type (TypeError, ReferenceError, etc.)

  • Name
    Error Message
    Description

    Groups by error message pattern (parameterized)

  • Name
    Vector Similarity
    Description

    Uses a built-in hash tokenizer + pgvector cosine similarity to find semantically similar errors — computed locally, no external API required

  • Name
    Custom Fingerprinting
    Description

    Define custom grouping rules via fingerprint tags

Custom Fingerprinting

Override default grouping with custom fingerprints:

Custom Fingerprinting

Sentry.captureException(error, {
  fingerprint: ['database-error', 'connection-timeout'],
});

// Dynamic fingerprint
Sentry.captureException(error, {
  fingerprint: ['api-error', error.response?.status],
});

Update Group Status

Merge and split operations are available in the dashboard via the Error Details page Actions menu. Use the CLI to update group status:

# Resolve a group
bunx @temps-sdk/cli errors update --group-id <group-id> --project-id <project-id> --status resolved

# Ignore a group
bunx @temps-sdk/cli errors update --group-id <group-id> --project-id <project-id> --status ignored

Error details

Each error event captures comprehensive context for debugging.

Error Anatomy

  • Name
    Exception Info
    Description

    Type, message, stack trace with line numbers

  • Name
    Request Context
    Description

    URL, method, headers, query params, request body

  • Name
    User Context
    Description

    User ID, email, IP address, custom properties

  • Name
    Environment
    Description

    Browser/runtime version, OS, device type

  • Name
    Tags
    Description

    Custom tags (environment, version, feature flags)

  • Name
    Breadcrumbs
    Description

    Event trail leading to error (clicks, API calls, console logs)

  • Name
    Additional Data
    Description

    Custom metadata, local variables, state snapshots

Enrich Error Context

Add custom context to errors:

Add Context

Sentry.setUser({
  id: 'user-123',
  email: 'user@example.com',
  username: 'johndoe',
  subscription: 'pro'
});

Source context

Temps can show the actual source code around each stack frame, not just file:line. How the source gets there depends on the language.

JavaScript / TypeScript resolves automatically from source maps — the original source travels inside the .map (sourcesContent), so minified production frames turn into readable code. For git-based deploys Temps extracts the .map files from the built image after the deploy, so no upload step is needed. Otherwise upload them with sentry-cli 2.x: Temps accepts its per-file release upload, but not the chunked uploads sentry-cli 3.x and current Sentry build plugins use. See Source maps in the Sentry migration guide.

Go, Rust, Python, and other compiled or native languages already report the original file:line — they just don't ship the source. Upload the raw source per release and Temps renders the code around each frame.

Native source context is opt-in per project — enable it under Settings → General → Error Tracking Source Context. Your application source is only stored when you turn it on.

Keeping releases in sync

The release you upload source under must match the release your app reports (SENTRY_RELEASE) — typically the deployed commit SHA or tag. Temps injects SENTRY_RELEASE at deploy time (the commit SHA for git builds, the image tag or digest for image deploys), so keying your uploads the same way makes them line up automatically.

Compiled binaries (Go, Rust) can set the release in the SDK init call — if you hard-code a placeholder there, the SDK ignores the injected SENTRY_RELEASE and source won't line up. Leave the release unset so the injected value wins, or bake the real commit/tag at build time (e.g. Go -ldflags "-X main.version=$VERSION").

Uploading source

For git-based deploys, enabling the toggle is all you need — Temps captures the source from the build automatically, keyed by the commit SHA.

For image deploys or custom CI, upload it yourself, keyed by the same release:

# Upload every source file under the repo, keyed by the release.
bunx @temps-sdk/cli errors source-files upload \
  --project-id <id> --release "$CI_COMMIT_SHA" --dir .

Trace Correlation

Temps stores a W3C Trace Context trace ID alongside errors so the unified Observe timeline can link an exception to the spans and other events that share the same trace. This is what powers the cross-source jumps in the /projects/<slug>/observe timeline. Error correlation works today; linking a request row to its trace is pending (see the note below), and revenue events aren't linked to traces yet.

Schema

The m20260502_000001_add_observe_correlation migration (shipped in temps 0.1.0) adds the correlation columns and lookup indexes. Every column is nullable, so existing rows are unaffected, and the migration is written to be safely re-runnable — each step uses IF NOT EXISTS.

TableColumnTypePurpose
proxy_logstrace_idtext (nullable)W3C trace ID for the request
proxy_logserror_group_idinteger (nullable)Links a request to the error group it produced
error_eventstrace_id_indexedtext (nullable)Trace ID promoted from the event payload, indexed for joins
revenue_eventsdeployment_idinteger (nullable)Correlate revenue with a deployment
revenue_eventsenvironment_idinteger (nullable)Correlate revenue with an environment
revenue_eventstrace_idtext (nullable)W3C trace ID for the revenue event

Supporting indexes added by the same migration:

IndexDefinition
idx_proxy_logs_project_traceproxy_logs (project_id, trace_id)
idx_proxy_logs_error_groupproxy_logs (error_group_id) WHERE error_group_id IS NOT NULL
idx_error_events_project_traceerror_events (project_id, trace_id_indexed)
idx_revenue_events_project_occurredrevenue_events (project_id, occurred_at DESC)

How the trace ID is extracted

For error events, temps-error-tracking ingestion probes the event payload for a trace ID and promotes the first valid value to error_events.trace_id_indexed. It checks, in order: data.sentry.contexts.trace.trace_id, top-level data.contexts.trace.trace_id, and data.trace.trace_id. A value is accepted only if it is exactly 32 ASCII-hex characters and is not the all-zero trace ID the W3C spec reserves as invalid.

The temps-proxy reverse proxy includes a helper, extract_traceparent_trace_id, that reads the inbound traceparent request header (matched case-insensitively against traceparent, Traceparent, and TRACEPARENT), splits on -, and takes the trace-id field. It applies the same validation: the value must be 32 ASCII-hex characters, must not be all zeros, and is lowercased before use. Six unit tests cover the valid case, a missing header, the all-zero value, the wrong length, non-hex characters, and uppercase folding.

To send a trace ID through to Temps, set a standard traceparent header on the request:

traceparent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
              │  └─ trace-id (32 hex) ────────────┘  └─ span-id ──┘  └ flags
              └─ version

Proxy proxy_logs.trace_id population is not yet wired. The extract_traceparent_trace_id helper exists and is validated, but the live proxy logging path writes request rows through a batched multi-row INSERT whose column list does not yet include trace_id, so the extracted value is currently dropped before the proxy_logs write. The schema column and indexes are in place, and error events are already correlated via error_events.trace_id_indexed, but do not rely on the proxy populating proxy_logs.trace_id for live requests yet.


Error resolution

Manage error lifecycle from discovery to resolution. Guide: AI Autofixer: from an error group to a pull request shows how Fix with AI on an error group runs a sandboxed agent that proposes a fix as a pull request (an Experimental feature).

Error States

  • Name
    Unresolved
    Description

    New or ongoing errors (default state)

  • Name
    Resolved
    Description

    Marked as fixed (manually or automatically)

  • Name
    Ignored
    Description

    Known errors that should be suppressed

  • Name
    Regressed
    Description

    Error recurred after being resolved

Mark as Resolved

Mark an error group as resolved

  1. 1

    Open the Error Details page for the error group you fixed.

  2. 2

    Open the Actions menu and choose Resolve.

  3. 3

    Pick a resolution option: mark as resolved now, resolve in the next release, resolve in a specific release, or set auto-resolve after X days with no new events. (Release-scoped and auto-resolve options are dashboard-only; the CLI always performs an immediate resolve.)

  4. 4

    Confirm the resolution.

    Checkpoint: The error group's status changes to Resolved; if it recurs later it will reappear as Regressed.

Resolve Errors

# Resolve error group
bunx @temps-sdk/cli errors update --group-id <group-id> --project-id <project-id> --status resolved

# Resolve multiple groups (run per group)
bunx @temps-sdk/cli errors update --group-id error-123 --project-id <project-id> --status resolved
bunx @temps-sdk/cli errors update --group-id error-456 --project-id <project-id> --status resolved

Ignore Errors

Ignore a known error group

  1. 1

    Open the Error Details page for the error group you want to suppress.

  2. 2

    Open the Actions menu and choose Ignore.

  3. 3

    Confirm to suppress the group (configure pattern-based ignore rules in the web UI for recurring noise).

    Checkpoint: The error group's status changes to Ignored and it no longer surfaces in the default unresolved list.

Suppress known errors you don't want to track:

Ignore Errors

Sentry.init({
  dsn: '...',
  ignoreErrors: [
    // Ignore specific error messages
    'ResizeObserver loop limit exceeded',
    'Non-Error promise rejection',

    // Ignore error patterns
    /^Loading chunk [\d]+ failed$/,
  ],

  // Ignore errors from specific URLs
  denyUrls: [
    /extensions\//i,
    /^chrome:\/\//i,
  ],

  beforeSend(event, hint) {
    // Custom ignore logic
    if (event.exception) {
      const error = hint.originalException;
      if (error.message?.includes('Network error')) {
        return null; // Don't send to Temps
      }
    }
    return event;
  }
});

Teamwork on error groups

The errors commands on this page that are marked as beta need CLI 0.2.0-beta.1 or later. CLI 0.1.38 does not have them. Everything is also available in the console and through the API.

Resolve in the next release

When the fix is merged but not deployed yet, a plain Resolve reopens the group on the next event from the release that is still running. Use Resolve in next release instead. The group records the project's newest release at that moment and stays resolved for events from that release, from older releases and with no release. The first event from a newer release reopens it as a regression.

Releases are ordered by the Temps deployment that first carried them. A git deployment's release is its commit SHA (the SENTRY_RELEASE Temps sets), so a release that is deployed but hasn't sent an event yet still counts as the current one. A release your SDK sets itself, with no matching deployment, is ordered by when Temps first saw it. A project with no release can't use this option.

bunx @temps-sdk/cli@beta errors update --project-id 42 --group-id 123 --status resolved --in-next-release

# Every unresolved match, after a fix is merged
bunx @temps-sdk/cli@beta errors bulk --project-id 42 --action resolve --search "cart total" --in-next-release

Assign a group

A group is assigned to a user or a team. Assignment is separate from status, so an assigned group can be resolved or ignored and keeps its assignee. Only people who can open the project can be assigned. A new assignee gets an email when an email provider is set up (for a team, its members are emailed, up to 50). Assigning someone who is already the assignee changes nothing.

The error list can filter by assignee: Assigned to me shows groups assigned to you or to a team you are in, and Unassigned shows the rest. In the API the filter is assignee=me, none, user:<id> or team:<id>.

bunx @temps-sdk/cli@beta errors assign --project-id 42 --group-id 123 --me
bunx @temps-sdk/cli@beta errors assign --project-id 42 --group-id 123 --team-id 3
bunx @temps-sdk/cli@beta errors assign --project-id 42 --group-id 123 --none

Older versions stored the assignee as free text and had an assigned status. On upgrade, Temps matches each stored assignee to the user with that email and moves assigned groups to unresolved, keeping the assignee.

Comments and activity

The Activity tab of a group lists its history, newest first: who changed its status, who assigned it, merges and splits, and each event that reopened a resolved or ignored group. Teammates can also leave comments there. A comment is plain text of up to 10,000 characters, and everyone who can open the project can read it. Its author can edit it, and its author or an administrator can delete it.

bunx @temps-sdk/cli@beta errors comment --project-id 42 --group-id 123 --body "Started after the cache change; rolling back"
bunx @temps-sdk/cli@beta errors activity --project-id 42 --group-id 123

Activity is recorded from the version that added it. Changes made before are not in the log.

The Overview tab of a group has two panels that use the GitHub or GitLab repository the project deploys from. Without a connected repository, both panels say what is missing.

  • Issues. Open issue creates an issue in that repository with the exception, its counts, the innermost application frames and a link back to the group. Nothing from the request, the user, tags or breadcrumbs goes into the issue. Link issue links an existing one, in that repository or in any tracker such as Jira or Linear, up to 10 per group. Temps never closes or comments on an issue, and closing the issue does not resolve the group.
  • Suspect commits. The newest five commits that touched the file of the latest event's innermost application frame, read at the commit that was deployed.

Ownership rules (Errors → Ownership) assign new groups by where they fail. Each rule is a repository path pattern and a person: src/billing/ covers a directory, *.py a file name anywhere and src/**/cart.ts any depth. When a group is first created, its frames are tried innermost first against the rules in order, and the first match assigns it. Existing groups are never reassigned and no email is sent. A project has up to 50 rules, and every owner must be able to open the project.

bunx @temps-sdk/cli@beta errors issues open --project-id 42 --group-id 123
bunx @temps-sdk/cli@beta errors issues link --project-id 42 --group-id 123 --url https://tracker.example.com/browse/SHOP-12
bunx @temps-sdk/cli@beta errors commits --project-id 42 --group-id 123

# Ownership rules: one "<pattern> <user-id>" per line, tried in order
printf 'src/billing/ 7\n*.py 9\n' > owners.txt
bunx @temps-sdk/cli@beta errors ownership set --project-id 42 --file owners.txt

Performance issues

Temps checks the traces your project sends (OpenTelemetry, or a Sentry SDK with tracing) for four patterns and files each one as an issue next to your errors. They have the same workflow: resolve, ignore, assign, comment and alert rules.

IssueFound when
N+1 QueryThe same database query runs 5 or more times under one parent span, as when a loop loads one row per item
Slow DB QueryOne database span takes 1 second or more
Consecutive HTTP Calls3 or more HTTP calls of 50 ms or more run one after another, without overlapping, under one parent span
Large HTTP PayloadA request or response body is 1 MB or more

Queries are compared with their values replaced (WHERE id = 7 and WHERE id = 9 are the same query), so one loop is one issue however many items it ran over. The same pattern in the same operation of the same service is one issue across traces.

The checks run in the background every 5 minutes, never while traces are being received. Each check reads, per project, the 20 slowest root traces stored since the last check, at most 200 traces across projects, and never looks back more than 15 minutes. A busy project is therefore sampled, slowest traces first, and not checked exhaustively.

Choose Performance in the issue type menu of the error list to see only these issues. The CLI shows what is checked and when traces were last checked:

bunx @temps-sdk/cli@beta errors performance --project-id 42
bunx @temps-sdk/cli@beta errors list --project-id 42 --type performance

Release health

Errors → Releases opens with Release health. For each release with sessions in the last 1, 7 or 14 days it shows the crash-free sessions and users, its adoption (its share of the sessions started in the last 24 hours), its sessions and estimated users, and the Temps deployment that shipped it. The trend button draws the release's crash-free rate per hour.

Sentry SDKs send a session when the app starts and again when it ends or fails. Browser and mobile SDKs do this by default, and server SDKs when session tracking is on. Temps counts them the way Sentry does:

  • A session is errored when an update reports errors, crashed when it ends crashed and abnormal when it ends abnormally.
  • Crash-free sessions is 1 − crashed / sessions, and crash-free users is 1 − crashed users / users.
  • Temps stores only counters per project, environment, release and hour. No session is kept. Distinct users are an estimate (about 6.5% standard error). Counters are kept for 90 days.
  • Counting never slows ingest. When the in-memory queue (10,000 updates) is full, sessions are dropped, and the response header x-temps-sentry-sessions-dropped says how many.

Every five minutes Temps publishes the metrics release.crash_free_sessions, release.crash_free_users (over the last 24 hours, once there are 20 sessions or users) and release.sessions, labelled with the release and environment, for each release with a session in the last hour. Any metric alert rule can use them. Alert on a crash-free drop opens a new alert prefilled with a crash-free rate below 99% for 10 minutes, one alert per release.

bunx @temps-sdk/cli@beta errors releases --project-id 42 --environment production
bunx @temps-sdk/cli@beta errors release my-app@1.4.0 --project-id 42 --days 2

Attachments

Files an SDK sends with an error, such as a log excerpt or the state of a form, and the screenshot the feedback widget takes, are kept with the event or feedback they came with. They appear under Attachments on the event page and on the feedback record: images inline, every file as a download. Errors → Attachments shows how much of the project's quota they use and lets you change it.

Attachments live in the project's blob storage, so blob storage must be enabled. Until it is, the event page says so and attachments the SDKs send are dropped.

  • What is kept. Plain files, up to 2 MiB each, and 4 MiB or 8 files per event or feedback. Minidumps and other native crash files are not supported. A file that is too large never rejects the envelope. It is counted in the response header x-temps-sentry-unsupported-items.
  • Quota. Each project can store 256 MiB of attachments by default, and you can set it from 0 to 100 GiB. Past the quota, new attachments are dropped. Lowering the quota deletes nothing.
  • How long they are kept. As long as the event or feedback they came with. Attachments of expired events, deleted feedback and deleted projects are deleted within about ten minutes.
  • Safe to open. PNG, JPEG, GIF and WebP are shown inline. Any other type, including HTML and SVG, is served as a file to save and never rendered in the console.
Sentry.getCurrentScope().addAttachment({
  filename: 'app.log',
  data: logText,
  contentType: 'text/plain',
});
Sentry.captureException(error); // the log is kept with this event
bunx @temps-sdk/cli@beta errors attachments list --project-id 42 --group-id 7 --event-id 1093
bunx @temps-sdk/cli@beta errors attachments usage --project-id 42
bunx @temps-sdk/cli@beta errors attachments quota --project-id 42 --mib 1024

Additional Resources

Last updated

Was this page helpful?