Azure Bootstrap Primitives

•
1
•

Configures production-ready Python logging transports, context-safe correlation IDs, secret masking, and resilience primitives for Azure services.

Azure Bootstrap Primitives provides a comprehensive foundation for building resilient, observable, and secure Python applications on Azure. It standardizes structured JSON logging with built-in masking for sensitive credentials, asynchronous correlation tracking using contextvars, and extensible logging across ten distinct transports including Azure Application Insights, Sumo Logic, Panther SIEM, and Event Hubs. Additionally, it equips applications with function-level latency tracing (@traced), standardized transient versus unrecoverable error taxonomy, path sanitization, and fail-close configuration management for robust cloud deployments.

Key Features

01Function tracing with @traced for automatic latency measurement, counter snapshots, and error alerting
02Multi-sink structured logging supporting 10 transports including App Insights, Sumo Logic, Panther, and Event Hubs
03Async-safe correlation tracking and automated sensitive data masking for API keys, tokens, and secrets
041 GitHub stars
05Standardized pipeline error taxonomy with transient/unrecoverable classification and soft-fail resilience
06Robust path traversal defense, fail-close environment validation, and Azure Workload Identity setup

Use Cases

01Building fault-tolerant message processing pipelines with dead-lettering and soft-failure recovery
02Configuring resilient enterprise observability pipelines across multiple cloud log sinks
03Sanitizing logs and redacting sensitive credentials across distributed Azure microservices