Posts tagged python
A Hands-On Example of Decoupling App Instrumentation with OpenTelemetry
- 18 November 2026
Blog Post Publish Date: 2026/11/18
This post builds a small Python service instrumented with OpenTelemetry, one piece at a time. It starts with the API only, turns on the SDK without changing the code, routes the metrics through the OpenTelemetry Collector to Prometheus, and then switches to Datadog by changing only the Collector configuration.
groupby + attrgetter: The Pythonic Way to Group Objects
- 28 July 2025
Blog Post Publish Date: 2025/07/28
This blog post shows how to group objects by several attributes. It uses two standard library tools, itertools.groupby and operator.attrgetter, instead of building a dictionary of lists by hand. It also covers the one detail that trips most people up: groupby only groups items that are next to each other.
Dynaconf: The Python Config Silver Bullet!
- 21 July 2024
Blog Post Publish Date: 2024/07/21
This blog post gives a short overview of good practices for application configuration, explains the main features of Dynaconf, and walks through a hands-on example that extends it to read parameters from AWS Systems Manager Parameter Store.