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.37.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

firestart_utils-0.1.37-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: firestart_utils-0.1.37.tar.gz
  • Upload date:
  • Size: 4.3 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.37.tar.gz
Algorithm Hash digest
SHA256 f3f4d8a30d75289963edcff2415fd27dff8604354420af57a61eb3ed78292de1
MD5 26e5d83673276a895721f56e46d20020
BLAKE2b-256 8a7eee14118d6d1de8feaed1ac0a9bd735aee6fb4a1efb4c655b6a52bba6deb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: firestart_utils-0.1.37-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.37-py3-none-any.whl
Algorithm Hash digest
SHA256 333889e2cef3c0b8c969d63bfcd6ac4da407510727c5cb5f7bbdea4bc8080d5f
MD5 52c7dc2deaddab1872adfc9a7904f748
BLAKE2b-256 6afd743a816129210d03387db40405942338274577f545001474743a66f30b56

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