@Generated(value="by gapic-generator-java")
See: Description
| Class | Description |
|---|---|
| TraceServiceClient |
Service Description: This file describes an API for collecting and viewing traces and spans
within a trace.
|
| TraceServiceClient.ListTracesFixedSizeCollection | |
| TraceServiceClient.ListTracesPage | |
| TraceServiceClient.ListTracesPagedResponse | |
| TraceServiceSettings |
Settings class to configure an instance of
TraceServiceClient. |
| TraceServiceSettings.Builder |
Builder for TraceServiceSettings.
|
======================= TraceServiceClient =======================
Service Description: This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. Spans for a single trace may span multiple services.
Sample for TraceServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
String projectId = "projectId-894832108";
String traceId = "traceId-1067401920";
Trace response = traceServiceClient.getTrace(projectId, traceId);
}
Copyright © 2022 Google LLC. All rights reserved.