Skip to content

Commit 84384bf

Browse files
committed
docs: Add javadoc
1 parent aaa4036 commit 84384bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/tracing/ApiTracerFactory.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ default ApiTracer newTracer(ApiTracer parent, ApiTracerContext tracerContext) {
7373
return newTracer(parent, spanName, tracerContext.operationType());
7474
}
7575

76+
/**
77+
* Indicates whether this factory requires an {@link ApiTracerContext} to be injected via {@link
78+
* #withContext(ApiTracerContext)} before creating tracers.
79+
*
80+
* @return {@code true} if an {@link ApiTracerContext} should be injected, {@code false} otherwise.
81+
*/
7682
default boolean needsContext() {
7783
return false;
7884
}

0 commit comments

Comments
 (0)