sravani-revuri commented on code in PR #12145:
URL: https://github.com/apache/ozone/pull/12145#discussion_r4697053581


##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/tracing/TracingUtil.java:
##########
@@ -623,6 +627,13 @@ public static void addAttributesToCurrentSpan(String key, 
boolean value) {
     }
   }
 
+  public static void addAttributesToCurrentSpan(Map<String, String> 
attributes) {
+    if (attributes == null) {
+      return;
+    }
+    attributes.forEach(TracingUtil::addAttributesToCurrentSpan);

Review Comment:
   > Have we measured the performance impact of adding these audit fields to 
spans?
   
   
   this is a good scenario to test to see the storage costs if we persist the 
data.
   
   I believe on a freon test of 1million keys of 1KB trace data was recorded to 
be 4GB. which is 4x the amount of what data was written (fully sampled).  If 
keys were deleted after each run, that could add to the bloat . For writes 
alone, audit fields may not be the main cost, but we should still see how 
tracing behaves when attributes are large.
   
   different sampling levels will alleviate this. so we need a set of values we 
can compare with (maybe 100%, 50%, and 1%). 1% which i think is what is being 
used in production for services like hbase would be a good way to say if what 
we have is good or not. I think the 
[SpanRecordBenchmark.java](https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk/all/src/jmh/java/io/opentelemetry/sdk/SpanRecordBenchmark.java)
 has multiple attributes but they're of smaller size (key0 : value0 , key1 : 
value1 ... etc) , not like what we have here for the audit.
   
   I couldn't find any official opentel doc that recommend on how big your 
attribute should be, any thoughts on this?
   
   @sumitagrawl 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to