TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Logging Best Practices: An Engineer's Checklist

11 点作者 BerislavLopac8 个月前

1 comment

andrewstuart28 个月前
These days, after a dozen or so years of dealing with log aggregation and other systems, I just suggest to all our engineers to log a lot less and use (opentracing or opentelemetry) traces and trace events where they would normally use logs. With fields added where you&#x27;d otherwise add fields to your structured logs. It really encapsulates all these best practices and then some, for collecting, filtering, and navigating telemetry.<p>The main exception I can think of is legacy systems that can&#x27;t really be retrofitted with tracing. In which case you&#x27;re probably not in a position to implement logging best practices either. I suppose audit is another exception, where you want a longer-term record of what&#x27;s happened, but even there I think traces get you the much better story of what happened across your environment and you just need a better archival storage solution for them.
评论 #41856699 未加载