Package com.google.cloud.spanner.spi.v1
Class SpannerRpcViews
- java.lang.Object
-
- com.google.cloud.spanner.spi.v1.SpannerRpcViews
-
public class SpannerRpcViews extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static io.opencensus.tags.TagKey
DATABASE_ID
static io.opencensus.tags.TagKey
INSTANCE_ID
static io.opencensus.tags.TagKey
METHOD
TagKeysstatic io.opencensus.tags.TagKey
PROJECT_ID
static io.opencensus.stats.Measure.MeasureLong
SPANNER_GFE_HEADER_MISSING_COUNT
Number of responses without the server-timing header.static io.opencensus.stats.Measure.MeasureLong
SPANNER_GFE_LATENCY
GFE t4t7 latency extracted from server-timing header.static io.opencensus.stats.ViewManager
viewManager
-
Constructor Summary
Constructors Constructor Description SpannerRpcViews()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
registerGfeHeaderMissingCountView()
Register GFE Header Missing Count view.static void
registerGfeLatencyAndHeaderMissingCountViews()
Register views for GFE metrics, including gfe_latency and gfe_header_missing_count.static void
registerGfeLatencyView()
Register GFE Latency view.
-
-
-
Field Detail
-
METHOD
public static final io.opencensus.tags.TagKey METHOD
TagKeys
-
PROJECT_ID
public static final io.opencensus.tags.TagKey PROJECT_ID
-
INSTANCE_ID
public static final io.opencensus.tags.TagKey INSTANCE_ID
-
DATABASE_ID
public static final io.opencensus.tags.TagKey DATABASE_ID
-
SPANNER_GFE_LATENCY
public static final io.opencensus.stats.Measure.MeasureLong SPANNER_GFE_LATENCY
GFE t4t7 latency extracted from server-timing header.
-
SPANNER_GFE_HEADER_MISSING_COUNT
public static final io.opencensus.stats.Measure.MeasureLong SPANNER_GFE_HEADER_MISSING_COUNT
Number of responses without the server-timing header.
-
viewManager
public static io.opencensus.stats.ViewManager viewManager
-
-
Method Detail
-
registerGfeLatencyAndHeaderMissingCountViews
public static void registerGfeLatencyAndHeaderMissingCountViews()
Register views for GFE metrics, including gfe_latency and gfe_header_missing_count. gfe_latency measures the latency between Google's network receives an RPC and reads back the first byte of the response. gfe_header_missing_count is a counter of the number of RPC responses without a server-timing header.
-
registerGfeLatencyView
public static void registerGfeLatencyView()
Register GFE Latency view. gfe_latency measures the latency between Google's network receives an RPC and reads back the first byte of the response.
-
registerGfeHeaderMissingCountView
public static void registerGfeHeaderMissingCountView()
Register GFE Header Missing Count view. gfe_header_missing_count is a counter of the number of RPC responses without a server-timing header.
-
-