@ Benchmark @ BenchmarkMode ( Mode . AverageTime ) @ OutputTimeUnit ( TimeUnit . NANOSECONDS ) public Link createLink ( Data data ) { return Link . fromSpanContext ( SpanContext . create ( TraceId . fromBytes ( new byte [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 0 } ) , SpanId . fromBytes ( new byte [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 0 } ) , TraceOptions . DEFAULT , TRACESTATE_DEFAULT ) , Link . Type . PARENT_LINKED_SPAN ) ; }
Create a link .