Code Instrumentation

This article explains what it takes to generate custom metrics data points in your code.

Let's look at a Python example in which we're instrumenting a process that retrieves
financial data about Apple's stock prices from a third-party provider. We measure how
many times it runs, how long it takes to run, and how many items of data it returns.