All Projects → gen2brain → acra-go

gen2brain / acra-go

Licence: Apache-2.0 license
Backend for Application Crash Reports for Android (ACRA)

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects
shell
77523 projects
CSS
56736 projects

acra-go

Backend for Application Crash Reports for Android - ACRA.

Installation

go install -v github.com/gen2brain/acra-go/acra-go

This will install server in $GOPATH/bin/acra-go.

Building

The build.sh script should configure your system on Linux and build the leveldb version of acra-go in bin/acra-go.

Download

Binary for linux/amd64 is available:

Setup

Server

Server by default listens on port 55000, you can bind it to other port like this:

acra-go -bind-addr :80

Client

ACRA should send reports to http://example.com:55000/send. Example annotation of your Android Application class:

@ReportsCrashes(formUri = "http://example.com:55000/send",
                formUriBasicAuthLogin = "yourusername", // optional
                formUriBasicAuthPassword = "y0uRpa$$w0rd", // optional
                reportType = org.acra.sender.HttpSender.Type.JSON, // recommended
                mode = ReportingInteractionMode.TOAST,
                resToastText = R.string.crash_toast_text)
public class MyApplication extends Application {
...
}

Usage

Usage of acra-go:
  -bind-addr string
        Bind address (default ":55000")
  -database-dir string
        Path to database directory (default ".")
  -htpasswd-backend string
        Path to htpasswd file, if empty backend auth is disabled
  -htpasswd-frontend string
        Path to htpasswd file, if empty frontend auth is disabled
  -read-timeout int
        Read timeout (seconds) (default 5)
  -write-timeout int
        Write timeout (seconds) (default 15)

Pages

  • /: dashboard of the crashes
  • /send: accepts POST and PUT requests from you app and stores report in db
  • /view: view all reports, returns json
  • /view?id=9823648d-20f6-4663-b8b5-f66f9fc97f81: view a single report, identified by report id

Screenshot

screenshot

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].