-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[zh] Localize context-propagation.md #4536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: 上下文传播 | ||
weight: 10 | ||
description: 了解实现分布式追踪的概念。 | ||
--- | ||
|
||
通过上下文传播,[信号](/docs/concepts/signals)可以相互关联, | ||
无论它们是在何处生成的。 | ||
尽管它不仅限于链路追踪,但它允许 [trace](/docs/concepts/signals/traces) | ||
跨进程和网络边界任意分布的服务构建相关系统的关联信息。 | ||
|
||
我们通过两个子概念来定义上下文传播:上下文和传播。 | ||
|
||
## 上下文 | ||
|
||
**上下文**是一个对象,它包含发送和接收服务 | ||
(或[执行单元](/docs/specs/otel/glossary/#execution-unit)) | ||
用于将一个信号与另一个信号关联起来的信息。 | ||
|
||
例如,如果服务 A 调用服务 B,那么服务 A 中 ID 在上下文中的 span 将用作服务 | ||
B 中创建的下一个 span 的父 span。 | ||
上下文中的 trace ID 也将用于服务 B 中创建的下一个 span, | ||
这表示该 span 与服务 A 中的 span 属于同一 trace 的一部分。 | ||
|
||
## 传播 | ||
|
||
**传播**是上下文在服务和进程之间移动的机制。 | ||
它序列化或反序列化上下文对象并提供要从一个服务传播到另一个服务的相关信息。 | ||
传播通常由检测库处理并且对用户是透明的,但如果你需要手动传播上下文,则可以使用传播 API。 | ||
|
||
OpenTelemetry 维护着几个官方传播器。 | ||
默认传播器使用 [W3C 追踪上下文](https://www.w3.org/TR/trace-context/) | ||
规范指定的标头。 | ||
|
||
## 规范 | ||
|
||
要了解有关上下文传播的更多信息,请参阅[上下文规范](/docs/specs/otel/context/)。 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems we have different translations for the same word, would be good to keep consistency.
opentelemetry.io/content/zh/docs/what-is-opentelemetry.md
Line 9 in 43fea35
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change blocking @reyang?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not blocking, we can cover it in separate PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok TY, merging!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue: