Skip to content

Commit

Permalink
Optimization withParent option description
Browse files Browse the repository at this point in the history
  • Loading branch information
xiepuhuan committed Jan 29, 2025
1 parent 3d6c140 commit d3e79fd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
/**
* Specifies whether to use the current context as the parent when creating a Span.
*
* <p>If set to {@code true} (default), the newly created span will use the current context as its
* parent, forming part of the same trace.
* <p>If set to {@code true} (default), the created span will use the current context as its
* parent, remaining within the same trace.
*
* <p>If set to {@code false}, the newly created span will use {@link Context#root()} as its
* parent, starting a new trace independently.
* <p>If set to {@code false}, the created span will use {@link Context#root()} as its parent,
* starting a new, independent trace.
*/
boolean withParent() default true;
}

0 comments on commit d3e79fd

Please sign in to comment.