This is an automated email from the ASF dual-hosted git repository.
aaronai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
The following commit(s) were added to refs/heads/master by this push:
new 196ac25d Fix metrics label
196ac25d is described below
commit 196ac25d35e87782a98f490296af100b65a5c42c
Author: Aaron Ai <[email protected]>
AuthorDate: Thu Mar 9 09:51:00 2023 +0800
Fix metrics label
---
csharp/rocketmq-client-csharp/MetricConstant.cs | 4 ++--
csharp/rocketmq-client-csharp/Producer.cs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/csharp/rocketmq-client-csharp/MetricConstant.cs
b/csharp/rocketmq-client-csharp/MetricConstant.cs
index 15e6cceb..e19288de 100644
--- a/csharp/rocketmq-client-csharp/MetricConstant.cs
+++ b/csharp/rocketmq-client-csharp/MetricConstant.cs
@@ -34,8 +34,8 @@ namespace Org.Apache.Rocketmq
public const string InvocationStatus = "invocation_status";
// Metric Label Value
- public const string True = "true";
- public const string False = "false";
+ public const string Success = "success";
+ public const string Failure = "failure";
public readonly ExplicitBucketHistogramConfiguration
SendCostTimeBucket;
public readonly ExplicitBucketHistogramConfiguration
DeliveryLatencyBucket;
diff --git a/csharp/rocketmq-client-csharp/Producer.cs
b/csharp/rocketmq-client-csharp/Producer.cs
index eebc24a2..de1c4821 100644
--- a/csharp/rocketmq-client-csharp/Producer.cs
+++ b/csharp/rocketmq-client-csharp/Producer.cs
@@ -177,7 +177,7 @@ namespace Org.Apache.Rocketmq
new KeyValuePair<string, object>(MetricConstant.Topic,
message.Topic),
new KeyValuePair<string,
object>(MetricConstant.ClientId, ClientId),
new KeyValuePair<string,
object>(MetricConstant.InvocationStatus,
- null == exception ? MetricConstant.True :
MetricConstant.False));
+ null == exception ? MetricConstant.Success :
MetricConstant.Failure));
// Retry immediately if the request is not throttled.
if (exception is TooManyRequestsException)
{