• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /**
18  * A client to Stackdriver Trace API
19  *
20  * <p>The interfaces provided are listed below, along with usage samples.
21  *
22  * <p>======================= TraceServiceClient =======================
23  *
24  * <p>Service Description: This file describes an API for collecting and viewing traces and spans
25  * within a trace. A Trace is a collection of spans corresponding to a single operation or set of
26  * operations for an application. A span is an individual timed event which forms a node of the
27  * trace tree. Spans for a single trace may span multiple services.
28  *
29  * <p>Sample for TraceServiceClient:
30  *
31  * <pre>{@code
32  * // This snippet has been automatically generated and should be regarded as a code template only.
33  * // It will require modifications to work:
34  * // - It may require correct/in-range values for request initialization.
35  * // - It may require specifying regional endpoints when creating the service client as shown in
36  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
37  * try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
38  *   String projectId = "projectId-894832108";
39  *   String traceId = "traceId-1067401920";
40  *   Trace response = traceServiceClient.getTrace(projectId, traceId);
41  * }
42  * }</pre>
43  */
44 @Generated("by gapic-generator-java")
45 package com.google.cloud.trace.v1;
46 
47 import javax.annotation.Generated;
48