Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

polish trace/api.md #36

Merged
merged 3 commits into from
Jan 11, 2021
Merged

Conversation

GlowingRuby
Copy link
Contributor

No description provided.

Copy link
Member

@wph95 wph95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the simple typo style need change

specification/trace/api.md Outdated Show resolved Hide resolved
Co-authored-by: JustWPH <WPH95@users.noreply.github.com>

软件开发者或操作者可以设置状态码为 `Ok` 。

分析工具应当对 `Ok` 状态做出响应,抑制它们因其他原因产生的任何错误。例如,为了抑制诸如 404s 错误。
分析工具应当通过抑制它们因其他原因产生的错误来响应 `Ok` 状态。例如抑制嘈杂的404错误。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

open-telemetry/opentelemetry-specification#1068
spec 在 ga 后会删除该部分。因为他们自己也没说清为什么 分析工具会产生错误。你现在这个翻译比我之前好很多

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是的,没看懂他们想表达什么意思

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我的理解是这样的
分析工具 catch 了到了一个我问题,他应当返回 Ok,而不是 throw 一个 404 出来。
换个不太恰当的比方
User -> App -> DB
DB 扔了一个 404,对 App 来说 应该是 200, 而不是继续 404

@sunface sunface merged commit b3261e6 into open-telemetry:master Jan 11, 2021
@GlowingRuby GlowingRuby deleted the polish-trace-api branch January 17, 2021 05:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants