cloudtrace/v2 library
Cloud Trace API - v2
Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenTelemetry.
For more information, see cloud.google.com/trace
Create an instance of CloudTraceApi to access these resources:
Classes
- Annotation
- Text annotation with a set of attributes.
- Attributes
- A set of attributes as key-value pairs.
- AttributeValue
-
The allowed types for
[VALUE]
in a[KEY]:[VALUE]
attribute. - BatchWriteSpansRequest
-
The request message for the
BatchWriteSpans
method. - CloudTraceApi
- Sends application trace data to Cloud Trace for viewing.
- Link
- A pointer from the current span to another span in the same trace or in a different trace.
- Links
- A collection of links, which are references from this span to a span in the same or different trace.
- MessageEvent
- An event describing a message sent/received between Spans.
- Module
- Binary module.
- ProjectsResource
- ProjectsTracesResource
- ProjectsTracesSpansResource
- Span
- A span represents a single operation within a trace.
- StackFrame
- Represents a single stack frame in a stack trace.
- StackFrames
- A collection of stack frames, which can be truncated.
- StackTrace
- A call stack appearing in a trace.
- TimeEvent
- A time-stamped annotation or message event in the Span.
- TimeEvents
-
A collection of
TimeEvent
s.
Typedefs
- Empty = $Empty
- A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
- Status = $Status
-
The
Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. - TruncatableString = $TruncatableString
- Represents a string that might be shortened to a specified length.
Exceptions / Errors
- ApiRequestError
- Represents a general error reported by the API endpoint.
- DetailedApiRequestError
- Represents a specific error reported by the API endpoint.