Source maps
Readable stacks via CLI or dashboard
Symbolication needs the same release string in the SDK and on the uploaded map.
SDK
typescript
TraceRN.init({
apiKey: "trn_live_xxx",
release: "1.2.0", // must match upload
});CLI (recommended for CI)
bash
npm install -g @tracern/cli
# or: npx @tracern/cli ...
export TRACERN_API_URL=https://tracern-api.devlys.com
export TRACERN_TOKEN=trn_live_xxxxxxxx # project API key
export TRACERN_PROJECT_ID=proj_xxx
tracern sourcemaps upload \
--release 1.2.0 \
--file ./android/app/build/generated/sourcemaps/react/release/index.android.bundle.mapEAS / GitHub Actions sketch
yaml
- run: npx @tracern/cli sourcemaps upload --release ${{ env.APP_VERSION }} --file ./dist/index.map
env:
TRACERN_TOKEN: ${{ secrets.TRACERN_API_KEY }}
TRACERN_PROJECT_ID: ${{ secrets.TRACERN_PROJECT_ID }}You can also upload from Project → Settings → Source maps in the dashboard.
Last updated · TraceRN docs