-
Notifications
You must be signed in to change notification settings - Fork 216
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
[Feature] 接入 OpenTelemetry 链路追踪,方便消息跟踪 #703
Labels
Comments
Nice proposal. |
@aaron-ai 经过进一步的思考与论证,打算将 其中:
论证点:
|
This issue is stale because it has been open for 30 days with no activity. It will be closed in 3 days if no further activity occurs. |
lizhanhui
added
no stale
This will never be considered stale
and removed
stale
Pull request is stale
labels
Apr 15, 2024
这个Feature不错,现在有计划实现吗 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Programming Language of the Client
C#
Is Your Feature Request Related to a Problem?
C# 客户端无法对消息进行追踪
Describe the Solution You'd Like
通过向 DiagnosticListener 写入相关事件,为消息加入相关的追踪数据。
Describe Alternatives You've Considered
=== SDK 修改开始 ===
Org.Apache.Rocketmq
的 DiagnosticListener。SendMessage
事件,载荷为当次发送的所有消息的数组。ReceiveMessage
事件,载荷为当次接收的所有消息的数组。=== SDK 修改完毕 ===
=== OpenTelemetry 实现开始 ===
4. 此时可在外部对通过 DiagnosticListener 订阅名称为
Org.Apache.Rocketmq
的事件。5. 在 SendMessage 事件中,依次遍历载荷中的消息,判断消息的
SystemProperties.TraceContext
是否包含相关数据。5.1 包含跟踪数据,不做任何处理,放行即可。
5.2 不包含跟踪数据,写入跟踪信息,并上报。
6. 在 ReceiveMessage 事件中,依次遍历载荷中的消息,判断消息的
SystemProperties.TraceContext
是否包含相关数据。6.1 不包含跟踪数据,不做任何处理,放行即可。
6.2 包含跟踪数据,读取跟踪信息,并上报。
=== OpenTelemetry 实现完毕 ===
Additional Context
No response
The text was updated successfully, but these errors were encountered: