Skip to main content
https://github.com/crazytruth/incendiary/raw/master/artwork/incendiary.jpg

Incendiary

Build Status Documentation Status Codecov

PyPI pyversions PyPI version PyPI license Black

A Tracing extension for Insanic that integrates AWS X-Ray.

Why?

Tracing is needed in any micro service architecture, and this plugin traces requests received and traces any requests with Insanic’s interservice’s communications and sends it’s traced information to AWS X-Ray.

You might be asking why this package is called incendiary. In the military there, rifles and machine guns are usually loaded with tracer rounds every 3-4 rounds which help adjust for aim. And tracer rounds usually have a mild “incendiary” effect to help with visibility.

Tracing is a distributed system also samples(every X request) to help with overall visibility of the system.

Features

  • Tracing with AWS X-ray.

  • Creates a segment when Insanic receives a request.

  • End the segment before return the response.

  • Sampling configuration

  • Starts and ends subsegments for interservice requests with Insanic.

  • Capture other parts of your code.

Installation

Prerequisites for using:

  • python >= 3.6

  • Local running instance of AWS X-Ray Daemon. (Running instructions can be found here)

  • AWS Credentials (if you want to actually send data to AWS-Ray)

To install:

pip install insanic-incendiary

Basic Usage

Basic usage is actually quite simple. You should be able to get it running without any extra configurations.

To Initialize

# app.py

...

from insanic import Insanic
from incendiary import Incendiary

app = Insanic("my_app", version="0.1.0")
Incendiary.init_app(app)

Now if you run, you should be able to start tracing.

To Capture

# in_some_module_you_want_to_capture.py

from incendiary import Incendiary

# if async function

@Incendiary.capture_async(name="Name of subsegment")
async def i_want_to_capture_async():
    pass

# if sync function

@Incendiary.capture(name="Name of subsegment")
def i_want_to_capture():
    pass

These functions will be its own subsegments in X-Ray.

For more information please refer to Incendiary’s Documentation.

Release History

View release history

Contributing

For guidance on setting up a development environment and how to make a contribution to Incendiary, see the CONTRIBUTING.rst guidelines.

Meta

Distributed under the MIT license. See LICENSE for more information.

Thanks to all the people at my prior company that worked with me to make this possible.

Metadata

Release files for insanic-incendiary 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for insanic-incendiary 0.2.0
File Size Uploaded Provenance Actions
insanic-incendiary-0.2.0.tar.gz 45.2 kB Without provenance Details for insanic-incendiary-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for insanic-incendiary 0.2.0
File Interpreter ABI Platform Actions
insanic_incendiary-0.2.0-py3-none-any.whl Python 3 none any Details for insanic_incendiary-0.2.0-py3-none-any.whl

Total release size: 60.8 kB

Release files / insanic-incendiary-0.2.0.tar.gz

Download URL insanic-incendiary-0.2.0.tar.gz
Size 45.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4e98c03243a5a946d647b01d367681a3c5f12649e85e21efa765a4f19491b221
BLAKE2b-256 checksum
How to use checksums
c0da1172dc3bac19e4e18e30934f80ac38084d40d123e06c2938a29115a80ea7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.1

Release files / insanic_incendiary-0.2.0-py3-none-any.whl

Download URL insanic_incendiary-0.2.0-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a485304fc33bf2f871624c756874e0061ab8dd82457a8bd596fe2b946a35846
BLAKE2b-256 checksum
How to use checksums
d18100306fc9004c6077eb2572cdc29618ba295f9dd5e8da52408f033b74da13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.1

Security for insanic-incendiary 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page