Lumigo Core Utilities

0.0.16 · active · verified Fri Apr 17

Lumigo-core is an internal utility library providing core functionalities for other Lumigo Python packages, primarily the Lumigo Python tracers. It contains common utilities for environment detection, configuration, and reporting, designed to operate within the context of AWS serverless environments. It is not typically intended for direct end-user application development but is an essential dependency for Lumigo's observability tools. The current version is 0.0.16, and releases are tied to the needs of the Lumigo tracer libraries.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates accessing a simple utility function. While you can import and use these utilities, `lumigo-core` is generally an internal dependency for the Lumigo tracer, not a standalone library for direct end-user application setup. Many functionalities rely on the tracer's initialization.

from lumigo_core.utils import is_aws_environment, get_region
import os

# lumigo-core is primarily an internal utility. 
# Direct 'quickstarts' are uncommon. 
# This demonstrates accessing a basic utility function.

print(f"Is running in AWS environment? {is_aws_environment()}")
print(f"Detected AWS region: {get_region()}")

# Example of how configuration might be accessed (internal use usually):
from lumigo_core.configuration import Configuration
Configuration.lumigo_debug_mode = True
print(f"Lumigo Debug Mode: {Configuration.lumigo_debug_mode}")

view raw JSON →