Embedding monitoring into your software