AppHelm accepts what Sentry's SDKs send, so you can move without touching your code on day one. That is a bridge, not where you should stay.
The path has two steps, plus an optional import of what you built in Sentry:
- Day one: change the DSN. Keep the Sentry SDKs in your apps and point their DSN at AppHelm. Errors, messages, transactions, release health, cron check-ins, logs and user feedback arrive in AppHelm. Nothing is lost while you move.
- Then switch to the AppHelm SDK, app by app.
apphelm migrate-from-sentryrewrites JavaScript and TypeScript projects and prints a call-by-call mapping for every other language. - Optionally, import your Sentry setup: alert rules, cron and uptime monitors, releases and deploys, teams, ownership rules and open issues, from Settings → Import → Sentry.
#Step 1: change the DSN
#Get the DSN
An AppHelm DSN looks like a Sentry DSN:
https://<key>@apphelm.dev/sentry/<project number>- The project number names the product. Every product has one.
- The key is an AppHelm key you already have, and it is what authenticates:
- a browser key (
ahl_pub_…) for Sentry's browser SDKs (@sentry/browser, React, Vue, Angular, Svelte, the Next.js client). It works only from pages on the key's allowed origins, with the same rate limits and bot filter as AppHelm's own browser SDK. - a server key (
ahl_live_…) withevents:writefor everything else: Node, Python, Go, Ruby, PHP, Java, .NET, Elixir, Rust, and mobile and desktop apps. Keep it in an environment variable. A mobile app ships its key, so use a server key limited to that one product, which you can revoke.
- a browser key (
Open Errors → Settings for the product. The section Move from Sentry: start with your DSN, then switch shows the project number and builds the DSN for you in your browser from a key you paste (keys are shown once when created; the page never sends the key anywhere). Sentry's JavaScript SDKs accept only letters, digits and _ in a DSN key, so the DSN carries the key's random part as hex; AppHelm also accepts the key exactly as issued.
#Point your Sentry SDK at it
Change only the DSN, one environment at a time: staging first, then production.
No example for this step; showing Node.js.
import * as Sentry from "@sentry/node";
Sentry.init({ dsn: process.env.SENTRY_DSN }); // SENTRY_DSN=https://<server key>@apphelm.dev/sentry/<number>import * as Sentry from "@sentry/react";
Sentry.init({ dsn: "https://<browser key>@apphelm.dev/sentry/<number>" }); // a browser key is publicimport sentry_sdk
sentry_sdk.init(dsn=os.environ["SENTRY_DSN"]) # the AppHelm DSN with a server keysentry.Init(sentry.ClientOptions{Dsn: os.Getenv("SENTRY_DSN")})Sentry.init { |config| config.dsn = ENV["SENTRY_DSN"] }Most server SDKs also read SENTRY_DSN from the environment by themselves, so often you only change that variable. Sentry SDKs keep the DSN's path, so they post to https://apphelm.dev/sentry/api/<number>/envelope/.
Check it: trigger a test error (or run SENTRY_DSN=<the DSN with a server key> sentry-cli send-event -m "AppHelm DSN check") and open Errors. It shows within a few seconds.
#What AppHelm accepts
Every item goes through the same code as AppHelm's own SDKs, so grouping, symbolication, scrubbing, quotas, alerts and retention are the same.
| Sentry sends | It becomes | Notes |
|---|---|---|
Error events (and the legacy /store/ endpoint) |
Issues | Exception chain, release, environment, tags, contexts, breadcrumbs, transaction, fingerprint and level. handled: false marks the error unhandled and crashes its session |
| Message events | Issues named Message |
Grouped by text, or by stack when one is attached |
| Transactions, and streamed spans (JavaScript SDK 10 and later) | Traces and performance | Route-like names, the 50 longest spans, SQL literals scrubbed |
| Sessions | Release health | Starts, and updates that end crashed or unhandled |
| Server session aggregates | Counted, not stored | They would cost one event per request: turn off server session tracking (Python auto_session_tracking=False, Node autoSessionTracking: false) |
| Cron check-ins | Cron monitors | Slug, status, duration and monitor config. Schedules run in UTC; a time zone is converted when it converts exactly, otherwise refused and counted. Server key only |
| Logs | Logs | Body, level, trace id, attributes. Server key only; counts against the log allowance |
| User feedback | Feedback | Text with emails and secrets redacted, linked to its event's issue. Contact name and email are never kept |
| Profiles and continuous-profiling chunks | Profiles | At most 1 MB each and 10,000 a product a day; not counted against the event allowance |
Minidumps (envelope attachments and the /minidump/ endpoint) |
Native crash issues | Symbolicated with uploaded Breakpad symbols and dSYMs; at most 10 MB a dump; server key only |
| Client reports | Counted | What the SDK discarded, shown in settings |
| Other attachments, Session Replay, metrics, unknown item types | Counted and dropped | The rest of the envelope is stored. AppHelm tells the SDK to stop sending attachments and replays for an hour |
The /security/ (CSP reports) and /unreal/ endpoints answer 400 with an explanation; they aren't accepted yet.
Stacks are kept in each platform's own text format, and source maps apply by debug id first, then by release and file. Grouping is AppHelm's own (exception type, normalised message and top in-app frame), so issues grouped in Sentry won't have the same groups in AppHelm. A Sentry fingerprint of ["{{ default }}"] keeps default grouping, and {{ transaction }}, {{ type }}, {{ level }}, {{ module }}, {{ function }} and {{ message }} are filled in.
#Privacy
Everything goes through AppHelm's scrubber (emails, keys, tokens, long hex) and the product's scrubbing rules. On top of that:
user.id(or, without one, the email or username) becomes a SHA-256 hash. The raw value is never stored.ip_addressis dropped, including{{auto}}.- Request cookies, headers, query strings and bodies are never kept; only the URL's path is. Breadcrumb
datais dropped.
AppHelm keeps less than Sentry: no IP addresses, raw user ids or emails, request bodies, local variables or source context lines. Consent is still yours to handle, as with AppHelm's SDKs.
#Limits and answers
| Answer | When |
|---|---|
200 {"id": "<event id>"} |
Accepted. Events are deduplicated by event id, so a retry is never stored or charged twice |
400, 401, 403, 404, 413, 415 with {"detail": "…"} |
Refused; the detail says what to fix. A paused workspace, an archived product and the demo product answer 403 |
429 with Retry-After: 60 |
A browser key's per-key or per-address rate limit |
429 with X-Sentry-Rate-Limits: …usage_exceeded |
The monthly event allowance is used up. SDKs stop sending events but keep sending check-ins |
503 with Retry-After: 60 |
Storing failed; the SDK retries and the retry is deduplicated |
Bodies are at most 2 MB on /store/ (4 MB decompressed) and 12 MB on /envelope/ and /minidump/ (16 MB decompressed), 1 MB per JSON item, 100 items per envelope.
A newer Sentry SDK may send item types, headers or fields AppHelm doesn't know. They are counted and ignored, never a reason to fail the envelope, and each count shows in Errors → Settings → Move from Sentry. A count there usually means an SDK newer than the tested versions: pin a tested version, or better, move that app to the AppHelm SDK.
#Tested Sentry versions
| SDK | Version | Verified |
|---|---|---|
@sentry/browser |
11.10.0 | 1 November 2026 |
@sentry/node |
11.10.0 | 1 November 2026 |
sentry-sdk (Python) |
2.73.0 | 1 November 2026 |
sentry-go |
0.50.0 | 31 October 2026 |
sentry-ruby |
7.2.0 | 31 October 2026 |
@sentry/cli (sentry-cli) |
3.8.2 | 1 November 2026 |
Other Sentry SDKs (Cocoa, Android, PHP, .NET, Java …) speak the same protocol and are expected to work, but only the versions above were run against AppHelm end to end.
#Send to both during a trial
A Sentry SDK takes one DSN. The simplest path is to switch one environment and compare it with one still on Sentry. To send errors to both for a while from Node, add a second client:
No example for this step; showing Node.js.
import * as Sentry from "@sentry/node";
Sentry.init({ dsn: process.env.SENTRY_DSN /* Sentry */ });
const apphelmCopy = new Sentry.NodeClient({
dsn: process.env.APPHELM_DSN, transport: Sentry.makeNodeTransport, stackParser: Sentry.defaultStackParser, integrations: [],
});
Sentry.getClient()?.on("beforeSendEvent", (event) => { apphelmCopy.sendEvent(event); });import sentry_sdk
from sentry_sdk.transport import HttpTransport
# After sentry_sdk.init(dsn=SENTRY_DSN): copy every envelope to AppHelm too.
apphelm_copy = HttpTransport({**sentry_sdk.get_client().options, "dsn": APPHELM_DSN})
original = sentry_sdk.get_client().transport.capture_envelope
def both(envelope):
original(envelope)
apphelm_copy.capture_envelope(envelope)
sentry_sdk.get_client().transport.capture_envelope = bothThe Node version copies errors and messages only; the Python one copies every envelope. Remove the copy once you have switched.
#Keep using sentry-cli
Build pipelines that run sentry-cli keep working against AppHelm while you move. Give it an AppHelm server key:
export SENTRY_URL=https://apphelm.dev
export SENTRY_AUTH_TOKEN=ahl_live_… # a server key with events:write (Settings → API keys)
export SENTRY_ORG=acme # any name: the key decides the workspace
export SENTRY_PROJECT=12 # the product: its project number, its id (prd_…) or its slug
sentry-cli sourcemaps inject dist
sentry-cli sourcemaps upload --release 1.4.2 dist
sentry-cli debug-files upload build/Shop.app.dSYM
sentry-cli debug-files upload symbols/ # Breakpad .sym files from dump_syms
sentry-cli upload-proguard app/build/outputs/mapping/release/mapping.txt
sentry-cli releases new 1.4.2 && sentry-cli releases set-commits 1.4.2 --auto && sentry-cli releases finalize 1.4.2
sentry-cli deploys new --release 1.4.2 -e production| sentry-cli | In AppHelm |
|---|---|
sourcemaps upload |
Maps stored with their debug ids, and under --release when given. A bundle is at most 48 MB; a map with neither a debug id nor a release is refused with what to run |
debug-files upload |
dSYMs become symbol tables with file and line information; Breakpad .sym files are stored by their debug id. ELF, PDB and source bundles are refused with a message to run dump_syms |
upload-proguard |
Stored under its UUID, so it applies to any release whose events name it |
releases new, finalize, set-commits, list, archive, restore, delete |
AppHelm releases, up to 1,000 commits each; set-commits --auto reads your local checkout (AppHelm has no repository integration on this API) |
deploys new |
An AppHelm deploy, for charts and suspect commits. A finish time (dateFinished) must be within the last 30 days and no more than a day ahead, as for AppHelm's own deploys; leave it out to record the deploy now |
send-event, monitors run |
Go through the DSN ingest above |
Uploads share the limits of AppHelm's own upload API. Replace these commands with the apphelm CLI when you switch SDKs; migrate-from-sentry rewrites them in package.json scripts and CI files for you.
#Step 2: switch to the AppHelm SDK
Once the DSN has carried a week or two of events, move each app to AppHelm's own SDK. Until you do, Errors → Settings → Move from Sentry and the issue view show how many events in the last 7 days came from Sentry's SDKs, by SDK and major version (for example "sentry.javascript.browser 11.x (1,100)"), with the install command, environment variables and init code for each platform. Keep the DSN until events from the AppHelm SDK show up, then remove the Sentry SDK.
#Run apphelm migrate-from-sentry
In the project's root (no login needed):
npx @sansavision/apphelm migrate-from-sentry # dry run: a diff per file, nothing written
npx @sansavision/apphelm migrate-from-sentry --write # apply it
npx @sansavision/apphelm migrate-from-sentry --json # the same report as JSON| Flag | Meaning |
|---|---|
--dir <path> |
The project folder (default: the current folder) |
--write |
Apply the changes. Without it nothing is written |
--workspace org_…, --product prd_… |
Put your ids into the generated client code instead of reading APPHELM_WORKSPACE_ID and APPHELM_PRODUCT_ID from the environment |
--json |
The report as JSON: changes with their diffs, lines to migrate by hand, notes, install commands and environment variables |
It is safe to run on a working tree:
- It never reads or writes outside
--dir. Symbolic links that leave the folder are not followed, andnode_modules,.git, build output (dist,build,.next,out…), virtual environments and vendor folders are skipped. It reads at most 5,000 files of up to 1 MB. - A file that changed while it ran is not written, and a new file never replaces one that appeared meanwhile.
- Anything it can't map with certainty is left exactly as it was and listed under "Migrate by hand" with its
file:lineand what to do. A file that still uses Sentry keeps its Sentry import, so a partly migrated project still builds. - Running it again changes nothing that is already migrated. Fix the listed lines and run it until nothing is left.
Commit or stash your work first, so git diff shows exactly what --write changed. Then install what the report says, set the environment variables it lists, build, run your tests, and send a test event: apphelm send-event --message "AppHelm migration check" --product prd_….
#What it rewrites in JavaScript and TypeScript
| Sentry | Becomes |
|---|---|
Sentry.init({ dsn, release, environment, tracesSampleRate, … }) |
A client module (src/apphelm.ts for Node and Vite projects, lib/apphelm.ts for Next.js) with the key and ids from environment variables and the options that carry over. Where the init was: instrument(apphelm, …) and apphelm.captureUnhandled() (Node), registerApphelm(apphelm) (Next.js server), or an import of the client (browser) |
captureException, captureMessage(msg, level) |
apphelm.captureException, apphelm.captureMessage(msg, { level }) on Node, apphelm.captureMessage(msg, level) in the browser |
Node setUser, setTag, setTags, setContext, addBreadcrumb, withScope, getCurrentScope() |
The same functions from @sansavision/apphelm. Only the user id is kept, hashed |
Browser setTag, setTags, setContext, getCurrentScope().setLevel(…) / .setFingerprint(…) |
apphelm.setTag, apphelm.setTags, apphelm.setContext, apphelm.setLevel, apphelm.setFingerprint: the browser client is its own scope |
lastEventId(), Sentry.logger.info(…) and the other levels, logger.fmt |
apphelm.lastEventId(), apphelm.logger.info(…), apphelm.logger.fmt |
startSpan, startSpanManual, startInactiveSpan, withActiveSpan, getActiveSpan, continueTrace |
The same names from @sansavision/apphelm (Node) or @sansavision/apphelm/tracing (browser) |
startTransaction({ name, op }) (Node) |
apphelm.startTransaction(name, { op }) |
flush, close, captureFeedback, captureEvent, withMonitor (Node) |
apphelm.flush, apphelm.close, apphelm.captureFeedback, apphelm.captureEvent, apphelm.withMonitor |
setupExpressErrorHandler(app), Handlers.requestHandler(), Handlers.errorHandler() |
setupExpressErrorHandler(app, apphelm), expressRequestHandler(apphelm), expressErrorHandler(apphelm) |
export const onRequestError = Sentry.captureRequestError |
apphelmOnRequestError(apphelm) |
<Sentry.ErrorBoundary>, withErrorBoundary, withProfiler, showReportDialog |
<ApphelmErrorBoundary> (inside <ApphelmProvider client={apphelm}>), withErrorBoundary and withProfiler from @sansavision/apphelm/react, apphelm.showReportDialog |
sentryVitePlugin, sentryRollupPlugin, sentryWebpackPlugin, sentryEsbuildPlugin, withSentryConfig |
apphelmVite, apphelmRollup, apphelmWebpack, apphelmEsbuild, withApphelmConfig |
sentry-cli in package.json scripts and CI files |
The matching apphelm command (sourcemaps inject/upload, releases new/finalize/set-commits, releases propose-version, releases deploys new, releases files … upload-sourcemaps, debug-files upload, upload-dif, upload-dsym, upload-proguard, monitors run, send-event) |
@sentry/* dependencies |
@sansavision/apphelm (a Sentry package still imported somewhere is kept) |
Sentry.init options move into the client module when AppHelm has them: release, environment, tracesSampleRate, sampleRate, debug, enabled, attachStacktrace, maxBreadcrumbs, beforeBreadcrumb, ignoreErrors, ignoreTransactions, denyUrls, allowUrls, initialScope, profilesSampleRate and tracePropagationTargets. Options AppHelm doesn't need are dropped with a note: sendDefaultPii (AppHelm never sends IP addresses, cookies or emails), autoSessionTracking, normalizeDepth, maxValueLength, sendClientReports and enableLogs.
#What it leaves for you
These are listed with their line and the replacement to write:
- Options with logic of their own:
beforeSend(AppHelm's gets{ eventName, properties }),beforeSendTransaction,beforeSendLog,tracesSampler,profilesSampler(use a fixedprofilesSampleRate),integrations,transportandtunnel(use the browser client'sendpointoption). - Scope methods AppHelm doesn't have (
setExtra,setExtras), and a wholewithScopethat uses them; a browserwithScopeorsetUser(in the browser useapphelm.identify(String(user.id))at sign-in andapphelm.reset()at sign-out). getCurrentHub,getClient,configureScope,Sentry.metrics(AppHelm has no metrics API: send an event or a log line),Integrations,captureCheckIn,setMeasurement, and a NodecaptureExceptionwhose return value is used (it returns a promise of{ eventId }).- Replay and feedback integrations: session replay is the browser client's
replayoption and needs replay consent; the feedback button isfeedbackButton(apphelm)from@sansavision/apphelm/user-feedback. - React Router, Angular, SvelteKit, Nuxt and React Native packages, with the AppHelm call for each (
@sansavision/apphelm/tracing/react-router,/angular,/svelte,/nuxt,/react-native). - Single-file components (
.vue,.svelte,.astro) and CommonJSrequire. - Next.js client code (
sentry.client.config,instrumentation-client): the report shows the provider to add to your root layout instead.
The browser SDK sends nothing until analytics consent is given (apphelm.setConsent({ analytics: true })); the report reminds you.
#Other languages
For Python, Swift, Kotlin and Android, Flutter, Go, Ruby, PHP, .NET, Rust and Elixir, the command finds the Sentry dependency in the manifest (requirements*.txt, pyproject.toml, Package.swift, Podfile, build.gradle(.kts), pom.xml, pubspec.yaml, go.mod, Gemfile, composer.json, *.csproj, Cargo.toml, mix.exs) and prints, for that language, the install command, the init code and a Sentry-to-AppHelm table. It doesn't change those files. Install and configure has the full setup for each platform.
#Sentry to AppHelm, call by call
Choose your language in the sidebar. These are the same tables migrate-from-sentry prints.
Sentry (@sentry/node, @sentry/nextjs) |
AppHelm (@sansavision/apphelm) |
|---|---|
Sentry.init({ dsn, … }) |
export const apphelm = new Apphelm({ apiKey: process.env.APPHELM_API_KEY, workspaceId, productId, … }), then instrument(apphelm) |
Sentry.captureException(err) |
await apphelm.captureException(err) (resolves to { eventId }) |
Sentry.captureMessage(msg, "warning") |
await apphelm.captureMessage(msg, { level: "warning" }) |
Sentry.setUser({ id }), setTag, setTags, setContext, addBreadcrumb({ category, message }) |
the same functions from @sansavision/apphelm |
Sentry.withScope((scope) => …) |
withScope((scope) => …) |
Sentry.startSpan({ name, op }, cb) |
startSpan({ name, op }, cb) |
Sentry.withMonitor("slug", async () => …) |
await apphelm.withMonitor("slug", async () => …) |
Sentry.flush(), Sentry.close() |
await apphelm.flush(), await apphelm.close() |
Sentry.logger.info(msg, attrs) |
apphelm.logger.info(msg, attrs) |
Sentry.setupExpressErrorHandler(app) |
setupExpressErrorHandler(app, apphelm) |
Sentry.setupFastifyErrorHandler(app) |
await fastify.register(fastifyIntegration(apphelm)) |
withSentryConfig(nextConfig) |
withApphelmConfig(nextConfig) from @sansavision/apphelm/next/config |
nodeProfilingIntegration() (@sentry/profiling-node) |
not needed: profilesSampleRate on the client |
Sentry (@sentry/browser, /react, /vue, /svelte) |
AppHelm (@sansavision/apphelm/browser) |
|---|---|
Sentry.init({ dsn, … }) |
export const apphelm = createBrowserSdk({ key: "ahl_pub_…", workspaceId, productId, … }) |
Sentry.captureException(err) |
apphelm.captureException(err) (returns the event id) |
Sentry.captureMessage(msg, "warning") |
apphelm.captureMessage(msg, "warning") |
Sentry.setTag, setTags, setContext |
apphelm.setTag, apphelm.setTags, apphelm.setContext |
Sentry.setUser({ id }) |
apphelm.identify(String(user.id)) at sign-in, apphelm.reset() at sign-out |
Sentry.addBreadcrumb({ message, category }) |
apphelm.addBreadcrumb(message, category) |
Sentry.startSpan({ name, op }, cb) |
startSpan({ name, op }, cb) from @sansavision/apphelm/tracing |
browserTracingIntegration() |
not needed: tracesSampleRate traces page loads, navigations and requests |
replayIntegration() + replaysSessionSampleRate |
the replay: { sampleRate, onErrorSampleRate } option; records after setConsent({ analytics: true, replay: true }) |
feedbackIntegration() |
feedbackButton(apphelm) from @sansavision/apphelm/user-feedback, or apphelm.showReportDialog() |
<Sentry.ErrorBoundary> |
<ApphelmErrorBoundary> inside <ApphelmProvider client={apphelm}> (@sansavision/apphelm/react) |
Sentry.flush() |
await apphelm.flush() |
sentryVitePlugin() / sentryWebpackPlugin() |
apphelmVite() from @sansavision/apphelm/vite / apphelmWebpack() from @sansavision/apphelm/webpack |
Sentry (@sentry/react-native) |
AppHelm (@sansavision/apphelm/react-native) |
|---|---|
Sentry.init({ dsn, … }) |
createReactNativeSdk({ apiKey, workspaceId, productId, storage, appState }); apphelm init --platform react-native writes it |
Sentry.captureException(err) |
await mobile.captureException(err) |
Sentry.setTag, setTags, setContext, setLevel, setFingerprint, lastEventId |
the same methods on the client |
mobileReplayIntegration() with replaysSessionSampleRate |
replay: mobileReplay({ capture: replayCapture, sessionSampleRate, onErrorSampleRate }) from @sansavision/apphelm/react-native-replay, with the native package @sansavision/apphelm-react-native-replay; call mobile.setReplayConsent(true) once the person agreed |
Sentry.Mask |
<ApphelmReplayMask> (inputs are masked by default) |
hermesProfilingIntegration() |
profiling: hermesProfiling({ profilesSampleRate, sampler: hermesSampler }) from @sansavision/apphelm/react-native-profiling, with @sansavision/apphelm-react-native-profiler |
| Source maps and symbols from the Sentry build plugin | apphelm react-native gradle and apphelm react-native xcode print the build steps |
Sentry (sentry-sdk) |
AppHelm (apphelm) |
|---|---|
sentry_sdk.init(dsn=…, release=…, environment=…, traces_sample_rate=…) |
apphelm.init(os.environ["APPHELM_API_KEY"], workspace_id=…, product_id=…, release=…, environment=…, traces_sample_rate=…) |
sample_rate, debug, enabled, ignore_transactions, before_send_log, profiles_sample_rate |
the same init options |
ignore_errors=[ZeroDivisionError] |
ignore_errors=["ZeroDivisionError"] (names or message parts as strings, or compiled patterns) |
sentry_sdk.capture_exception(err) |
apphelm.capture_exception(err) |
sentry_sdk.capture_message(msg, level="warning") |
apphelm.capture_message(msg, level="warning") |
sentry_sdk.capture_event(event) |
apphelm.capture_event(event) (exception or message, level, fingerprint, tags) |
sentry_sdk.set_user({"id": user.id}) |
apphelm.set_user(user.id) (only a hash is sent) |
set_tag, set_tags, set_context |
apphelm.set_tag, apphelm.set_tags, apphelm.set_context |
set_extra |
no equivalent: use set_tag or set_context |
add_breadcrumb(category=…, message=…) |
apphelm.add_breadcrumb(message, category=…) |
with sentry_sdk.new_scope() as scope: |
with apphelm.new_scope() as scope: |
start_transaction(name=…, op=…), start_span(op=…) |
with apphelm.start_transaction(name, op=…):, with apphelm.start_span(op, description): |
sentry_sdk.flush() |
apphelm.flush(timeout=2.0) / apphelm.close(timeout=2.0) |
@sentry_sdk.monitor(monitor_slug="…") |
@apphelm.monitor("slug", schedule="0 3 * * *") or apphelm.check_in("slug", "ok") |
capture_feedback |
apphelm.capture_feedback(message, associated_event_id=…) (needs feedback:write) |
sentry_sdk.logger.info(msg, attributes={…}) |
apphelm.logger.info(msg, {…}) |
| Django, Flask, FastAPI, Celery integrations | apphelm_django.ApphelmMiddleware, apphelm_flask.init_app(app), apphelm_asgi.ApphelmMiddleware, apphelm_celery.instrument() |
Sentry (sentry-cocoa) |
AppHelm |
|---|---|
SentrySDK.start { options in options.dsn = … } |
let apphelm = ApphelmClient(options: ApphelmOptions(apiKey: …, workspaceId: …, productId: …, release: …, environment: …, tracesSampleRate: …)) |
options.sampleRate, debug, enabled, ignoreErrors, ignoreTransactions, beforeSendLog |
the same ApphelmOptions properties |
SentrySDK.capture(error: error) |
try await apphelm.captureException(error) |
SentrySDK.capture(message: msg) |
try await apphelm.captureMessage(msg, level: .warning) |
SentrySDK.setUser(User(userId: id)) |
apphelm.setUser(id: id) |
scope.setTag(value: v, key: k) |
apphelm.setTag(k, v) |
scope.setContext(value: value, key: key) |
apphelm.setContext(key, value) (the name comes first) |
SentrySDK.addBreadcrumb(crumb) |
apphelm.addBreadcrumb(category: …, message: …) |
SentrySDK.startTransaction(name:operation:) |
apphelm.startTransaction(name, op: …), then transaction.startSpan(op, description: …) |
SentrySDK.flush(timeout:), SentrySDK.close() |
await apphelm.flush(timeout:), await apphelm.close() |
SentrySDK.capture(feedback:) |
try await apphelm.captureFeedback(message, associatedEventId: …) |
| Cron check-ins | try await apphelm.checkIn("slug", status: .ok) or try await apphelm.withMonitor("slug") { … } |
sentry-cli debug-files upload |
apphelm debug-files upload <App>.app.dSYM --product prd_… |
Sentry (io.sentry:sentry-android) |
AppHelm |
|---|---|
SentryAndroid.init(context) { it.dsn = … } |
Apphelm.setup(this, ApphelmConfig(BuildConfig.APPHELM_API_KEY, workspaceId, productId)) in Application.onCreate |
Sentry.captureException(e) |
Apphelm.captureException(e) |
Sentry.captureMessage(msg, SentryLevel.WARNING) |
Apphelm.captureMessage(msg, MessageLevel.WARNING) |
Sentry.setUser(User().apply { id = … }) |
Apphelm.setUser(id) |
Sentry.setTag(k, v) |
Apphelm.setTag(k, v) |
Sentry.setExtra, scope.setContexts(name, map) |
Apphelm.setContext(name, map) |
Sentry.addBreadcrumb(…) |
Apphelm.addBreadcrumb(category, message) |
Sentry.startTransaction(name, op) |
Apphelm.client?.startTransaction(name, op) |
Sentry.flush(timeoutMs), Sentry.close() |
Apphelm.flush(timeoutMs), Apphelm.close(timeoutMs) |
SentryOkHttpInterceptor() |
ApphelmOkHttpInterceptor() |
SentryTimberTree |
ApphelmTimberTree |
| ProGuard/R8 upload by the Sentry Gradle plugin | apphelm debug-files upload app/build/outputs/mapping/release/mapping.txt --release <version> --product prd_… |
Sentry (io.sentry:sentry) |
AppHelm |
|---|---|
Sentry.init { it.dsn = … } |
val apphelm = ApphelmClient(ApphelmOptions(apiKey = System.getenv("APPHELM_API_KEY"), workspaceId = …, productId = …)) |
Sentry.captureException(e) |
apphelm.captureException(e) |
Sentry.captureMessage(msg, SentryLevel.WARNING) |
apphelm.captureMessage(msg, MessageLevel.WARNING) |
Sentry.setUser(…), setTag, setExtra |
apphelm.setUser(id), apphelm.setTag(k, v), apphelm.setContext(name, map) |
Sentry.withScope { … }, Sentry.pushScope() |
apphelm.withScope { scope -> … }, apphelm.pushScope().use { … } |
Sentry.startTransaction(name, op) |
apphelm.startTransaction(name, op), then transaction.startSpan(op, description) |
CheckInUtils.withCheckIn(slug) { … } |
apphelm.withMonitor(slug) { … } |
Sentry.flush(…), Sentry.close() |
apphelm.flush(), apphelm.close() |
Sentry (sentry_flutter) |
AppHelm |
|---|---|
SentryFlutter.init((o) => o.dsn = …, appRunner: () => runApp(MyApp())) |
await Apphelm.setup(ApphelmConfig(apiKey: …, workspaceId: …, productId: …)); runApp(MyApp()); (or Apphelm.runGuarded) |
Sentry.captureException(e, stackTrace: st) |
Apphelm.instance.captureException(e, stackTrace: st) |
Sentry.captureMessage(msg, level: SentryLevel.warning) |
Apphelm.instance.captureMessage(msg, level: ApphelmLevel.warning) |
scope.setUser(SentryUser(id: id)) |
Apphelm.instance.setUser(id) |
scope.setTag(k, v), setContexts(name, map) |
Apphelm.instance.setTag(k, v), Apphelm.instance.setContext(name, map) |
Sentry.addBreadcrumb(Breadcrumb(message: …, category: …)) |
Apphelm.instance.addBreadcrumb(message, category: …) |
Sentry.startTransaction(name, op) |
Apphelm.instance.startTransaction(name, op) |
SentryNavigatorObserver() |
ApphelmObserver() |
dio.addSentry() |
ApphelmDioInterceptor in an InterceptorsWrapper |
allowUrls / denyUrls (web: the page URL) |
ApphelmConfig.allowUrls / denyUrls match the error's top stack frame instead |
Sentry.close() |
await Apphelm.close() |
Sentry (sentry-go) |
AppHelm |
|---|---|
sentry.Init(sentry.ClientOptions{Dsn: …}) |
client, err := apphelm.New(apphelm.Config{APIKey: os.Getenv("APPHELM_API_KEY"), WorkspaceID: …, ProductID: …}) |
ClientOptions{SampleRate: 0.5} |
apphelm.Config{SampleRate: apphelm.Float(0.5)} |
IgnoreErrors (patterns) |
IgnoreErrorsRegexp (IgnoreErrors takes plain substrings) |
sentry.CaptureException(err) |
client.CaptureException(err, apphelm.ExceptionOptions{}) (CaptureExceptionContext(ctx, …) inside a request) |
sentry.CaptureMessage(msg) |
client.CaptureMessage(msg, apphelm.ExceptionOptions{}) |
scope.SetUser, SetTag, SetContext |
scope.SetUser(id), scope.SetTag(k, v), scope.SetContext(name, map[string]any{…}) |
sentry.WithScope(…), hub.Clone() |
ctx, scope := client.NewScope(ctx) |
sentry.StartTransaction(ctx, name), sentry.StartSpan(ctx, op) |
ctx, tx := client.StartTransaction(ctx, name), ctx, span := apphelm.StartSpan(ctx, op) |
sentry.Flush(2 * time.Second) |
client.Flush(ctx), defer client.Close() |
sentryhttp.New(…).Handle(h) |
client.Middleware(h) |
sentryslog handler |
client.SlogLogHandler(next, slog.LevelInfo) |
sentry.CaptureCheckIn(…) |
client.CheckIn(ctx, apphelm.CheckIn{…}) or client.WithMonitor(ctx, slug, cfg, job) |
Sentry (sentry-ruby) |
AppHelm |
|---|---|
Sentry.init { |config| config.dsn = … } |
Apphelm.init(api_key: ENV.fetch("APPHELM_API_KEY"), workspace_id: …, product_id: …) |
config.excluded_exceptions |
Apphelm.init(ignore_errors: ["ActiveRecord::RecordNotFound", …]) |
Sentry.capture_exception(e) |
Apphelm.capture_exception(e) |
Sentry.capture_message(msg, level: :warning) |
Apphelm.capture_message(msg, level: "warning") |
Sentry.set_user(id: user.id) |
Apphelm.set_user(user.id) |
Sentry.set_tags(k => v), set_context(name, hash) |
Apphelm.set_tags(k => v), Apphelm.set_context(name, hash) |
Sentry.with_scope { |scope| … } |
Apphelm.with_scope { |scope| … } |
Sentry.start_transaction(name: …, op: …) |
Apphelm.start_transaction(name: …, op: …), Apphelm.with_span(op, description) { … } |
Sentry.capture_check_in |
Apphelm.with_monitor("slug") { … } or Apphelm.check_in("slug", "ok") |
Sentry.close |
Apphelm.close(timeout) |
sentry-rails, sentry-sidekiq |
the Railtie loads with require "apphelm"; Rack: use Apphelm::Rack; Sidekiq and Active Job integrations in the same gem |
Sentry (sentry/sentry) |
AppHelm |
|---|---|
\Sentry\init(['dsn' => …]) |
$apphelm = new Apphelm\Client(apiKey: getenv('APPHELM_API_KEY'), workspaceId: …, productId: …) |
\Sentry\captureException($e) |
$apphelm->captureException($e) |
\Sentry\captureMessage($msg, Severity::warning()) |
$apphelm->captureMessage($msg, 'warning') |
$scope->setUser(['id' => $id]), setTag, setContext |
$apphelm->setUser($id), $apphelm->setTag($k, $v), $apphelm->setContext($name, [...]) |
\Sentry\withScope(…) |
$apphelm->withScope(fn ($scope) => …) |
\Sentry\startTransaction(…) |
$apphelm->startTransaction($name, $op), $apphelm->startSpan($op, $description) |
\Sentry\captureCheckIn(…) |
$apphelm->checkIn('slug', 'ok') or $apphelm->withMonitor('slug', fn () => …) |
sentry/sentry-laravel |
Apphelm\Laravel\ApphelmServiceProvider; log channel 'via' => Apphelm\Laravel\LogChannel::class |
sentry/sentry-symfony |
Apphelm\Symfony\ApphelmBundle (rename the sentry: config key to apphelm:) |
Sentry\Monolog\Handler |
Apphelm\Integration\MonologHandler |
Sentry (Sentry NuGet) |
AppHelm |
|---|---|
SentrySdk.Init(o => o.Dsn = …), builder.WebHost.UseSentry() |
new ApphelmClient(new ApphelmOptions { ApiKey = …, WorkspaceId = …, ProductId = … }), or builder.Services.AddApphelm(…) and app.UseApphelm() |
SentrySdk.CaptureException(ex) |
apphelm.CaptureException(ex) |
SentrySdk.CaptureMessage(msg, SentryLevel.Warning) |
apphelm.CaptureMessage(msg, ApphelmLevel.Warning) |
ConfigureScope(s => s.User = …), SetTag |
apphelm.SetUser(id), apphelm.SetTag(k, v) |
SentrySdk.PushScope() |
using (apphelm.PushScope()) { … } |
SentrySdk.StartTransaction(name, op) |
apphelm.StartTransaction(name, op), apphelm.StartSpan(op, description) |
SentrySdk.FlushAsync(timeout) |
await apphelm.FlushAsync(), await apphelm.DisposeAsync() |
Sentry ILogger logs |
builder.Logging.AddApphelmLogs() |
SentrySdk.CaptureCheckIn(…) |
await apphelm.CheckInAsync(slug, CheckInStatus.Ok) or await apphelm.WithMonitorAsync(slug, job) |
Sentry.Profiling |
options.AddProfiling() with the SansaVision.Apphelm.Profiling package |
Sentry (sentry crate) |
AppHelm |
|---|---|
let _guard = sentry::init((dsn, sentry::ClientOptions { … })) |
let apphelm = apphelm::Client::new(apphelm::Options::new(std::env::var("APPHELM_API_KEY")?).workspace_id(…).product_id(…))? |
sentry::capture_error(&err) |
apphelm.capture_exception(&err, apphelm::ExceptionOptions::default())? |
sentry::capture_message(msg, Level::Warning) |
apphelm.capture_message(msg, apphelm::ExceptionOptions::default())? |
configure_scope(|s| s.set_user(…)), set_tag |
hub.set_user(id), hub.set_tag(k, v) with apphelm::Hub::from(&apphelm) |
sentry::with_scope(…) |
hub.with_scope(…) |
sentry::start_transaction(ctx) |
hub.start_transaction(apphelm::TransactionContext::new(name, op)) |
drop(_guard), client.close(timeout) |
apphelm.close(timeout) |
sentry_tracing::layer() |
apphelm::ApphelmTracingLayer::new(&client) (feature tracing) |
sentry-tower |
apphelm::ApphelmLayer |
Sentry (:sentry) |
AppHelm (:apphelm) |
|---|---|
config :sentry, dsn: … |
config :apphelm, api_key: System.fetch_env!("APPHELM_API_KEY"), workspace_id: …, product_id: … |
Sentry.capture_exception(e, stacktrace: __STACKTRACE__) |
Apphelm.capture_exception(e, __STACKTRACE__) |
Sentry.capture_message(msg, level: :warning) |
Apphelm.capture_message(msg, level: :warning) |
Sentry.Context.set_user_context(%{id: id}) |
Apphelm.set_user(id) |
Sentry.Context.set_tags_context(%{k => v}) |
Apphelm.set_tags(%{k => v}) |
Sentry.Context.add_breadcrumb(%{message: …}) |
Apphelm.add_breadcrumb(%{message: …, category: …}) |
Sentry.capture_check_in(…) |
Apphelm.with_monitor("slug", fn -> … end) or Apphelm.check_in("slug", :ok) |
Sentry.PlugCapture, Sentry.PlugContext |
use Apphelm.Plug (before Plug.ErrorHandler) |
Sentry.LoggerHandler |
Apphelm.LoggerHandler, plus Apphelm.LogsHandler for log lines |
For every language: AppHelm keeps only a hash of the user id, has no "extras" (use tags or contexts), and has no metrics API (send an event or a log line). The full option list for each SDK is on Install and configure.
#Import your Sentry setup
The DSN brings new events. To bring what you built in Sentry, open Settings → Import → Sentry. Nothing is written until you have read a preview and pressed Start.
Create a read-only Sentry token
In Sentry create a personal token (User settings → Personal Tokens; it starts with
sntryu_, and reads what your user can read, so use an owner's or manager's account) or an internal integration token (Settings → Developer Settings → Custom Integrations). Give it exactly these scopes:org:read project:read event:read alerts:read member:read team:read. Organization tokens (sntrys_…) can't be used: Sentry limits them to releases.Choose the region and paste the token
US (
https://sentry.io), EU (https://de.sentry.io), or your own Sentry at a public https address on port 443. The token is checked at once, stored encrypted, used only to read, and deleted as soon as the migration ends, is cancelled or is discarded. It is never shown again.Read the preview
Every alert, monitor and project is listed as Translates, Partly (created switched off, with the reasons, so nothing alerts more or less than in Sentry until you have read them) or Not translated (with why). Choose a product for each Sentry project (a new one, an existing one, or skip), what to bring, which issues (unresolved only, or every status) and how many per project (default 1,000, at most 5,000).
Start it
It runs by itself in the background, in bounded steps, and you can leave the page. It survives deploys, waits when Sentry rate-limits it, and can be paused, resumed and cancelled. Running it again never creates anything twice, and nothing it imports sends an alert, email or webhook.
| Sentry | AppHelm | Not kept |
|---|---|---|
| Projects | New or existing products | Platform and team on the product |
| Issue alerts (new issue, regression, frequency) | Error alert rules | 1-minute windows become 5 minutes; percent-change, user-count and session conditions; PagerDuty, Opsgenie, Teams, Discord, Jira and other integrations |
Metric alerts (count(), p95 duration, failure_rate(), crash-free sessions) |
Metric alerts | Other aggregates, anomaly detection, warning and resolve thresholds |
| Cron monitors | Cron monitors with the same slug, so check-ins keep matching | Schedules in time zones with daylight saving (recreate them in UTC) |
| Uptime monitors (GET or HEAD, public https) | The product's uptime check, behind an unpublished status page | One per product; POST bodies and headers |
| Releases (up to 500 per project) and deploys | Releases and deploys | |
| Issues (up to your cap, most recent first) | Issues marked imported, with counts, status, assignee and a link back to Sentry | Raw events, attachments, stack traces |
| Teams (up to 100) and ownership rules | Teams with the same slug; ownership rules | CODEOWNERS files and code mappings |
| Members | Invitations, only for the people you tick |
Grouping after the switch. Sentry computes its grouping on its servers, so the first new event of an imported issue may open a new issue beside it. Select both in Errors and choose Merge; later events then count on the kept issue.
Not imported: raw events and their stacks, attachments and minidumps, session replays and profiles (Sentry's API doesn't export them). Keep your Sentry organization read-only until its retention runs out if you may need them.
#Dual-run checklist
Run both for a week or two, sending the same environments, or compare one environment on each:
- For the same day and environment, new issues and events in AppHelm are close to Sentry's. Merge any split issues.
- Your pipeline reports releases and deploys to AppHelm (
apphelm deploys new), so suspect commits and "resolved in next release" work. - Every cron monitor shows check-ins in AppHelm.
- The product's uptime check is green. Publish the status page if you want it public.
- Every rule created switched off has been read, its recipients fixed, and turned on in Errors → Alerts.
- Everyone who needs access has accepted an invitation.
Then switch the remaining environments, move every app to the AppHelm SDK, turn off the matching Sentry alerts so no one is paged twice, revoke the Sentry token, and cancel Sentry once you no longer need its history.
#Not supported
Through Sentry's SDKs, AppHelm doesn't take: Session Replay (use AppHelm's own replay), Sentry Android's legacy ART-trace profiles, attachments other than minidumps, CSP reports, Sentry metrics, server session aggregates, Sentry's own issue grouping, and monitor environments. Each is counted in Errors → Settings → Move from Sentry when an SDK sends it. AppHelm has no SDK of its own for native C/C++, Unity or Unreal yet; keep those apps on the DSN.
#Troubleshooting
| Symptom | Likely cause | What to do |
|---|---|---|
401 "This DSN uses a browser key, which only works from a web page" |
A server, mobile or desktop SDK uses a DSN built from a browser key | Build the DSN from a server key with events:write |
401 "The browser key is unknown, revoked, or this page's origin isn't in its allowed origins" |
The page's origin isn't on the key | Add the origin to the key, or create a key for it |
403 "The server key lacks the events:write scope" or "can't send to this project" |
The key lacks the scope, or is limited to another product | Use a key with events:write for this product, and rebuild the DSN |
403 with the project number |
The project number isn't the key's product | Copy the project number from the product's Errors → Settings |
| Counts under "Move from Sentry" for unknown items or fields | The SDK is newer than the tested versions | Pin a tested version, or switch that app to the AppHelm SDK |
| Two issues for one Sentry issue | AppHelm groups differently from Sentry | Select both in Errors and Merge |
| Check-ins refused with a time zone count | The monitor's time zone has daylight saving | Give the monitor a UTC schedule |
migrate-from-sentry says "No Sentry SDK found" |
It ran in the wrong folder | Run it in the project's root, or pass --dir <path> |
migrate-from-sentry lists lines under "Migrate by hand" |
It couldn't map them with certainty | Rewrite each with the advice shown, then run it again |