All Projects → rollbar → flash_rollbar

rollbar / flash_rollbar

Licence: other
Flash notifier for Rollbar

Programming Languages

actionscript
884 projects
shell
77523 projects
HTML
75241 projects

Projects that are alternatives of or similar to flash rollbar

Virtual Controllers
Virtual controls for use in Flash based games on touch devices. Includes thumbstick and button ui elements
Stars: ✭ 16 (+33.33%)
Mutual labels:  flash
rollbar-agent
A daemon to monitor log files and push messages to Rollbar
Stars: ✭ 67 (+458.33%)
Mutual labels:  rollbar
phaser-ui-comps
Phaser 3 UI Components built by Adobe Animate
Stars: ✭ 60 (+400%)
Mutual labels:  flash
kendryte-flash-windows
Kendryte flash utility for Windows
Stars: ✭ 28 (+133.33%)
Mutual labels:  flash
anytone-flash-tools
Independend flash tools for Anytone D878UV radio (and maybe others)
Stars: ✭ 31 (+158.33%)
Mutual labels:  flash
idfx
Tool for flash/monitor ESP-IDF and ESP8266_SDK apps on the WSL2 ⚡
Stars: ✭ 71 (+491.67%)
Mutual labels:  flash
toolchain
A cmake based toolchain with support for diffrent micrcocontrollers.
Stars: ✭ 16 (+33.33%)
Mutual labels:  flash
koa-better-error-handler
A better error-handler for Lad and Koa. Makes `ctx.throw` awesome (best used with koa-404-handler)
Stars: ✭ 51 (+325%)
Mutual labels:  flash
astra-flash
Fork of Astra Flash components
Stars: ✭ 15 (+25%)
Mutual labels:  flash
intel-joule-bios-flash-linux
Flashing the BIOS on an Intel Joule 570x from Linux
Stars: ✭ 18 (+50%)
Mutual labels:  flash
remote-pinetime-bot
Telegram Bot to flash and test PineTime firmware remotely
Stars: ✭ 23 (+91.67%)
Mutual labels:  flash
S51 UTF 8 FontLibrary
UTF-8 font dot matrix data is saved through external FLASH
Stars: ✭ 30 (+150%)
Mutual labels:  flash
flashmingo
Automatic analysis of SWF files based on some heuristics. Extensible via plugins.
Stars: ✭ 117 (+875%)
Mutual labels:  flash
use-color-change
📈📉React hook for flashing a text when a value becomes higher or lower
Stars: ✭ 32 (+166.67%)
Mutual labels:  flash
rollbar-java
Rollbar for Java and Android
Stars: ✭ 71 (+491.67%)
Mutual labels:  rollbar
we-js-logger
Universal logger with transports to Rollbar and Logentries. Uses bunyan under the hood.
Stars: ✭ 14 (+16.67%)
Mutual labels:  rollbar
swiffas
SWF parser and AVM2 (Actionscript 3) bytecode parser
Stars: ✭ 15 (+25%)
Mutual labels:  flash
Rollbar.NET
Rollbar for .NET
Stars: ✭ 62 (+416.67%)
Mutual labels:  rollbar
yii2-rollbar
Rollbar for Yii2
Stars: ✭ 36 (+200%)
Mutual labels:  rollbar
blflash
bl602 serial flasher
Stars: ✭ 41 (+241.67%)
Mutual labels:  flash

Rollbar notifier for Flash (AS3)

Flash (ActionScript 3) library for reporting exceptions, errors, and log messages to Rollbar.

Quick start

  1. Download the flash_rollbar code or just the Rollbar.swc file.
  2. Place the flash_rollbar/src directory in your source path or place the Rollbar.swc file in your project's library path.
  3. Call Rollbar.init(this, accessToken, environment); from your top-level DisplayObject.
package {
  import com.rollbar.notifier.Rollbar;

  public class MyApp extends Sprite {

    public static const ROLLBAR_ACCESS_TOKEN:String = "POST_CLIENT_ITEM_ACCESS_TOKEN";

    public function MyApp() {
      var environment:String = isDebug() ? "development" : "production";
      var person:Object = {id: getUserId(), email: getEmail(), name: getName()};  // optional
      Rollbar.init(this, ROLLBAR_ACCESS_TOKEN, environment, person);
    }
  }
}

Rollbar.init() installed a global error handler, so you don't need to do anything else.

Be sure to replace POST_CLIENT_ITEM_ACCESS_TOKEN with your project's post_client_item access token, which you can find in the Rollbar.com interface.

Requirements

  • Flash Player 10.1+
    • May work on 9, but not tested.
  • mxmlc/compc if you plan on building from the command-line
  • A Rollbar account

Reporting caught errors

If you want to instrument specific parts of your code, call Rollbar.handleError(err):

private function onEnterFrame(event:Event) {
    try {
      gameLoop(event);
    } catch (err:Error) {
      Rollbar.handleError(err);
    }
}

Advanced: to override parts of the payload before it is sent to the Rollbar API, pass them in the second argument to handleError(). For example, to control how your data will be grouped, you can pass a custom fingerprint:

Rollbar.handleError(err, {fingerprint: "a string to uniquely identify this error"});

The second argument, extraData, should be an object. Each key in extraData will overwrite the previous contents of the payload. For all options, see the API documentation.

Configuration

At the topmost level of your display list, instantiate the Rollbar singleton.

Rollbar.init(this, accessToken, environment);

Here's the full list of constructor parameters (in order):

parent
The parent display object container; should usually be ```this```. The notifier will report all errors for SWFs that are loaded with ```parent.loaderInfo```.
accessToken
Access token from your Rollbar project
environment
Environment name. Any string up to 255 chars is OK. For best results, use ```"production"``` for your production environment.

Default: "production"

person
Optional but can be one of:
  • A string identifier for the current person/user.
  • An object describing the current person/user, containing
    • Required - id, userId, user_id, user
    • Optional - email, userEmail, user_email, emailAddress, email_address
    • Optional - username, userName, user_name, name
  • A function returning an object like the one described above
rootPath
If you compiled the SWC/SWF using the debug or verbose stack trace flags, you'll want this to be the absolute path to the root of your Actionscript source code, not including the final ```/```.

Otherwise, set this to the source path relative to your repository's root. e.g. if your source tree looks like this:

/myApp/src/com/myApp

Set this to "src"

codeBranch
Name of the branch used to compile your Flash movie.

Default: "master"

serverData
An Object containing any data you would like to pass along with this item to store.
maxItemCount
The maximum number of items to send to Rollbar for the lifetime of the notifier instance. This is useful for rate-limiting the number of items sent to Rollbar.
endpointUrl
URL items are posted to.

Default: "https://api.rollbar.com/api/1/item/"

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].