When we wrote the first edition of this book, the observability landscape was shifting, and practices were advancing faster than we could collectively write them down. In retrospect, we were chasing a moving target. It took three and a half years to write and edit the book that was released in 2022.
In the four years since, the landscape and practices for observability have solidified a great deal, which makes it easier to write about. However, life is never boring; ChatGPT and GitHub’s Copilot were also released in 2022, kicking off an explosive period of innovation that has yet to subside.
As we write this preface, in March of 2026, the entire software industry is going through yet another unprecedented upheaval, a convulsive period of compressed change. New AI development workflows are being hammered out in real time, for durable code as well as disposable code. Harness engineering, agentic orchestration, Phoenix architectures…every day seems to come with new terms and new concepts. It feels overwhelming trying to keep up, and the only consolation is that everyone else feels just as overwhelmed.
We’ve seen AI models leap generations, entirely new categories of tooling appear, and workflows that felt cutting-edge become table stakes, all within one fiscal quarter. This is what exponential change feels like from the inside: not a smooth trajectory, but a series of jarring “wait—already?” moments. The hype trains are roaring, and it can be difficult to pick trustworthy voices out from the ambulance chasers seeking to cash in on our anxieties.
And yet, an emerging, ongoing punch line this year has had people dryly commenting each time we rediscover the principles we’ve known all along:
“Oh, so we should have fast feedback loops?”
“Tests are important, you say?”
“Are you insinuating that we should talk to our own users? To each other ?”
This time around, it has only taken us nine months to write and edit the book, despite it being twice as long and almost entirely rewritten. Yet as we went into final edits, reading the book front to back, it was already painful to read some of the things we had written less than a year ago. A year ago, it was reasonable to be skeptical about whether or not generated code would ever be as good as the median developer could write, or how long it would take; now it is not reasonable. A year ago, it was reasonable to bifurcate the space into disposable versus durable code; now that division is blurring.
We have done our best to adjust for the shift in aperture, to acknowledge the ways that our spectrum of possible futures has widened and bent in recent times.
But this is not a book about AI; it is a book about software development. And the further we get, the more we learn, the clearer it becomes to us that software (and people) are still the hard parts . The struggle is less about the truly novel aspects of AI, such as wrangling nondeterminism, and more about the things that have always been hard: connecting cause and effect, constructing coherent mental models, and managing user expectations. Only now, the rate of change is revving up to 10 times, 100 times, 1,000 times as fast as ever before.
We take comfort in this. Observability itself has never felt like something flashy or new to us—it has always felt like an intrinsic property of the software discipline, derived from first principles, discoverable by anyone. We believe this still. And we fiercely believe these first principles are more relevant and desperately needed by practitioners than ever before.
This moment of compressed change will not last forever. Indeed, the one thing we know about exponential change is that it must end , because all resources have limits.
As uncomfortable as it is, this change is also an unprecedented window of opportunity. After 20 years of DevOps, the overwhelming majority of software engineers still don’t include production in their development workflow; at many places, they aren’t even allowed to. The number of companies that have the right guardrails and precision tools in place to validate AI-generated code in production is minuscule—in the single digits.
Why? Because it’s hard . Building out feature flags, progressive deployment, and the right instrumentation has been time-consuming and labor-intensive, and the old ways worked well enough to get by, using human intuition as spackle and duct tape.
But AI breaks this stalemate. It enables key technological breakthroughs on the supply side. And on the demand side, it provides the competitive pressure to change. Engineers who have long agitated for better platform support and enablement should receive this opening as the gift that it is.
Observability is not just another developer tool; it is the keystone species of the ecosystem. It is the signal that connects “cause” with “effect” to make feedback loops, no matter how far apart “cause” and “effect” may reside. The quality of your observability has downstream consequences for every other thing you do.
The goal of this book is to arm you with a clear understanding of the principles at work. Most of the industry has historically chosen to iterate on what is familiar and comfortable instead of embracing a different, better, but admittedly more disruptive approach. AI seems likely to strain the old ways to the breaking point. But every organization needs to figure out where or if that applies to them, and chart a course from where they are to where they need to be.
That’s where you come in. We hope this book will equip you with the tools you need to diagnose, argue, debug, build, and instrument your way through this messy present and toward a better tomorrow.
Why We Wrote This Book
We wrote this book because we care about observability and the people who need it. We care about it a lot . We care about it so much that we pioneered the category, founded a company to work on the problem space, helped maintain OpenTelemetry and make it go mainstream, and have now spent close to 20 collective person-years writing three books on the topic.
While we all work for or have worked for Honeycomb , we are not trying to sell you on its tools. You can use the concepts in this book to build production software systems with observability using any tools, although we would be lying if we said all tools are equally effective.
We believe in enduring values like truth, reality, and shared understanding. We believe observability can help us navigate today’s rocky waters as the technology landscape shifts quickly. We believe this is more important than ever.
We hope this book can help bring structure and clarity to what has become a very muddled and marketing-driven public discourse about observability.
What’s Different in the Second Edition
First, we have a new coauthor. We are delighted to welcome Austin Parker, with deep subject matter expertise in AI and OpenTelemetry.
We’re also excited to incorporate a broader range of voices for this edition of the book, featuring a stellar lineup of guest writers. The opportunity to spotlight some of the people we look up to and enjoy working with has been one of the greatest pleasures of putting this book together.
In order of presentation in the book:
-
Jeremy Morrell wrote one of the most comprehensive guides to using wide events and creating custom attributes that we’ve ever seen. He has contributed greatly to an update of Chapter 5, “Structured Events Are the Building Blocks of Observability ” , and has entirely contributed Chapter 6, “Making Structured Events Arbitrarily Wide” .
-
Boris Tane explored agentic AI use cases and examined the principles necessary to generate and retain context, which continues to be key for success as we shift toward more automation. We think you’ll enjoy the principles outlined in his contributed content, Chapter 10, “The Role of AI Agents for Observability” .
-
Mat Vine provided an in-depth case study on SLOs adoption for an updated look at its challenges and solutions. This replaces the Honeycomb-focused use case previously used in Chapter 11, “Using Service Level Objectives for Reliability ” .
-
The engineering team at ClickHouse contributed an in-depth look at how their open source datastore is tuned to meet the needs of observability workloads in Chapter 14, “Efficient Data Storage with ClickHouse” . This new chapter provides an alternative implementation to the Honeycomb storage engine, detailed in Chapter 13, “Efficient Data Storage with Retriever” .
-
Mike Kelly contributed an in-depth look at telemetry management by examining challenges and solutions through the lens of the open source Bindplane project in Chapter 16, “Telemetry Management with Pipelines” .
-
Frank Chen, guest contributor in the first edition, returned to the second edition with a look at ontologies and how to think about your entire instrumentation chain in Chapter 17, “Ontologies as a Shared Language for Humans and AI ” .
-
Hugo Santos contributed greatly to an update of Frank Chen’s first-edition take on instrumenting tests and continuous delivery pipelines in a new Chapter 18, “Observability for CI/CD Pipelines” .
-
Hanson Ho and Matt Klein presented a look at the complex and challenging workflows necessary for implementing high-observability workflows in the mobile device domain in Chapter 19, “Observability for Mobile and Frontend” .
-
Phillip Carter contributed greatly when applying the principles in this book to the world of running generative AI applications in production in Chapter 21, “Observability for Large Language Models” .
-
Kesha Mykhailov contributed a first-person narrative of the observability journey at Fin (formerly Intercom) in Chapter 22, “Fin’s Case Study in Modern Engineering” . This chapter demonstrates how many of the concepts detailed in the book often come together in real-world scenarios.
-
Darragh Curran contributed an open letter to chief technology officers (CTOs) detailing how his organization used observability to tackle the problem of accelerating organizational learning speed in an AI era in Chapter 23, “Organizational Learning Speed Is Now Your Biggest Constraint: An Open Letter to CTOs” .
-
Rick Clark contributed a deep dive into driving change without formal authority in Chapter 28, “The Organizational Shift” . This chapter covers how to recruit champions, drive consensus, and shepherd disruptive transformational change through complex sociotechnical systems.
-
Hazel Weakly wrote a wonderful foreword for us on the shifting horizons of software development, and contributed greatly to Chapter 31, “Instrumentation for Observability Teams” , especially for teams operating in highly secure environments.
Second, we have two parallel tracks of guidance for engineers who write code: one track for AI-assisted development and the other for classic development. You’ll find both tracks in each chapter on instrumentation and analysis. Instead of anchoring our guidance in any one particular technology or tool, we describe the principles necessary for success and how they affect outcomes.
Lastly, we’ve restructured the material into chapter groups based on functional roles. The first edition of this book was “about observability,” for “everyone.” This edition aims for a more targeted conceptual structure.
How to Read This Book
We wrote this book with software engineers and technical decision-makers in mind, but it should be relevant (and hopefully interesting) to anyone else who builds software or works with those who do.
Part I is for all readers. It contains foundational concepts that we will draw on for the rest of the book: what observability is, how to develop good software, and the user experience you’re aiming for. Readers of the first edition might skip Chapter 3 (arguably, it was the point of the entire first edition). However, this part of the book has been entirely overhauled to better frame the “observability” conversation in our modern zeitgeist.
Parts II and III are written primarily for software engineers and observability practitioners. Every software engineer should understand how to instrument their code and use the telemetry it emits. The chapters in this section cover the technical basics that all modern software engineers should be familiar with.
Part IV is for engineers who want to go beyond the surface. You can think of these as the “show your work” chapters of the book. We dive deep into the internals and plumbing that enable the instrumentation and analysis demonstrated in Parts II and III . This segment of the book is most relevant to engineering teams operating at scale or building their own observability tools.
Part V covers a number of different use cases for observability. Earlier sections of the book aim to be neutral on use case and setting, though they favor approaches best suited to working with backend systems. Part V shows how the same principles can be applied to other domains.
Part VI is for technical decision-makers. Its chapters are aligned with typical org chart concerns from the top down, starting with an open letter to CTOs and ending with instrumentation guidelines for observability engineering teams. Technical decision-makers and strategic thinkers come in many guises: not just executives, directors, and managers, but also observability engineering teams, platform engineering teams, site reliability engineers, cloud engineers, architects, and more. If you are trusted with decisions to empower and enable the software engineers in your organization, then this section is for you.
Conventions Used in This Book
The following typographical conventions are used in this book:
Italic
Indicates new terms, URLs, email addresses, filenames, and file extensions
Constant width
Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords
Constant width bold
Shows commands or other text that should be typed literally by the user
Constant width italic
Shows text that should be replaced with user-supplied values or by values determined by context
Tip
This element signifies a tip or suggestion.
Note
This element signifies a general note.
Warning
This element indicates a warning or caution.
Using Code Examples
Supplemental material (code examples, exercises, etc.) is available for download at https://oreil.ly/7IcWz .
If you have a technical question or a problem using the code examples, please send email to [email protected] .
This book is here to help you get your job done. In general, if example code is offered with this book, you may use it in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission.
We appreciate, but generally do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “ Observability Engineering by Charity Majors, Liz Fong-Jones, and George Miranda, with Austin Parker (O’Reilly). Copyright 2026 Hound Technology, Inc., 978-1-098-17992-2.”
If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at [email protected] .
O’Reilly Online Learning
Note
For more than 40 years, O’Reilly Media has provided technology and business training, knowledge, and insight to help companies succeed.
Our unique network of experts and innovators share their knowledge and expertise through books, articles, and our online learning platform. O’Reilly’s online learning platform gives you on-demand access to live training courses, in-depth learning paths, interactive coding environments, and a vast collection of text and video from O’Reilly and 200+ other publishers. For more information, visit https://oreilly.com .
How to Contact Us
Please address comments and questions concerning this book to the publisher:
- O’Reilly Media, Inc.
- 141 Stony Circle, Suite 195
- Santa Rosa, CA 95401
- 800-889-8969 (in the United States or Canada)
- 707-827-7019 (international or local)
- 707-829-0104 (fax)
- [email protected]
- https://oreilly.com/about/contact.html
We have a web page for this book, where we list errata and any additional information. You can access this page at https://oreil.ly/observability-engineering-2e .
For news and information about our books and courses, visit https://oreilly.com .
Find us on LinkedIn: https://linkedin.com/company/oreilly .
Watch us on YouTube: https://youtube.com/oreillymedia .
Acknowledgments for the First Edition
This book would not have been possible without the support of executive sponsors at Honeycomb: many thanks to Christine Yen, Deirdre Mahon, and Jo Ann Sanders. Nor would this book have been possible without the domestic sponsors who put up with many odd hours, lost weekends, sleepless weeknights, and cranky partners: many thanks to Rebekah Howard, Elly Fong-Jones, and Dino Miranda. Without all of them, we would probably still be trying to find the time to fully develop and tie together the many ideas expressed in this book.
We’d especially like to thank additional contributors who have made the content in this book much stronger by sharing their varied perspectives and expertise. Chapter 16, “Telemetry Management with Pipelines” , was made possible by Ian Wilkes (author of Honeycomb’s Retriever engine, the basis of the case study) and Joan Smith (reviewing for technical accuracy of references to external literature). Chapter 14, “Efficient Data Storage with ClickHouse” , was authored by Frank Chen, and Chapter 18, “Observability for CI/CD Pipelines” , was authored by Suman Karumuri and Ryan Katkov—all of whom we thank for sharing their knowledge and the lessons they’ve learned from managing incredibly large-scale applications with observability at Slack. Many thanks to Rachel (pie) Perkins for contributions to several early chapters in this book. And thanks to the many bees at Honeycomb who, over the years, have helped us explore what’s achievable with observability.
Finally, many thanks to our many external reviewers: Sarah Wells, Abby Bangser, Mads Hartmann, Jess Males, Robert Quinlivan, John Feminella, Cindy Sridharan, Ben Sigelman, and Daniel Spoonhower. We’ve revised our takes, incorporated broader viewpoints, and revisited concepts throughout the authoring process to ensure that we’re reflecting an inclusive state of the art in the world of observability. Although we (the authors of this book) all work for Honeycomb, our goal has always been to write an objective and inclusive book detailing how observability works in practice, regardless of specific tool choices. We thank our reviewers for keeping us honest and helping us develop a stronger and all-encompassing narrative.
Acknowledgments for the Second Edition
This edition would not have been possible without the support of many external contributors, coauthors, editors, fellow travelers, and readers of the first edition. The words you’re about to read aren’t ours alone—they’ve been shaped by every hand that has touched this book. As you read it, we welcome you into the continuing conversation about observability, and hope that you will contribute to it in kind.
We would like to specifically thank our editors at O’Reilly Media—Rita Fernando, Virginia Wilson, John Devins, Megan Laddusaw, Louise Corrigan, and Jonathon Owen. Their tireless efforts, along with the entire O’Reilly team, have been invaluable to the success of this project. Additionally, we’d like to acknowledge and thank our external reviewers—Marty Lindsay, Alex Ewerlof, Phillip Carter, Jordan Simonovski, Rick Clark, Ranbir Chawla, RK Sharma, Dave Williams, and Lesley Cordero. Your contributions helped us refine, focus, and sharpen our thoughts.
Charity Majors
It is a truth universally acknowledged that when you ask the internet for opinions, you will get them—unfiltered, unrestrained, and in volumes suggesting you should not have asked. Nevertheless, I asked the internet for advice on the software buying process, and 87 people replied. I owe every one of you a debt of gratitude.
The back third of this book was headed in one direction before your stories; afterward, it veered in an entirely different one. If readers find it useful—and I hope they will—they have you to thank. (I, meanwhile, had to throw out my draft and start over from scratch in November, right when I was supposed to be wrapping up. I have come around to gratitude, but only after many months spent shaking a fist in your general direction.)
Sam Dwyer, Abraham Ingersoll, Benjamin Mann, Hazel Weakly, and the inestimable Marty Lindsay were especially generous with their time. Thank you. And Rita Fernando, our editor: I know we just thanked you like two sentences ago, but once is not enough. Have another.
Since I, like Austin, am Never Writing A Book Again™, I can’t pass up this opportunity to thank my friend, co-founder, and rock-solid work partner of 10 years and counting, Christine Yen. You are the structure to my mess, the trellis for my aggressively overenthusiastic vinery, and my favorite person to embarrass with a compliment, no contest.
It’s risky to start naming any of the brilliant, caring, dedicated people I get to work with at Honeycomb, because once I get started it’s hard to stop. But I owe particular thanks to Ben Hartshorne and Ian Wilkes, who have been the heart and pickled spleen of Honeycomb Engineering since day one, and to Emily Nakashima, who does five impossible things each day before breakfast. Honeycomb is the product of many talented hands, but you are our—oh yes—three pillars.
Finally, and most importantly, to my family. I am grateful for your tolerance, your support, and your love—and perhaps even more for what you refuse to tolerate. Francis, Mark—thank you for crossing the ocean again and again to stay connected. Mom and Dad, Claire, Justice, Dan, Seri, and Rees: I’ll see you at Thanksgiving. For real this time.
Liz Fong-Jones
A special thanks to all of my family and partners who tolerated my long work hours and stress, including Elly, Ellen, Alison, Lydia, and Amber. Eternal love to my fuzzy companion Flurry, who never got to see the book finished.
George Miranda
Looking back on the first edition’s acknowledgements, I’m reminded of just how instrumental Deirdre Mahon was in making this book possible. Deirdre, I’ve said it before and I’ll say it again now in print: thank you for the advice. For this edition, I’m looking at you, Jeff Gray. Logistically, you made this one possible. I can’t begin to imagine where we’d be if you hadn’t got involved. Thank you for your guidance, candor, and perspective that continues to resonate.
Austin Parker
Apparently, the best way to keep writing books is to loudly exclaim, “Well, never doing that again!” to anyone in earshot after completing one, as it indicates that you would indeed write another book. I’d like to acknowledge the thousands of contributors and maintainers of the OpenTelemetry project for their efforts and work over the years—you make observability a possibility for so many. I would also like to thank my spouse, Mandy, for her infinite patience and for being a constant source of inspiration and encouragement.