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 |
Sends application trace data to Stackdriver 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 Trace API directly. If you are looking to instrument your application for Stackdriver Trace, we recommend using OpenCensus.
Synopsis
- cloudTraceService :: ServiceConfig
- traceAppendScope :: Proxy '["https://www.googleapis.com/auth/trace.append"]
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- type CloudTraceAPI = ProjectsTracesSpansCreateSpanResource :<|> ProjectsTracesBatchWriteResource
- module Network.Google.Resource.CloudTrace.Projects.Traces.BatchWrite
- module Network.Google.Resource.CloudTrace.Projects.Traces.Spans.CreateSpan
- data Span
- span :: Span
- sStatus :: Lens' Span (Maybe Status)
- sStartTime :: Lens' Span (Maybe UTCTime)
- sChildSpanCount :: Lens' Span (Maybe Int32)
- sSameProcessAsParentSpan :: Lens' Span (Maybe Bool)
- sName :: Lens' Span (Maybe Text)
- sStackTrace :: Lens' Span (Maybe StackTrace)
- sAttributes :: Lens' Span (Maybe Attributes)
- sEndTime :: Lens' Span (Maybe UTCTime)
- sTimeEvents :: Lens' Span (Maybe TimeEvents)
- sDisplayName :: Lens' Span (Maybe TruncatableString)
- sParentSpanId :: Lens' Span (Maybe Text)
- sLinks :: Lens' Span (Maybe Links)
- sSpanId :: Lens' Span (Maybe Text)
- data TruncatableString
- truncatableString :: TruncatableString
- tsValue :: Lens' TruncatableString (Maybe Text)
- tsTruncatedByteCount :: Lens' TruncatableString (Maybe Int32)
- data Status
- status :: Status
- sDetails :: Lens' Status [StatusDetailsItem]
- sCode :: Lens' Status (Maybe Int32)
- sMessage :: Lens' Status (Maybe Text)
- data AttributesAttributeMap
- attributesAttributeMap :: HashMap Text AttributeValue -> AttributesAttributeMap
- aamAddtional :: Lens' AttributesAttributeMap (HashMap Text AttributeValue)
- data Annotation
- annotation :: Annotation
- aAttributes :: Lens' Annotation (Maybe Attributes)
- aDescription :: Lens' Annotation (Maybe TruncatableString)
- data AttributeValue
- attributeValue :: AttributeValue
- avBoolValue :: Lens' AttributeValue (Maybe Bool)
- avIntValue :: Lens' AttributeValue (Maybe Int64)
- avStringValue :: Lens' AttributeValue (Maybe TruncatableString)
- data MessageEvent
- messageEvent :: MessageEvent
- meId :: Lens' MessageEvent (Maybe Int64)
- meUncompressedSizeBytes :: Lens' MessageEvent (Maybe Int64)
- meType :: Lens' MessageEvent (Maybe MessageEventType)
- meCompressedSizeBytes :: Lens' MessageEvent (Maybe Int64)
- data Empty
- empty :: Empty
- data Link
- link :: Link
- lTraceId :: Lens' Link (Maybe Text)
- lAttributes :: Lens' Link (Maybe Attributes)
- lType :: Lens' Link (Maybe LinkType)
- lSpanId :: Lens' Link (Maybe Text)
- data StatusDetailsItem
- statusDetailsItem :: HashMap Text JSONValue -> StatusDetailsItem
- sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
- data StackTrace
- stackTrace :: StackTrace
- stStackTraceHashId :: Lens' StackTrace (Maybe Int64)
- stStackFrames :: Lens' StackTrace (Maybe StackFrames)
- data BatchWriteSpansRequest
- batchWriteSpansRequest :: BatchWriteSpansRequest
- bwsrSpans :: Lens' BatchWriteSpansRequest [Span]
- data MessageEventType
- data Attributes
- attributes :: Attributes
- aDroppedAttributesCount :: Lens' Attributes (Maybe Int32)
- aAttributeMap :: Lens' Attributes (Maybe AttributesAttributeMap)
- data Module
- module' :: Module
- mBuildId :: Lens' Module (Maybe TruncatableString)
- mModule :: Lens' Module (Maybe TruncatableString)
- data TimeEvents
- timeEvents :: TimeEvents
- teDroppedMessageEventsCount :: Lens' TimeEvents (Maybe Int32)
- teDroppedAnnotationsCount :: Lens' TimeEvents (Maybe Int32)
- teTimeEvent :: Lens' TimeEvents [TimeEvent]
- data Xgafv
- data StackFrames
- stackFrames :: StackFrames
- sfDroppedFramesCount :: Lens' StackFrames (Maybe Int32)
- sfFrame :: Lens' StackFrames [StackFrame]
- data LinkType
- data StackFrame
- stackFrame :: StackFrame
- sfLoadModule :: Lens' StackFrame (Maybe Module)
- sfOriginalFunctionName :: Lens' StackFrame (Maybe TruncatableString)
- sfLineNumber :: Lens' StackFrame (Maybe Int64)
- sfSourceVersion :: Lens' StackFrame (Maybe TruncatableString)
- sfFunctionName :: Lens' StackFrame (Maybe TruncatableString)
- sfColumnNumber :: Lens' StackFrame (Maybe Int64)
- sfFileName :: Lens' StackFrame (Maybe TruncatableString)
- data Links
- links :: Links
- lDroppedLinksCount :: Lens' Links (Maybe Int32)
- lLink :: Lens' Links [Link]
- data TimeEvent
- timeEvent :: TimeEvent
- teMessageEvent :: Lens' TimeEvent (Maybe MessageEvent)
- teAnnotation :: Lens' TimeEvent (Maybe Annotation)
- teTime :: Lens' TimeEvent (Maybe UTCTime)
Service Configuration
cloudTraceService :: ServiceConfig Source #
Default request referring to version v2
of the Stackdriver 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
cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #
View and manage your data across Google Cloud Platform services
API Declaration
type CloudTraceAPI = ProjectsTracesSpansCreateSpanResource :<|> ProjectsTracesBatchWriteResource Source #
Represents the entirety of the methods and resources available for the Stackdriver Trace API service.
Resources
cloudtrace.projects.traces.batchWrite
cloudtrace.projects.traces.spans.createSpan
Types
Span
A span represents a single operation within a trace. Spans can be nested to form a trace tree. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do not need to be contiguous—there may be gaps or overlaps between spans in a trace.
See: span
smart constructor.
Instances
Creates a value of Span
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sStartTime :: Lens' Span (Maybe UTCTime) Source #
The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running.
sChildSpanCount :: Lens' Span (Maybe Int32) Source #
An optional number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans.
sSameProcessAsParentSpan :: Lens' Span (Maybe Bool) Source #
(Optional) Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Stackdriver Trace is unable to take advantage of this helpful information.
sName :: Lens' Span (Maybe Text) Source #
The resource name of the span in the following format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/SPAN_ID is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.
sStackTrace :: Lens' Span (Maybe StackTrace) Source #
Stack trace captured at the start of the span.
sAttributes :: Lens' Span (Maybe Attributes) Source #
A set of attributes on the span. You can have up to 32 attributes per span.
sEndTime :: Lens' Span (Maybe UTCTime) Source #
The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.
sTimeEvents :: Lens' Span (Maybe TimeEvents) Source #
A set of time events. You can have up to 32 annotations and 128 message events per span.
sDisplayName :: Lens' Span (Maybe TruncatableString) Source #
A description of the span's operation (up to 128 bytes). Stackdriver Trace displays the description in the Google Cloud Platform Console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces.
sParentSpanId :: Lens' Span (Maybe Text) Source #
The [SPAN_ID] of this span's parent span. If this is a root span, then this field must be empty.
sLinks :: Lens' Span (Maybe Links) Source #
Links associated with the span. You can have up to 128 links per Span.
TruncatableString
data TruncatableString Source #
Represents a string that might be shortened to a specified length.
See: truncatableString
smart constructor.
Instances
truncatableString :: TruncatableString Source #
Creates a value of TruncatableString
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
tsValue :: Lens' TruncatableString (Maybe Text) Source #
The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then `value` contains the first 128 bytes of the 500-byte string. Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit.
tsTruncatedByteCount :: Lens' TruncatableString (Maybe Int32) Source #
The number of bytes removed from the original string. If this value is 0, then the string was not shortened.
Status
The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. The error model is designed to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` that can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons.
See: status
smart constructor.
Instances
Eq Status Source # | |
Data Status Source # | |
Defined in Network.Google.CloudTrace.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Status -> c Status # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Status # toConstr :: Status -> Constr # dataTypeOf :: Status -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Status) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Status) # gmapT :: (forall b. Data b => b -> b) -> Status -> Status # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Status -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Status -> r # gmapQ :: (forall d. Data d => d -> u) -> Status -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Status -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Status -> m Status # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Status -> m Status # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Status -> m Status # | |
Show Status Source # | |
Generic Status Source # | |
ToJSON Status Source # | |
Defined in Network.Google.CloudTrace.Types.Product | |
FromJSON Status Source # | |
type Rep Status Source # | |
Defined in Network.Google.CloudTrace.Types.Product type Rep Status = D1 (MetaData "Status" "Network.Google.CloudTrace.Types.Product" "gogol-cloudtrace-0.4.0-1Tc48PF6dD833eHT0bt1hA" False) (C1 (MetaCons "Status'" PrefixI True) (S1 (MetaSel (Just "_sDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [StatusDetailsItem])) :*: (S1 (MetaSel (Just "_sCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_sMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
sDetails :: Lens' Status [StatusDetailsItem] Source #
A list of messages that carry the error details. There is a common set of message types for APIs to use.
sCode :: Lens' Status (Maybe Int32) Source #
The status code, which should be an enum value of google.rpc.Code.
sMessage :: Lens' Status (Maybe Text) Source #
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
AttributesAttributeMap
data AttributesAttributeMap Source #
The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean values `true` and `false`. For example: "/instance_id": "my-instance" "/http/user_agent": "" "/http/request_bytes": 300 "abc.com/myattribute": true
See: attributesAttributeMap
smart constructor.
Instances
attributesAttributeMap Source #
Creates a value of AttributesAttributeMap
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Annotation
data Annotation Source #
Text annotation with a set of attributes.
See: annotation
smart constructor.
Instances
annotation :: Annotation Source #
Creates a value of Annotation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aAttributes :: Lens' Annotation (Maybe Attributes) Source #
A set of attributes on the annotation. You can have up to 4 attributes per Annotation.
aDescription :: Lens' Annotation (Maybe TruncatableString) Source #
A user-supplied message describing the event. The maximum length for the description is 256 bytes.
AttributeValue
data AttributeValue Source #
The allowed types for [VALUE] in a `[KEY]:[VALUE]` attribute.
See: attributeValue
smart constructor.
Instances
attributeValue :: AttributeValue Source #
Creates a value of AttributeValue
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
avBoolValue :: Lens' AttributeValue (Maybe Bool) Source #
A Boolean value represented by `true` or `false`.
avIntValue :: Lens' AttributeValue (Maybe Int64) Source #
A 64-bit signed integer.
avStringValue :: Lens' AttributeValue (Maybe TruncatableString) Source #
A string up to 256 bytes long.
MessageEvent
data MessageEvent Source #
An event describing a message sent/received between Spans.
See: messageEvent
smart constructor.
Instances
messageEvent :: MessageEvent Source #
Creates a value of MessageEvent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
meId :: Lens' MessageEvent (Maybe Int64) Source #
An identifier for the MessageEvent's message that can be used to match SENT and RECEIVED MessageEvents. It is recommended to be unique within a Span.
meUncompressedSizeBytes :: Lens' MessageEvent (Maybe Int64) Source #
The number of uncompressed bytes sent or received.
meType :: Lens' MessageEvent (Maybe MessageEventType) Source #
Type of MessageEvent. Indicates whether the message was sent or received.
meCompressedSizeBytes :: Lens' MessageEvent (Maybe Int64) Source #
The number of compressed bytes sent or received. If missing assumed to be the same size as uncompressed.
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.
Instances
Eq Empty Source # | |
Data Empty Source # | |
Defined in Network.Google.CloudTrace.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Empty -> c Empty # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Empty # dataTypeOf :: Empty -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Empty) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Empty) # gmapT :: (forall b. Data b => b -> b) -> Empty -> Empty # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Empty -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Empty -> r # gmapQ :: (forall d. Data d => d -> u) -> Empty -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Empty -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Empty -> m Empty # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Empty -> m Empty # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Empty -> m Empty # | |
Show Empty Source # | |
Generic Empty Source # | |
ToJSON Empty Source # | |
Defined in Network.Google.CloudTrace.Types.Product | |
FromJSON Empty Source # | |
type Rep Empty Source # | |
Link
A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.
See: link
smart constructor.
Instances
Eq Link Source # | |
Data Link Source # | |
Defined in Network.Google.CloudTrace.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Link -> c Link # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Link # dataTypeOf :: Link -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Link) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Link) # gmapT :: (forall b. Data b => b -> b) -> Link -> Link # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Link -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Link -> r # gmapQ :: (forall d. Data d => d -> u) -> Link -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Link -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Link -> m Link # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Link -> m Link # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Link -> m Link # | |
Show Link Source # | |
Generic Link Source # | |
ToJSON Link Source # | |
Defined in Network.Google.CloudTrace.Types.Product | |
FromJSON Link Source # | |
type Rep Link Source # | |
Defined in Network.Google.CloudTrace.Types.Product type Rep Link = D1 (MetaData "Link" "Network.Google.CloudTrace.Types.Product" "gogol-cloudtrace-0.4.0-1Tc48PF6dD833eHT0bt1hA" False) (C1 (MetaCons "Link'" PrefixI True) ((S1 (MetaSel (Just "_lTraceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Attributes))) :*: (S1 (MetaSel (Just "_lType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LinkType)) :*: S1 (MetaSel (Just "_lSpanId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
Creates a value of Link
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lAttributes :: Lens' Link (Maybe Attributes) Source #
A set of attributes on the link. You have have up to 32 attributes per link.
lType :: Lens' Link (Maybe LinkType) Source #
The relationship of the current span relative to the linked span.
StatusDetailsItem
data StatusDetailsItem Source #
Instances
Creates a value of StatusDetailsItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue) Source #
Properties of the object. Contains field 'type with type URL.
StackTrace
data StackTrace Source #
A call stack appearing in a trace.
See: stackTrace
smart constructor.
Instances
stackTrace :: StackTrace Source #
Creates a value of StackTrace
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
stStackTraceHashId :: Lens' StackTrace (Maybe Int64) Source #
The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace. Often multiple spans will have identical stack traces. The first occurrence of a stack trace should contain both the `stackFrame` content and a value in `stackTraceHashId`. Subsequent spans within the same request can refer to that stack trace by only setting `stackTraceHashId`.
stStackFrames :: Lens' StackTrace (Maybe StackFrames) Source #
Stack frames in this stack trace. A maximum of 128 frames are allowed.
BatchWriteSpansRequest
data BatchWriteSpansRequest Source #
The request message for the `BatchWriteSpans` method.
See: batchWriteSpansRequest
smart constructor.
Instances
batchWriteSpansRequest :: BatchWriteSpansRequest Source #
Creates a value of BatchWriteSpansRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bwsrSpans :: Lens' BatchWriteSpansRequest [Span] Source #
A list of new spans. The span names must not match existing spans, or the results are undefined.
MessageEventType
data MessageEventType Source #
Type of MessageEvent. Indicates whether the message was sent or received.
TypeUnspecified |
|
Sent |
|
Received |
|
Instances
Attributes
data Attributes Source #
A set of attributes, each in the format `[KEY]:[VALUE]`.
See: attributes
smart constructor.
Instances
attributes :: Attributes Source #
Creates a value of Attributes
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aDroppedAttributesCount :: Lens' Attributes (Maybe Int32) Source #
The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0 then all attributes are valid.
aAttributeMap :: Lens' Attributes (Maybe AttributesAttributeMap) Source #
The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean values `true` and `false`. For example: "/instance_id": "my-instance" "/http/user_agent": "" "/http/request_bytes": 300 "abc.com/myattribute": true
Module
Binary module.
See: module'
smart constructor.
Instances
Eq Module Source # | |
Data Module Source # | |
Defined in Network.Google.CloudTrace.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Module -> c Module # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Module # toConstr :: Module -> Constr # dataTypeOf :: Module -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Module) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Module) # gmapT :: (forall b. Data b => b -> b) -> Module -> Module # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Module -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Module -> r # gmapQ :: (forall d. Data d => d -> u) -> Module -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Module -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Module -> m Module # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Module -> m Module # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Module -> m Module # | |
Show Module Source # | |
Generic Module Source # | |
ToJSON Module Source # | |
Defined in Network.Google.CloudTrace.Types.Product | |
FromJSON Module Source # | |
type Rep Module Source # | |
Defined in Network.Google.CloudTrace.Types.Product type Rep Module = D1 (MetaData "Module" "Network.Google.CloudTrace.Types.Product" "gogol-cloudtrace-0.4.0-1Tc48PF6dD833eHT0bt1hA" False) (C1 (MetaCons "Module'" PrefixI True) (S1 (MetaSel (Just "_mBuildId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TruncatableString)) :*: S1 (MetaSel (Just "_mModule") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TruncatableString)))) |
mBuildId :: Lens' Module (Maybe TruncatableString) Source #
A unique identifier for the module, usually a hash of its contents (up to 128 bytes).
mModule :: Lens' Module (Maybe TruncatableString) Source #
For example: main binary, kernel modules, and dynamic libraries such as libc.so, sharedlib.so (up to 256 bytes).
TimeEvents
data TimeEvents Source #
A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation on the span, consisting of either user-supplied key:value pairs, or details of a message sent/received between Spans.
See: timeEvents
smart constructor.
Instances
timeEvents :: TimeEvents Source #
Creates a value of TimeEvents
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
teDroppedMessageEventsCount :: Lens' TimeEvents (Maybe Int32) Source #
The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.
teDroppedAnnotationsCount :: Lens' TimeEvents (Maybe Int32) Source #
The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.
teTimeEvent :: Lens' TimeEvents [TimeEvent] Source #
A collection of `TimeEvent`s.
Xgafv
V1 error format.
Instances
StackFrames
data StackFrames Source #
A collection of stack frames, which can be truncated.
See: stackFrames
smart constructor.
Instances
stackFrames :: StackFrames Source #
Creates a value of StackFrames
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sfDroppedFramesCount :: Lens' StackFrames (Maybe Int32) Source #
The number of stack frames that were dropped because there were too many stack frames. If this value is 0, then no stack frames were dropped.
sfFrame :: Lens' StackFrames [StackFrame] Source #
Stack frames in this call stack.
LinkType
The relationship of the current span relative to the linked span.
LTTypeUnspecified |
|
LTChildLinkedSpan |
|
LTParentLinkedSpan |
|
Instances
StackFrame
data StackFrame Source #
Represents a single stack frame in a stack trace.
See: stackFrame
smart constructor.
Instances
stackFrame :: StackFrame Source #
Creates a value of StackFrame
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sfLoadModule :: Lens' StackFrame (Maybe Module) Source #
The binary module from where the code was loaded.
sfOriginalFunctionName :: Lens' StackFrame (Maybe TruncatableString) Source #
An un-mangled function name, if `function_name` is mangled. The name can be fully-qualified (up to 1024 bytes).
sfLineNumber :: Lens' StackFrame (Maybe Int64) Source #
The line number in `file_name` where the function call appears.
sfSourceVersion :: Lens' StackFrame (Maybe TruncatableString) Source #
The version of the deployed source code (up to 128 bytes).
sfFunctionName :: Lens' StackFrame (Maybe TruncatableString) Source #
The fully-qualified name that uniquely identifies the function or method that is active in this frame (up to 1024 bytes).
sfColumnNumber :: Lens' StackFrame (Maybe Int64) Source #
The column number where the function call appears, if available. This is important in JavaScript because of its anonymous functions.
sfFileName :: Lens' StackFrame (Maybe TruncatableString) Source #
The name of the source file where the function call appears (up to 256 bytes).
Links
A collection of links, which are references from this span to a span in the same or different trace.
See: links
smart constructor.
Instances
Eq Links Source # | |
Data Links Source # | |
Defined in Network.Google.CloudTrace.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Links -> c Links # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Links # dataTypeOf :: Links -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Links) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Links) # gmapT :: (forall b. Data b => b -> b) -> Links -> Links # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Links -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Links -> r # gmapQ :: (forall d. Data d => d -> u) -> Links -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Links -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Links -> m Links # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Links -> m Links # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Links -> m Links # | |
Show Links Source # | |
Generic Links Source # | |
ToJSON Links Source # | |
Defined in Network.Google.CloudTrace.Types.Product | |
FromJSON Links Source # | |
type Rep Links Source # | |
Defined in Network.Google.CloudTrace.Types.Product type Rep Links = D1 (MetaData "Links" "Network.Google.CloudTrace.Types.Product" "gogol-cloudtrace-0.4.0-1Tc48PF6dD833eHT0bt1hA" False) (C1 (MetaCons "Links'" PrefixI True) (S1 (MetaSel (Just "_lDroppedLinksCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_lLink") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Link])))) |
Creates a value of Links
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lDroppedLinksCount :: Lens' Links (Maybe Int32) Source #
The number of dropped links after the maximum size was enforced. If this value is 0, then no links were dropped.
TimeEvent
A time-stamped annotation or message event in the Span.
See: timeEvent
smart constructor.
Instances
Eq TimeEvent Source # | |
Data TimeEvent Source # | |
Defined in Network.Google.CloudTrace.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TimeEvent -> c TimeEvent # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TimeEvent # toConstr :: TimeEvent -> Constr # dataTypeOf :: TimeEvent -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TimeEvent) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TimeEvent) # gmapT :: (forall b. Data b => b -> b) -> TimeEvent -> TimeEvent # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TimeEvent -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TimeEvent -> r # gmapQ :: (forall d. Data d => d -> u) -> TimeEvent -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> TimeEvent -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TimeEvent -> m TimeEvent # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TimeEvent -> m TimeEvent # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TimeEvent -> m TimeEvent # | |
Show TimeEvent Source # | |
Generic TimeEvent Source # | |
ToJSON TimeEvent Source # | |
Defined in Network.Google.CloudTrace.Types.Product | |
FromJSON TimeEvent Source # | |
type Rep TimeEvent Source # | |
Defined in Network.Google.CloudTrace.Types.Product type Rep TimeEvent = D1 (MetaData "TimeEvent" "Network.Google.CloudTrace.Types.Product" "gogol-cloudtrace-0.4.0-1Tc48PF6dD833eHT0bt1hA" False) (C1 (MetaCons "TimeEvent'" PrefixI True) (S1 (MetaSel (Just "_teMessageEvent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MessageEvent)) :*: (S1 (MetaSel (Just "_teAnnotation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Annotation)) :*: S1 (MetaSel (Just "_teTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime'))))) |
timeEvent :: TimeEvent Source #
Creates a value of TimeEvent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
teMessageEvent :: Lens' TimeEvent (Maybe MessageEvent) Source #
An event describing a message sent/received between Spans.
teAnnotation :: Lens' TimeEvent (Maybe Annotation) Source #
Text annotation with a set of attributes.