Skip to main content

No project description provided

Project description

How to use

Generate a whl file by running the following command

poetry build

Upload the generated whl file in the dist folder to the environment in Microsoft Fabric

Import the package in a notebook

from firestart_utils.logger import get_logger

Create a logger object

logger = get_logger("{DATADOG_API_KEY}", "{CUSTOMER}", "{ENVIROMENT}", "{WORKSPACE_NAME}", "{LOG_LEVEL_TRESHOLD}")

Default logging. If given threshold is met it will be send towards datadog,

!IMPORTANT! The source is mandatory and should be used in every default log for tracking in DataDog

logger.info("{SOURCE}", "This is a test message") 
logger.warning("{SOURCE}", "This is a test message") 
logger.critical("{SOURCE}", "This is a test message") 
logger.debug("{SOURCE}", "This is a test message") 

Logging pipeline metrics DataDog

logger.failed("{SOURCE}")
logger.success("{SOURCE}")

Development

Setup Environment

Install poetry using the following command

pip install poetry

Start Enviroment

To start the environment, run the following command

poetry shell

Install Dependencies

pip install -r requirements.txt

Build Project

poetry build

Run Tests

python -m unittest discover

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

firestart_utils-0.1.14.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

firestart_utils-0.1.14-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file firestart_utils-0.1.14.tar.gz.

File metadata

  • Download URL: firestart_utils-0.1.14.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.5.0-1023-oem

File hashes

Hashes for firestart_utils-0.1.14.tar.gz
Algorithm Hash digest
SHA256 4b3a91053877dcfad37e329723730eb5d572d96e945dafbaaf10286a7f1cf26b
MD5 5d6d7b5c77daa09ba65fec8cf50003cd
BLAKE2b-256 7516e538721ce0ad7839cc9cbff480ff9e52a3c3b1f9f0c08c8a633e04344119

See more details on using hashes here.

File details

Details for the file firestart_utils-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: firestart_utils-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.5.0-1023-oem

File hashes

Hashes for firestart_utils-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 2cb198c8eb6f27c1821518638ecd5e937bad7bed299376e5ee6140b4737800d4
MD5 66f8bd0734fc849deaa4a9c092d235db
BLAKE2b-256 c5fc93574feda6a65d3ce883212f1d57c26d2118f37fffe9b7f8c21647099da2

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