Coder Social home page Coder Social logo

killroyboy / ti.sentry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from appwerft/ti.sentry

0.0 1.0 0.0 7.27 MB

Sentry crash reporting module for Axways Titanium ๐Ÿš€

Makefile 1.62% C++ 0.80% Java 97.43% JavaScript 0.05% Objective-C 0.08% Ruby 0.01% C 0.02%

ti.sentry's Introduction

It is the Axway Titanium module for sentry.

Open-source error tracking that helps developers monitor and fix crashes in real time. Iterate continuously. Boost efficiency. Improve user experience.

How to use

Initializing

First you have to add an entry in your tiapp.xml to reference your creds:

<property name="SENTRY_DSN_PRODUCTION" type="String">MY_SENTRY_DSN</property>
<property name="SENTRY_DSN_DEVELOPMENT" type="String">MY_SENTRY_DSN</property>

In app.js you can add a reference to module:

var Sentry = require("ti.sentry");

Alternativly or additional you can add the creds with this method:

Sentry.setDSN('MY_DSN_FROM_SENTRY_PORTAL');

Starting automaticly crash reporting

Sentry.startCrashReporting();

The method Sentry.stopCrashReporting(); is also exposed.

Capture a message

Sentry.captureMessage("Something significant may have happened");

Capture custom event

Sentry.captureEvent({
message : "Being awesome"
culprit : "Jon Doe"
});

More methods:

Record that a user sent a HTTP POST to example.com and it was successful.

Record the fact that user clicked a button to go from the main menu to the settings menu.

  • Sentry.addNavigationBreadcrumb("user.click", "main menu", "settings");

Record a general, application specific event

  • Sentry.addBreadcrumb("user.state_change", "logged in");

ti.sentry's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.