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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: firestart_utils-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0

File hashes

Hashes for firestart_utils-0.2.0.tar.gz
Algorithm Hash digest
SHA256 24643f94a34a4a3abf3d7038c13668aec24da4f076039ebb2837d1070e14fbe4
MD5 af6d9dcd990f6d05c525a920b659859f
BLAKE2b-256 b8d032ec4da6ff11c5211d488f8c1e746287b68415afb38c42ed55c21559ca95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: firestart_utils-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.6.0

File hashes

Hashes for firestart_utils-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e486d1f56c88d35ffd19bcb82d883a852eb5e43870499957707be307a8477595
MD5 48bc2f40f1edcc884a1ad1dc5d22664d
BLAKE2b-256 74d5db88c736f1aa16d58cea817792e8b9a6297e4ffd1d7304e489f72326ed82

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