sduo commented on issue #703: URL: https://github.com/apache/rocketmq-clients/issues/703#issuecomment-1999137917
经过进一步的思考与论证,打算将```SendMessage```和```ReceiveMessage```拆分成4个,对应事件及数据来源打算按照下表: 其中:```?```处有待商讨! | | Attribute | SendMessageBefore | SendMessageAfter | ReceiveMessageBefore | ReceiveMessageAfter | |-|-|-|-|-|-| | ```Span``` | ```Id``` | ```Activity.Id``` | - | - | ```Activity.Id``` | | ```Span``` | ```ParentId``` | - | ```Message.UserProperties.TraceContext``` ? | - | ```Message.SystemProperties.TraceContext``` | | ```Tag``` | ```messaging.system``` | - | "```rocketmq```" | - | "```rocketmq```" | | ```Tag``` | ```messaging.client_id ``` | - | ```Metadata["x-mq-client-id"]``` | - | ```Metadata["x-mq-client-id"]``` | | ```Tag``` | ```messaging.operation``` | - | "```publish```" | - | "```receive```" ? "```deliver```" ? | | ```Tag``` | ```messaging.destination.name``` | - | ```Message.Topic``` | - | ```Message.Topic``` | | ```Tag``` | ```messaging.destination.anonymous``` | - | - | - | - | | ```Tag``` | ```messaging.destination.template``` | - | - | - | - | | ```Tag``` | ```messaging.destination.temporary``` | - | - | - | - | | ```Tag``` | ```messaging.destination_publish.name``` | - | - | - | - | | ```Tag``` | ```messaging.destination_publish.anonymous``` | - | - | - | - | | ```Tag``` | ```messaging.message.conversation_id``` | - | ```Metadata["x-mq-request-id"]``` ? | - | ```Metadata["x-mq-request-id"]``` ? | | ```Tag``` | ```messaging.message.id``` | - | ```Message.SystemProperties.MessageId``` | - | ```Message.SystemProperties.MessageId``` | | ```Tag``` | ```messaging.rocketmq.message.type``` | - | ```Message.SystemProperties.MessageType``` | - | ```Message.SystemProperties.MessageType``` | | ```Tag``` | ```messaging.rocketmq.message.tag``` | - | ```Message.SystemProperties.Tag``` | - | ```Message.SystemProperties.Tag``` | | ```Tag``` | ```messaging.rocketmq.namespace``` | - | ```ClientConfig.Endpoints``` ? | - | ```ClientConfig.Endpoints``` ? | | ```Tag``` | ```messaging.rocketmq.message.keys``` | - | ```Message.SystemProperties.Keys``` | - | ```Message.SystemProperties.Keys``` | | ```Tag``` | ```messaging.rocketmq.message.group``` | - | ```Message.SystemProperties.MessageGroup``` | - | ```Message.SystemProperties.MessageGroup``` | | ```Tag``` | ```messaging.message.envelope.size``` | - | - | - | - | | ```Tag``` | ```messaging.message.body.size``` | - | ```Message.Body.Length``` | - | ```Message.Body.Length``` | | ```Tag``` | ```messaging.rocketmq.client_group``` | - | - | - | ```ReceiveMessageRequest.Group.Name``` | | ```Tag``` | ```messaging.batch.message_count``` | - | - | - | ```ReceiveMessageRequest.BatchSize``` | | ```Tag``` | ```messaging.rocketmq.consumption_model``` | - | - | - | - | | ```Tag``` | ```messaging.rocketmq.message.delay_time_level``` | - | - | - | - | | ```Tag``` | ```messaging.rocketmq.message.delivery_timestamp``` | - | ```Message.SystemProperties.DeliveryTimestamp``` | - | ```Message.SystemProperties.DeliveryTimestamp``` | | ```Tag``` | ```messaging.gcp_pubsub.message.ordering_key``` | - | - | - | - | 论证点: 1. 不能直接暴露```ClientConfig```,其中包含了认证敏感信息。 2. 另外```Metadata```信息中,我觉得可以有更多的关键数据被记录下来,但无对应的```Tag```属性。 | 项目 | 数值 | |-|-| | ```x-mq-language``` | "```DOTNET```" | | ```x-mq-client-version``` | "```5.1.1-rc1```" | | ```x-mq-request-id``` | ```GUID``` | - https://opentelemetry.io/docs/specs/semconv/attributes-registry/messaging/ - https://opentelemetry.io/docs/specs/semconv/messaging/rocketmq/ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org