Giter Site home page Giter Site logo

atatus-js's People

Contributors

fizerkhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

atatus-js's Issues

Config, Notify not exported when importing with Rollup

Hi folks, trying to set things up and we use Rollup

import * as atatus from 'atatus-js';
atatus.config('our api key').install();

gives us the following notices in Rollup

'config' is not exported by 'node_modules\atatus-js\atatus.min.js'
'notify' is not exported by 'node_modules\atatus-js\atatus.min.js'

and the following console error which occurs at atatus.config

Uncaught TypeError: undefined is not a function

Rollup typically does best if it has access to an ES module. I'm not an expert on packages, but usually exporting an ES module and updating your package.json so that it defines that module's availability does the trick

Sourcemap is missing

When we run the application on Android or IOS using Apache Cordova we sometimes hit the error that the sourceMap (atatus.min.js.map) isn't found in the www/lib/atatus-js/ folder.

We installed Atatus using: bower install

Also on the GitHub page I don't see any atatus.min.js.map file in the project. Removing the sourceMap from the atatus.min.js file resolved the issue: https://github.com/atatus/atatus-js/blob/master/atatus.min.js#L5

Can you please check and fix?

Errors with script v2.3.0

Hi there,

We're seeing lots of errors cropping up sometimes with the version 2.3.0 of the script we have installed in a Cordova app.

It appears to fail to load resources and has JavaScript errors:

screen shot 2016-04-07 at 12 13 36

Expanded view of the JS errors:

screen shot 2016-04-07 at 12 27 15

The network tab also shows it hanging and failing on these requests, which seems to delay our other app requests.

screen shot 2016-04-07 at 12 24 23

This appears to be causing problems with a user trial that is in progress, so I would really appreciate any help you could give us! Thanks.

p.s. The device was an HTC Desire 610 running Android 4.4.2

"TraceKit is not defined" when importing via NPM

Hi,

When running our mocha tests, I get "ReferenceError: TraceKit is not defined":

ReferenceError: TraceKit is not defined
    at /Users/peter/dev/src/pebblecode/products/bybox-erskine-mercurial/node_modules/atatus-js/atatus.min.js:3:12890
    at Object.<anonymous> (/Users/peter/dev/src/pebblecode/products/bybox-erskine-mercurial/node_modules/atatus-js/atatus.min.js:3:20689)
    at Module._compile (module.js:435:26)
    at Module._extensions..js (module.js:442:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/peter/dev/src/pebblecode/products/bybox-erskine-mercurial/node_modules/babel-register/lib/node.js:166:7)
    at Module.load (module.js:356:32)
...

If I remove the "atatus-js" import, then the error goes away.

I am pulling in atatus-js via NPM. I've tried v2.3.7 and v2.3.11.

In case it's relevant, I'm importing it in our "AtatusLogger.js" with import 'atatus-js'; (this is transformed with Babel). The command I'm running is mocha "test/**/*.@(js|jsx)" and my .babelrc is just:

{
  "presets": ["react", "es2015"]
}

Please might you have any suggestions?

Feature Request: Allow failures in atatus.recordTransaction()

I've been using transactions so far and loving them, especially as a means to measure the loading performance of various iframed resources in my app. As I understand it, atatus.recordTransaction('foobar', 1000); is more or less shorthand for

atatus.startTransaction('foobar');
setTimeout(() => {
  atatus.endTransaction('foobar');
}, 1000);

Would it be possible to extend the atatus.recordTransaction() method to do the same for failed transactions? Ie, something like atatus.recordFailedTransaction('foobar', 1000); or atatus.recordTransaction('foobar', 1000, false);?

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.