Skip to content

Commit 3d6c140

Browse files
committed
Optimization withParent option description
1 parent 3728490 commit 3d6c140

File tree

1 file changed

+3
-3
lines changed
  • instrumentation-annotations/src/main/java/io/opentelemetry/instrumentation/annotations

1 file changed

+3
-3
lines changed

instrumentation-annotations/src/main/java/io/opentelemetry/instrumentation/annotations/WithSpan.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
/**
4040
* Specifies whether to use the current context as the parent when creating a Span.
4141
*
42-
* <p>If set to {@code true} (default), the created span will inherit the existing parent context,
43-
* forming part of the same trace.
42+
* <p>If set to {@code true} (default), the newly created span will use the current context as its
43+
* parent, forming part of the same trace.
4444
*
45-
* <p>If set to {@code false}, the created span will use {@link Context#root()} and have no
45+
* <p>If set to {@code false}, the newly created span will use {@link Context#root()} as its
4646
* parent, starting a new trace independently.
4747
*/
4848
boolean withParent() default true;

0 commit comments

Comments
 (0)