Repository navigation
Crash reports and source map uploads - #7
Merged
Merged
Conversation
When the user turns them on (flaggr crash-reports on, or FLAGGR_CRASH_REPORTS=1), a panic is reported to the Flaggr team at https://flaggr.dev/api/ingest/cli-crashes, then re-panics as before. The report carries the panic's message and stack, the CLI's version, the subcommand name (never its arguments or flags) and the OS, architecture and Go version: never the token, URLs, flag keys or output. The endpoint takes no credential. DO_NOT_TRACK=1 and CI keep reports off; off by default, a crash prints how to report it instead. Errors a command returns are not crashes and are never reported. Uses the Go SDK's errorreport package (pinned to its branch commit until flaggr-go tags a release); THIRD_PARTY_NOTICES regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uploads the .map files under a build directory (gzipped, four at a time)
to PUT /api/projects/{id}/sourcemaps, each filed under its minified file's
path in stack traces (--url-prefix plus its path in the directory, without
.map), for --release. Flaggr's Issues page then shows minified frames as
the original source. list shows releases or a release's files; delete
removes a release's maps or one file's. --dry-run prints the mapping.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
flaggr-go's errorreport, which crash reports use, needs Go 1.27, so the CLI's go line follows; the README's go install note too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
internal/crash: opt-in crash reports. When the user turns them on (flaggr crash-reports on, orFLAGGR_CRASH_REPORTS=1), a panic in any command is reported to Flaggr's Issues page throughflaggr-go/errorreport(v0.2.0), in Flaggr's own project, viaPOST /api/ingest/cli-crashes.DO_NOT_TRACK=1and CI environments always disable them.flaggr sourcemaps upload|list|delete: upload a release's source maps so browser and React Native stacks show original files, lines and functions.Test plan
go build ./...,go test ./...🤖 Generated with Claude Code