Observability as Code is the practice of writing code that generates your observability pipelines, your alerts and dashboards alongside your application code, such that your observability configurations are reproductible across environments. It's the same principles as Infrastructure as Code but applied to observability configurations, rather than infrastructure.
This practice enables you to take ownership of the observability of your applications, making it a key part of the development process rather than an afterthought.
Explore related concepts
Infrastructure as Code (IaC)
Infrastructure as Code is the practice of managing and provisioning cloud infrastructure through machine-readable configuration files, rather than using manual interactive configuration tools (commonly called ClickOps).
Instrumentation
The act of adding code to a software application to collect telemetry data about its behavior and performance.
Observability
Observability is the ability to understand how your application is working and behaving in production through telemetry data (logs, metrics, traces, wide events, etc.). It enables you detect, diagnose and resolve issues in your app before they impact your users and become problems.