Skip to Content
可观测性工程
book

可观测性工程

by Charity Majors, Liz Fong-Jones, George Miranda
July 2023
Beginner to intermediate
270 pages
4h 48m
Chinese
China Machine Press
Content preview from 可观测性工程
遵照
OpenTelemetry
的探针
|
69
字段。
然而,应用探针的方式通常是特定的。有时产生的数据需要手动增加代码来保证符合
遥测数据。而有时,探针(代理)能辅助自动收集数据。每个独特的监控方案(除了
printfc
)都有特定的自定义步骤来产生和转移符合产品后端存储的遥测数据。
过去,你可能在应用程序中安装了针对后端的探针库或代理。然后,你可以使用这些客
户端库提供的函数添加自己的自定义探针,以捕获你认为与了解应用程序的内部状态相
关的任何数据。然而,这些探针方法的产品特性也造成了“厂商锁定”。如果希望将遥
测数据发送到不同的产品,则需要使用不同的库重复整个探针过程,这将浪费代码,并
使测量开销加倍。
7.2 开源探针标准
为了解决“厂商锁定”问题,监控和可观测性社区过去几年创建了很多开源项目,比如
2016
年的
Open Tracing
(云原生计算基金会旗下)和
2017
年的
OpenCensus
(谷歌资助)
这些有竞争力的开放标准为最流行的编程语言提供了一组库,以允许用户实时收集遥测
数据并传输到所选择的后端。最终在
2019
年,两个组织共同组建了
OpenTelemetry
目,并由
CNCF
负责。
标准的好处就是有了很多选择。
Andrew S. Tanenbaum
OpenTelemetry
OTel
)代表
OpenTracing
OpenCensus
这两个项目的下一个主要版本,
能完整地替代并保留兼容性。
OTel
能捕获链路、指标、日志和其他应用遥测数据,并允
许你将其发送至所选后端。
OTel
已经成为目前可观测性方案中对应用探针唯一的开源标 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

可观察性工程

可观察性工程

Charity Majors, Liz Fong-Jones, George Miranda
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9787111729099