Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Send and retrieve trace data from Google Cloud Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Cloud Trace for display, reporting, and analysis.
- cloudTraceService :: ServiceConfig
- traceAppendScope :: Proxy '["https://www.googleapis.com/auth/trace.append"]
- traceReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/trace.readonly"]
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- type CloudTraceAPI = ProjectsTracesListResource :<|> (ProjectsTracesGetResource :<|> ProjectsPatchTracesResource)
- module Network.Google.Resource.CloudTrace.Projects.PatchTraces
- module Network.Google.Resource.CloudTrace.Projects.Traces.Get
- module Network.Google.Resource.CloudTrace.Projects.Traces.List
- data Empty
- empty :: Empty
- data TraceSpanLabels
- traceSpanLabels :: HashMap Text Text -> TraceSpanLabels
- tslAddtional :: Lens' TraceSpanLabels (HashMap Text Text)
- data Traces
- traces :: Traces
- tTraces :: Lens' Traces [Trace]
- data TraceSpan
- traceSpan :: TraceSpan
- tsStartTime :: Lens' TraceSpan (Maybe Text)
- tsKind :: Lens' TraceSpan (Maybe Text)
- tsName :: Lens' TraceSpan (Maybe Text)
- tsEndTime :: Lens' TraceSpan (Maybe Text)
- tsLabels :: Lens' TraceSpan (Maybe TraceSpanLabels)
- tsParentSpanId :: Lens' TraceSpan (Maybe Word64)
- tsSpanId :: Lens' TraceSpan (Maybe Word64)
- data ListTracesResponse
- listTracesResponse :: ListTracesResponse
- ltrNextPageToken :: Lens' ListTracesResponse (Maybe Text)
- ltrTraces :: Lens' ListTracesResponse [Trace]
- data Trace
- trace :: Trace
- tTraceId :: Lens' Trace (Maybe Text)
- tSpans :: Lens' Trace [TraceSpan]
- tProjectId :: Lens' Trace (Maybe Text)
Service Configuration
cloudTraceService :: ServiceConfig Source #
Default request referring to version v1
of the Google Cloud Trace API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
traceAppendScope :: Proxy '["https://www.googleapis.com/auth/trace.append"] Source #
Write Trace data for a project or application
traceReadOnlyScope :: Proxy '["https://www.googleapis.com/auth/trace.readonly"] Source #
Read Trace data for a project or application
cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #
View and manage your data across Google Cloud Platform services
API Declaration
type CloudTraceAPI = ProjectsTracesListResource :<|> (ProjectsTracesGetResource :<|> ProjectsPatchTracesResource) Source #
Represents the entirety of the methods and resources available for the Google Cloud Trace API service.
Resources
cloudtrace.projects.patchTraces
cloudtrace.projects.traces.get
cloudtrace.projects.traces.list
Types
Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
See: empty
smart constructor.
TraceSpanLabels
data TraceSpanLabels Source #
Collection of labels associated with the span.
See: traceSpanLabels
smart constructor.
Creates a value of TraceSpanLabels
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Traces
List of new or updated traces.
See: traces
smart constructor.
TraceSpan
A span represents a single timed event within a trace. Spans can be nested and form a trace tree. Often, a trace contains a root span that describes the end-to-end latency of an operation and, optionally, one or more subspans for its suboperations. Spans do not need to be contiguous. There may be gaps between spans in a trace.
See: traceSpan
smart constructor.
traceSpan :: TraceSpan Source #
Creates a value of TraceSpan
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tsStartTime :: Lens' TraceSpan (Maybe Text) Source #
Start time of the span in nanoseconds from the UNIX epoch.
tsKind :: Lens' TraceSpan (Maybe Text) Source #
Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span.
tsName :: Lens' TraceSpan (Maybe Text) Source #
Name of the trace. The trace name is sanitized and displayed in the Stackdriver Trace tool in the {% dynamic print site_values.console_name %}. The name may be a method name or some other per-call site name. For the same executable and the same call point, a best practice is to use a consistent name, which makes it easier to correlate cross-trace spans.
tsEndTime :: Lens' TraceSpan (Maybe Text) Source #
End time of the span in nanoseconds from the UNIX epoch.
tsLabels :: Lens' TraceSpan (Maybe TraceSpanLabels) Source #
Collection of labels associated with the span.
tsSpanId :: Lens' TraceSpan (Maybe Word64) Source #
Identifier for the span. This identifier must be unique within a trace.
ListTracesResponse
data ListTracesResponse Source #
The response message for the `ListTraces` method.
See: listTracesResponse
smart constructor.
listTracesResponse :: ListTracesResponse Source #
Creates a value of ListTracesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltrNextPageToken :: Lens' ListTracesResponse (Maybe Text) Source #
If defined, indicates that there are more traces that match the request and that this value should be passed to the next request to continue retrieving additional traces.
Trace
A trace describes how long it takes for an application to perform an operation. It consists of a set of spans, each of which represent a single timed event within the operation.
See: trace
smart constructor.
Creates a value of Trace
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired: