Skip to content

Commit bda3c35

Browse files
dougqhmcculls
andauthored
Avoid SpanBuilder allocation for startSpan (#9998)
* Extracting static helper * Extract static version of buildSpanContext * Switch to singleSpanBuilder * Extracting static version of startSpan * spotless * Reorganizing link & parent resolution Previous static extraction caused a test to fail because links logic relied on having a side effect on the builder instance's List<AgentSpanLink> * spotless * Apply suggestion from @mcculls Co-authored-by: Stuart McCulloch <stuart.mcculloch@datadoghq.com> * Addressing review feedback - Change CoreSpanBuilder constants to be more intelligible * Addressing review feedback - using constants throughout --------- Co-authored-by: Stuart McCulloch <stuart.mcculloch@datadoghq.com>
1 parent d8d09c6 commit bda3c35

File tree

1 file changed

+240
-84
lines changed

1 file changed

+240
-84
lines changed

0 commit comments

Comments
 (0)