Dokumentáció

Az OpenErrorAPI a Sentry protokollt beszéli, így megtartod a hivatalos SDK-t, amit már használsz, és egy sort változtatsz meg: a DSN-t. Ez az oldal megmondja hogyan, és — ugyanilyen fontos — mit nem támogatunk.

Váltás Sentryről 10 perc alatt

Nem kell SDK-t cserélni és kódot átírni. A meglévő SDK-t egy másik DSN-re irányítod.

  1. 1

    Hozz létre egy projektet a konzolon. Kapsz egy DSN-t https://PUBLIC_KEY@openerrorapi.com/PROJECT_ID formában.

  2. 2

    Cseréld le a DSN-t a meglévő Sentry.init() hívásban — általában egy környezeti változó. Tartsd meg az SDK-t, a verziót és minden beállítást, amit eddig használtál.

  3. 3

    Telepítsd és váltsd ki egy hibát. Másodperceken belül megjelenik a konzolon, ugyanúgy csoportosítva, mint Sentryben volt.

PHP

composer require sentry/sentry
\Sentry\init(['dsn' => 'https://PUBLIC_KEY@openerrorapi.com/PROJECT_ID']);

JavaScript / TypeScript

npm i @sentry/browser
Sentry.init({ dsn: 'https://PUBLIC_KEY@openerrorapi.com/PROJECT_ID' });

Node.js

npm i @sentry/node
Sentry.init({ dsn: 'https://PUBLIC_KEY@openerrorapi.com/PROJECT_ID' });

Python

pip install sentry-sdk
sentry_sdk.init(dsn="https://PUBLIC_KEY@openerrorapi.com/PROJECT_ID")

Go

go get github.com/getsentry/sentry-go
sentry.Init(sentry.ClientOptions{Dsn: "https://PUBLIC_KEY@openerrorapi.com/PROJECT_ID"})

Dart / Flutter

flutter pub add sentry_flutter
await SentryFlutter.init((o) => o.dsn = 'https://PUBLIC_KEY@openerrorapi.com/PROJECT_ID');

Már töltesz fel source map-eket sentry-cli segítségével? Tartsd meg azt a lépést is — állítsd be a SENTRY_URL-t https://openerrorapi.com-ra és használj egy upload tokent SENTRY_AUTH_TOKEN-ként.

Sentry kompatibilitás, őszintén

A kompatibilitás a teljes ígéret, ami miatt ez a legveszélyesebb túlzásba esni. Ez a táblázat ugyanabból a forrásból generált, amit a kód és a gép által olvasható dokumentáció használ, így nem csúszhat el észrevétlenül a valóságtól.

7 terület teljesen támogatott · 3 részleges · 3 nem támogatott.

Terület Státusz Részlet
Envelope ingest (/api/{id}/envelope/) Támogatott The modern endpoint every current SDK uses. Gzip/deflate bodies, multiple items per envelope, all three auth methods (X-Sentry-Auth header, querystring, envelope dsn header).
Store ingest (/api/{id}/store/) Támogatott Legacy endpoint for older SDKs. Same processing pipeline as envelopes.
Error events & grouping Támogatott Exceptions, messages, stack traces, tags, user, contexts, breadcrumbs, request. Grouping by fingerprint with an explicit `fingerprint[]` override.
Sessions / release health Támogatott Session envelope items are processed; crash-free sessions and users are shown per release. Available from the Team plan.
Security reports (CSP) Támogatott CSP violation reports are stored and grouped like any other issue. Point report-uri at /api/{project_id}/security/?sentry_key={PUBLIC_KEY} — the browser cannot send headers, so the key goes in the URL. Both the classic csp-report body and the Reporting API array are accepted.
Source maps Támogatott Upload via our API, from the console, or with sentry-cli. Frames are de-minified on read, so uploading a map fixes old events too.
sentry-cli Részleges Releases (new / finalize / set-commits) and source-map upload work unchanged. Chunked upload is not implemented — sentry-cli detects that and falls back to the regular upload automatically.
User feedback widget Támogatott Embeddable widget; reports land next to the errors they belong to.
Transactions / performance Részleges Transaction envelope items are accepted so SDKs do not error, but we do not build a performance product on top of them. If you need distributed tracing, keep Sentry — we are an error tracker.
Logs (log envelope items) Nem támogatott Not processed yet. Log items are ignored, which does not affect error reporting from the same SDK.
Cron monitors (check_in items) Részleges We have our own cron/heartbeat monitoring in the console, but the Sentry `check_in` envelope item is not wired to it yet.
Profiling, session replay Nem támogatott Deliberately out of scope. These are the reasons to stay on Sentry; we do not pretend otherwise.
Native symbolication (dSYM / ProGuard) Nem támogatott Not supported. Native mobile crashes arrive, but stay unsymbolicated.

Továbblépés