Giter Club home page Giter Club logo

trakerr-python's Issues

Add Code comments

Add comments for public exposed interfaces to make it easy for others.

Swagger code is generating two "Generated" libraries

The swagger code is generating two "Generated" libraries. The Trakerr client folder has the generated code and is up to date with any small changes to the swagger code I've had to make. The generated has both the generated code and the generated docs. It has not been updated. For some reason, the swagger code generates to both places (docs only go to generated).

Investigate ways to automatically get the device information

Getting things like the manufacturer and model number are difficult, and platform specific. Take a look at the following links for ways to do it:

http://stackoverflow.com/questions/15501286/get-device-model-information-from-android-via-python
http://stackoverflow.com/a/2462978/2522234
https://pypi.python.org/pypi/WMI/

I already added a dependency to abstract the process and memory os based code from the sdk (The module is cross platform and flexible) so I'm hesitant to continue adding further dependent modules.

Which means writing a bunch of platform specific code anyway. I can't seem to avoid it, considering I have to use WMI on windows and a shell command on linux and android (and probably iOS/mac.) Either way, it seems messy.

Use relative paths Stack traces

Cut out the absolute URL and use a relative path from the executable. Absolute paths can mess up groups in different install locations.

Make exposed functions pythonic.

Code right now does not follow pep style conventions. Follow pylint and change methods to follow general python style and use cases

Add API v3 fields

New fields:
Add current full URL (for browser apps)
Add operation time in millis
Add tags (constructor)
Add application SKU field (constructor)
Add device type and info (iPhone 7) etc. to SDK (automatic defaults)
Add current CPU and memory usage info (automatic defaults)
Add correlation ID (as a new ID to correlate across applications)

Spooling too many async send events causes urllib to run out of connection ports

If you run the sample app on my PC, you get the error. "WARNING Connection pool is full, discarding connection: www.trakerr.io" A look around says that this is urllib saying it has more connection request than connections. Changing the final call from async to blocking, and removing another connection seems to fix the issue on my PC.

First, I'm running a really old PC, so I want to test this on other PC's to see if my PC simply doesn't have the resources or processor to handle the async calls.

log shouldn't take in tags or appSKU

Right now log takes in appSKU and tags per event, but these are things that should be set at a logger level for both efficiency and design wise.

Refactor 2

Adds loglevel, deploymentstage and envLanguage. Changes envName to interpreter name.

Update README.MD

Update readme for refactor 1 (TC constructors) & 2 (deploymentStage & Name).

fill_defaults doesn't assign appSKU and Tags

The class level variables got left out of fill_defaults. Logger code circumvents the process causing no issues if you assign it manually to an event or through log. These should be class level not event level, that's another issue.

OS Version is reporting incorrectly.

OS Version is inconsistent and unhelpful based on the platform. Sometimes the version even ends up in SKU.

For instance, bash on windows (emulates a Microsoft variant of Ubuntu) reports;
OS SKU: Linux 4.4.0-43-Microsoft
OS Version: # 1-Microsoft Wed Dec 31 14:42:53 PST 2014

While Windows itself reports:
OS SKU: Windows 10
OS Version: 10.0.15063

Which is nice and intended.

It looked pretty weird on mac also when I glanced around the office. I'll get a sample output off one of those.

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.