monitoring sourcemaps
Uploads source maps for a release, so stack traces from minified JavaScript and Dart show your original code. list shows what's been uploaded. See source maps for build setup and the order of steps in a deploy.
Signed in, the connection comes from your selected project. In CI, pass --url, --token and --environment, or set their environment variables, and no sign-in is needed. monitoring config prints the three values.
octri monitoring sourcemaps [list | upload [paths…]]octri monitoring sourcemaps upload [paths…]
Scans the paths for *.map files and uploads them for the release.
Arguments
[paths…]pathFolders or files to scan, recursively.
Flags
--url <url>stringThe monitoring service's address. Falls back to MONITORING_URL, then to your signed-in project.
--token <token>stringThe project's ingest token. Falls back to MONITORING_TOKEN, then to your signed-in project.
--environment <env>stringThe monitoring environment. Falls back to MONITORING_ENVIRONMENT, then to your signed-in project.
--release <release>stringThe release the files belong to. Falls back to MONITORING_RELEASE. It must match the release your deployed SDK reports.
--dry-runbooleanLists what would be uploaded and sends nothing.
octri monitoring sourcemaps list
Lists what's been uploaded.
Flags
--release <release>stringOnly one release.
Examples
Upload in CI
octri monitoring sourcemaps upload ./dist --release "$GIT_SHA"Related
octri monitoring sources: Upload Go, Rust, JVM and Swift source so stack frames show code.octri monitoring config: Print the three values a CI job needs to upload symbols.- Source maps