Skip to main content

HiQ - A Modern Observability System

Project description

Documentation Status CodeCov Github release lic

HiQ is a declarative, non-intrusive, dynamic and transparent tracking system for both monolithic application and distributed system. It brings the runtime information tracking and optimization to a new level without compromising with speed and system performance, or hiding any tracking overhead information. HiQ applies for both I/O bound and CPU bound applications.

To explain the four features, declarative means you can declare the things you want to track in a text file, which could be a json, yaml or even csv,and no need to change program code. Non-intrusive means HiQ doesn’t requires to modify original python code. Dynamic means HiQ supports tracing metrics featuring at run time, which can be used for adaptive tracing. Transparent means HiQ provides the tracing overhead and doesn’t hide it no matter it is huge or tiny.

In addition to latency tracking, HiQ provides memory, disk I/O and Network I/O tracking out of the box. The output can be saved in form of normal line by line log file, or HiQ tree, or span graph.

Installation

pip install hiq-python

Get Started

Let start with a simplest example by running HiQ against a simple monolithic python code 📄 main.py:

# this is the main.py python source code
import time

def func1():
    time.sleep(1.5)
    print("func1")
    func2()

def func2():
    time.sleep(2.5)
    print("func2")

def main():
    func1()

if __name__ == "__main__":
    main()

In this code, there is a simple chain of function calls: main() -> func1 -> func2.

Now we want to trace the functions without modifying its code. Let’s run the following:

git clone https://github.com/oracle-samples/hiq.git
cd hiq/examples/quick_start
python main_driver.py

If everything is fine, you should be able to see the output like this:

https://raw.githubusercontent.com/oracle-samples/hiq/main/hiq/docs/source/img/main_driver.jpg

An HiQ Simplest Example

From the screenshot we can see the timestamp and the latency of each function:

main

func1

func2

tracing overhead

latency(second)

4.0045

4.0044

2.5026

0.0000163

HiQ just traced the main.py file running without touching one line of its code.

Documentation

HTML: 🔗 HiQ Online Document, PDF: 🔗 HiQ PDF Document.

Examples

Please check 🔗 examples for usage examples.

Contributing

HiQ welcomes contributions from the community. Before submitting a pull request, please review our 🔗 contribution guide.

Security

Please consult the 🔗 security guide for our responsible security vulnerability disclosure process.

License

Copyright (c) 2022 Oracle and/or its affiliates. Released under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hiq-python-1.1.0.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

hiq_python-1.1.0-py3-none-any.whl (56.8 kB view details)

Uploaded Python 3

File details

Details for the file hiq-python-1.1.0.tar.gz.

File metadata

  • Download URL: hiq-python-1.1.0.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for hiq-python-1.1.0.tar.gz
Algorithm Hash digest
SHA256 99e9fecc63027932240c4b4a863cbc39ae77fa3dc6924e3bed51c394b48986f5
MD5 9927820790739d1a12a287fd2c2b79ca
BLAKE2b-256 51cadd53dab9a588f1c9dddd36f66d63bfcaa44593c43e6a0da1fdd7dc6aea5d

See more details on using hashes here.

File details

Details for the file hiq_python-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: hiq_python-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 56.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for hiq_python-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99b5c985b79ba1b800b7372f069d9859052deb28d77f02a0f4770fc59df01b75
MD5 c68441c94622e9252e8270829f61bc49
BLAKE2b-256 10bf38d69f9bc16bd93e34ef19b40d8188788a44184e6e076e30e35c9e252a05

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page