Git Product home page Git Product logo

apm-python's Introduction

HowFast APM agent for Python

PyPI CircleCI uptime Coverage Status PyPI - Python Version PyPI - Downloads

This Python APM (Application Performance Monitoring) agent sends performance data to your HowFast account.

It only supports Flask for now.

Screenshot of HowFast APM

Usage

pip install howfast-apm[flask]

Then, follow the instructions detailed in the package page.

Develop

# Install dependencies, including the one needed to develop
poetry install -v -E flask
# To build a new version
poetry build
poetry publish

Test

# Lint the code
poetry run flake8 howfast_apm

# Running the tests
poetry run pytest

# Running the tests across a matrix of Python versions and Flask versions
pip install tox tox-pyenv
tox

Publish

# Replace "minor" by "patch" or "major" depending how you want to bump the version
poetry version minor
# Commit the changes
git add pyproject.toml && git commit -m "Bump version"
# Build and publish
poetry publish --build

apm-python's People

Contributors

jpcaruana avatar mickaelbergem avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

apm-python's Issues

ASGI

It would be great to know if hofast-apm also works with ASGI (see quart for an ASGI superset of flask)

Prevent the background thread from crashing after a network error

Sometimes the background thread can fail because of a transient network issue - it should recover (and possibly retry) instead of crashing and stop reporting.

[INFO] Handling signal: term
Exception in thread HowFast APM:
Traceback (most recent call last):
  File "/usr/local/pyenv/versions/3.6.3/envs/------/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/local/pyenv/versions/3.6.3/envs/------/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/local/pyenv/versions/3.6.3/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

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.