- 2.72.2 (latest)
- 2.72.1
- 2.71.0
- 2.70.3
- 2.69.0
- 2.68.2
- 2.67.0
- 2.66.0
- 2.65.0
- 2.63.1
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.1
- 2.58.0
- 2.57.0
- 2.55.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.1
- 2.47.0
- 2.46.1
- 2.45.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.1
- 2.33.0
- 2.32.1
- 2.31.1
- 2.30.1
- 2.24.0
- 2.23.3
- 2.22.0
- 2.21.0
- 2.20.1
- 2.19.6
- 2.18.7
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.2
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.1
- 2.7.1
Package com.google.api.gax.tracing (2.72.2)
| GitHub Repository |
Classes
| Class | Description |
|---|---|
| com. | A base implementation ofApiTracer that does nothing. With the deprecation of Java 7 support, all the methods inApiTracer are now made default, we no longer need a base class that does nothing. This class should be removed once all the references to it are removed in Google Cloud Client Libraries. |
| com. | Base factory that will buildApiTracers that do nothing. For internal use only. |
| com. | A value class to represent the name of the RPC method in anApiTracer. |
| com. | This class computes generic metrics that can be observed in the lifecycle of an RPC operation. The responsibility of recording metrics should delegate toMetricsRecorder, hence this class should not have any knowledge about the observability framework used for metrics recording. method_name and language will be autopopulated attributes. Default value of language is 'Java'. |
| com. | AApiTracerFactory to build instances ofMetricsTracer. This class wraps theMetricsRecorder and pass it toMetricsTracer. It will be used to record metrics inMetricsTracer. |
| com. | OpenTelemetry implementation of recording metrics. This implementation collections the measurements related to the lifecyle of an RPC. For the Otel implementation, an attempt is a single RPC invocation and an operation is the |
| com. | Implementation ofApiTracer that uses OpenCensus. This implementation wraps an OpenCensusSpan for every tracer and annotates thatSpan with various events throughout the lifecycle of the logical operation. |
| com. | AApiTracerFactory to build instances ofOpencensusTracer. This class wraps theTracer provided by Opencensus in |
| com. | A value class to represent the name of the operation in anApiTracer. |
| com. | This callable wraps a batching callable chain in aApiTracer. For internal use only. |
| com. | A wrapper callable that will wrap a callable chain in a trace. For internal use only. |
| com. | A wrapper callable that will wrap a callable chain in a trace. This can be safely called from multiple threads. However the requestApiStreamObserver can only be used from a single thread. |
| com. | This callable wraps aOperationCallable in aApiTracer. For internal use only. |
| com. | Traces the initial RPC of a long running operation. It will trace it like a child unary RPC and will also contribute to the parent tracer (created byTracedOperationCallable) the result of the call. |
| com. | A wrapper callable that will wrap a callable chain in a trace. For internal use only. |
| com. | This callable wraps a callable chain in aApiTracer. For internal use only. |
Interfaces
| Interface | Description |
|---|---|
| com. | Implementations of this class trace the logical flow of a google cloud client. A single instance of a tracer represents a logical operation that can be annotated throughout its lifecycle. Constructing an instance of a subclass will implicitly signal the start of a new |
| com. | A context class to be used with#inScope() and a try-with-resources block. Closing aScope removes any context that the underlying implementation might've set in#inScope(). |
| com. | A factory to create new instances ofApiTracers. In general a single instance of anApiTracer will correspond to a single logical operation. |
| com. | Provides an interface for metrics recording. The implementer is expected to use an observability framework, e.g. OpenTelemetry. There should be only one instance of MetricsRecorder per client, all the methods in this class are expected to be called from multiple threads, hence the implementation must be thread safe. |
Enums
| Enum | Description |
|---|---|
| com. | The type of operation theApiTracer is tracing. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-17 UTC.