@ Benchmark @ BenchmarkMode ( Mode . AverageTime ) @ OutputTimeUnit ( TimeUnit . NANOSECONDS ) public Span putAttribute ( Data data ) { Span span = data . attributeSpan ; for ( int i = 0 ; i < data . size ; i ++ ) { span . putAttribute ( data . attributeKeys [ i ] , data . attributeValues [ i ] ) ; } return span ; }
Add attributes individually .