This is an automated email from the ASF dual-hosted git repository.

lizhanhui pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/rocketmq-apis.git


The following commit(s) were added to refs/heads/v2 by this push:
     new 82c5e08  Include user agent details in settings
82c5e08 is described below

commit 82c5e08448734870d56212ceb54864943168ffd4
Author: Li Zhanhui <[email protected]>
AuthorDate: Thu May 12 14:56:58 2022 +0800

    Include user agent details in settings
---
 apache/rocketmq/v2/definition.proto | 24 ++++++++++++++++++++++++
 apache/rocketmq/v2/service.proto    |  4 +++-
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/apache/rocketmq/v2/definition.proto 
b/apache/rocketmq/v2/definition.proto
index ad3af70..f8ea444 100644
--- a/apache/rocketmq/v2/definition.proto
+++ b/apache/rocketmq/v2/definition.proto
@@ -419,4 +419,28 @@ enum Code {
 message Status {
   Code code = 1;
   string message = 2;
+}
+
+enum Language {
+  LANGUAGE_UNSPECIFIED = 0;
+  JAVA = 1;
+  CPP = 2;
+  DOT_NET = 3;
+  GOLANG = 4;
+  RUST = 5;
+}
+
+// User Agent
+message UA {
+  // SDK language
+  Language language = 1;
+
+  // SDK version
+  string version = 2;
+
+  // Platform details, including OS name, version, arch etc.
+  string platform = 3;
+
+  // Hostname of the node
+  string hostname = 4;
 }
\ No newline at end of file
diff --git a/apache/rocketmq/v2/service.proto b/apache/rocketmq/v2/service.proto
index 2c5fd27..34c4a24 100644
--- a/apache/rocketmq/v2/service.proto
+++ b/apache/rocketmq/v2/service.proto
@@ -16,7 +16,6 @@
 syntax = "proto3";
 
 import "google/protobuf/duration.proto";
-import "google/protobuf/timestamp.proto";
 
 import "apache/rocketmq/v2/definition.proto";
 
@@ -252,6 +251,9 @@ message Settings {
 
     Subscription subscription = 6;
   }
+
+  // User agent details
+  UA user_agent = 7;
 }
 
 message TelemetryCommand {

Reply via email to