File tree Expand file tree Collapse file tree
sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/tracing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,11 @@ public interface ApiTracer {
5252 * Asks the underlying implementation to install itself as a thread local. This allows for interop
5353 * between clients using gax and external resources to share the same implementation of the
5454 * tracing. For example OpenCensus will install a thread local that can read by the GRPC.
55+ *
56+ * @deprecated Scope management is handled internally by OpenTelemetry tracer implementations.
5557 */
58+ @ Deprecated
59+ @ ObsoleteApi ("Scope management is handled internally by OpenTelemetry tracer implementations" )
5660 default Scope inScope () {
5761 return () -> {
5862 // noop
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ public static ApiTracer getInstance() {
6161 }
6262
6363 @ Override
64+ @ Deprecated
65+ @ ObsoleteApi ("Scope management is handled internally by OpenTelemetry tracer implementations" )
6466 public Scope inScope () {
6567 return NOOP_SCOPE ;
6668 }
Original file line number Diff line number Diff line change 3030package com .google .api .gax .tracing ;
3131
3232import com .google .api .core .InternalApi ;
33+ import com .google .api .core .ObsoleteApi ;
3334import com .google .common .collect .ImmutableList ;
3435import java .util .ArrayList ;
3536import java .util .List ;
@@ -52,6 +53,8 @@ public CompositeTracer(List<ApiTracer> children) {
5253 }
5354
5455 @ Override
56+ @ Deprecated
57+ @ ObsoleteApi ("Scope management is handled internally by OpenTelemetry tracer implementations" )
5558 public Scope inScope () {
5659 final List <Scope > childScopes = new ArrayList <>(children .size ());
5760
You can’t perform that action at this time.
0 commit comments