Class | Description |
---|---|
TraceServiceClient |
Service Description: This file describes an API for collecting and viewing traces and spans
within a trace.
|
TraceServiceSettings |
Settings class to configure an instance of
TraceServiceClient . |
TraceServiceSettings.Builder |
Builder for TraceServiceSettings.
|
The interfaces provided are listed below, along with usage samples.
================== 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. A single trace may contain span(s) from multiple services.
Sample for TraceServiceClient:
try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
ProjectName name = ProjectName.of("[PROJECT]");
List<Span> spans = new ArrayList<>();
traceServiceClient.batchWriteSpans(name, spans);
}
Copyright © 2019 Google LLC. All rights reserved.