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 Stackdriver Trace.
Synopsis
- tracingService :: 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 TracingAPI = ProjectsTracesSpansCreateResource :<|> (ProjectsTracesListResource :<|> (ProjectsTracesBatchWriteResource :<|> ProjectsTracesListSpansResource))
- module Network.Google.Resource.Tracing.Projects.Traces.BatchWrite
- module Network.Google.Resource.Tracing.Projects.Traces.List
- module Network.Google.Resource.Tracing.Projects.Traces.ListSpans
- module Network.Google.Resource.Tracing.Projects.Traces.Spans.Create
- data Span
- span :: Span
- sStatus :: Lens' Span (Maybe Status)
- sStartTime :: Lens' Span (Maybe UTCTime)
- 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
- tsTruncatedCharacterCount :: Lens' TruncatableString (Maybe Int32)
- tsValue :: Lens' TruncatableString (Maybe Text)
- 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 NetworkEventType
- = TypeUnspecified
- | Sent
- | Recv
- data Empty
- empty :: Empty
- data Link
- link :: Link
- lTraceId :: Lens' Link (Maybe Text)
- lType :: Lens' Link (Maybe LinkType)
- lSpanId :: Lens' Link (Maybe Text)
- data StatusDetailsItem
- statusDetailsItem :: HashMap Text JSONValue -> StatusDetailsItem
- sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
- data ListSpansResponse
- listSpansResponse :: ListSpansResponse
- lsrNextPageToken :: Lens' ListSpansResponse (Maybe Text)
- lsrSpans :: Lens' ListSpansResponse [Span]
- data StackTrace
- stackTrace :: StackTrace
- stStackTraceHashId :: Lens' StackTrace (Maybe Word64)
- stStackFrames :: Lens' StackTrace (Maybe StackFrames)
- data BatchWriteSpansRequest
- batchWriteSpansRequest :: BatchWriteSpansRequest
- bwsrSpans :: Lens' BatchWriteSpansRequest [Span]
- data Attributes
- attributes :: Attributes
- aDroppedAttributesCount :: Lens' Attributes (Maybe Int32)
- aAttributeMap :: Lens' Attributes (Maybe AttributesAttributeMap)
- data NetworkEvent
- networkEvent :: NetworkEvent
- neTime :: Lens' NetworkEvent (Maybe UTCTime)
- neMessageSize :: Lens' NetworkEvent (Maybe Word64)
- neType :: Lens' NetworkEvent (Maybe NetworkEventType)
- neMessageId :: Lens' NetworkEvent (Maybe Word64)
- data Module
- module' :: Module
- mBuildId :: Lens' Module (Maybe TruncatableString)
- mModule :: Lens' Module (Maybe TruncatableString)
- data TimeEvents
- timeEvents :: TimeEvents
- teDroppedAnnotationsCount :: Lens' TimeEvents (Maybe Int32)
- teDroppedNetworkEventsCount :: 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 ListTracesResponse
- listTracesResponse :: ListTracesResponse
- ltrNextPageToken :: Lens' ListTracesResponse (Maybe Text)
- ltrTraces :: Lens' ListTracesResponse [Trace]
- data TimeEvent
- timeEvent :: TimeEvent
- teAnnotation :: Lens' TimeEvent (Maybe Annotation)
- teTime :: Lens' TimeEvent (Maybe UTCTime)
- teNetworkEvent :: Lens' TimeEvent (Maybe NetworkEvent)
- data Trace
- trace :: Trace
- tName :: Lens' Trace (Maybe Text)
Service Configuration
tracingService :: ServiceConfig Source #
Default request referring to version v2
of the Google Tracing 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 TracingAPI = ProjectsTracesSpansCreateResource :<|> (ProjectsTracesListResource :<|> (ProjectsTracesBatchWriteResource :<|> ProjectsTracesListSpansResource)) Source #
Represents the entirety of the methods and resources available for the Google Tracing API service.
Resources
tracing.projects.traces.batchWrite
tracing.projects.traces.list
tracing.projects.traces.listSpans
tracing.projects.traces.spans.create
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, optionally, one or more subspans for its sub-operations. (A trace could alternatively contain multiple root spans, or none at all.) Spans do not need to be contiguous. There may be gaps and/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 #
Start time of the span. On the client side, this is the local machine clock time at which the span execution was started; on the server side, this is the time at which the server application handler started running.
sName :: Lens' Span (Maybe Text) Source #
The resource name of Span in the format `projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID`. `TRACE_ID` is a unique identifier for a trace within a project and is a base16-encoded, case-insensitive string and is required to be 32 char long. `SPAN_ID` is a unique identifier for a span within a trace. It is a base 16-encoded, case-insensitive string of a 8-bytes array and is required to be 16 char long.
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. A maximum of 32 attributes are allowed per Span.
sEndTime :: Lens' Span (Maybe UTCTime) Source #
End time of the span. On the client side, this is the local machine clock time at which the span execution was ended; on the server side, this is the time at which the server application handler stopped running.
sTimeEvents :: Lens' Span (Maybe TimeEvents) Source #
A maximum of 32 annotations and 128 network events are allowed per Span.
sDisplayName :: Lens' Span (Maybe TruncatableString) Source #
Description of the operation in the span. It is sanitized and displayed in the Stackdriver Trace tool in the {% dynamic print site_values.console_name %}. The display_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 operation name, which makes it easier to correlate cross-trace spans. The maximum length for the display_name is 128 bytes.
sParentSpanId :: Lens' Span (Maybe Text) Source #
ID of parent span which is a base 16-encoded, case-insensitive string of a 8-bytes array and is required to be 16 char long. If this is a root span, the value must be empty.
sSpanId :: Lens' Span (Maybe Text) Source #
Unique identifier for a span within a trace. It is a base 16-encoded, case-insensitive string of a 8-bytes array and is required.
TruncatableString
data TruncatableString Source #
Represents a string value that might be truncated.
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:
tsTruncatedCharacterCount :: Lens' TruncatableString (Maybe Int32) Source #
The number of characters truncated from the original string value. If 0 it means that the string value was not truncated.
tsValue :: Lens' TruncatableString (Maybe Text) Source #
The truncated string value. E.g. for a string attribute this may have up to 256 bytes.
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.Tracing.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.Tracing.Types.Product | |
FromJSON Status Source # | |
type Rep Status Source # | |
Defined in Network.Google.Tracing.Types.Product type Rep Status = D1 (MetaData "Status" "Network.Google.Tracing.Types.Product" "gogol-tracing-0.4.0-IYfv4sD5poO9PMAsL7PvYd" 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 will be 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 maximum key length is 128 bytes (attributes are dropped if the key size is larger than the maximum allowed). The value can be a string (up to 256 bytes), integer, or boolean (true/false). Some common pair examples: "/instance_id": "my-instance" "/zone": "us-central1-a" "/grpc/peer_address": "ip:port" (dns, etc.) "/grpc/deadline": "Duration" "/http/user_agent" "/http/request_bytes": 300 "/http/response_bytes": 1200 "/http/url": google.com/apis "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. A maximum of 32 annotations are allowed per Span.
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. A maximum of 4 attributes are allowed 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 the value side of an attribute key:value pair.
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.
avIntValue :: Lens' AttributeValue (Maybe Int64) Source #
An integer value.
avStringValue :: Lens' AttributeValue (Maybe TruncatableString) Source #
A string value (up to 256 bytes).
NetworkEventType
data NetworkEventType Source #
Type of NetworkEvent. Indicates whether the RPC message was sent or received.
TypeUnspecified |
|
Sent |
|
Recv |
|
Instances
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.Tracing.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.Tracing.Types.Product | |
FromJSON Empty Source # | |
type Rep Empty Source # | |
Link
A pointer from this span to another span in a different `Trace` within the same service project or within a different service project. Used (for example) in batching operations, where a single batch handler processes multiple requests from different traces or when receives a request from a different service project.
See: link
smart constructor.
Instances
Eq Link Source # | |
Data Link Source # | |
Defined in Network.Google.Tracing.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.Tracing.Types.Product | |
FromJSON Link Source # | |
type Rep Link Source # | |
Defined in Network.Google.Tracing.Types.Product type Rep Link = D1 (MetaData "Link" "Network.Google.Tracing.Types.Product" "gogol-tracing-0.4.0-IYfv4sD5poO9PMAsL7PvYd" False) (C1 (MetaCons "Link'" PrefixI True) (S1 (MetaSel (Just "_lTraceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LinkType)) :*: S1 (MetaSel (Just "_lSpanId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) |
lTraceId :: Lens' Link (Maybe Text) Source #
`TRACE_ID` is a unique identifier for a trace within a project. It is a base16-encoded, case-insensitive string of a 16-bytes array and is required to be 32 char long.
lType :: Lens' Link (Maybe LinkType) Source #
The relationship of the current span relative to the linked span.
lSpanId :: Lens' Link (Maybe Text) Source #
`SPAN_ID` is a unique identifier for a span within a trace. It is a base16-encoded, case-insensitive string of a 8-bytes array and is required to be 16 char long.
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.
ListSpansResponse
data ListSpansResponse Source #
The response message for the `ListSpans` method.
See: listSpansResponse
smart constructor.
Instances
listSpansResponse :: ListSpansResponse Source #
Creates a value of ListSpansResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lsrNextPageToken :: Lens' ListSpansResponse (Maybe Text) Source #
If defined, indicates that there are more spans that match the request. Pass this as the value of `pageToken` in a subsequent request to retrieve additional spans.
lsrSpans :: Lens' ListSpansResponse [Span] Source #
The requested spans if there are any in the specified trace.
StackTrace
data StackTrace Source #
StackTrace collected 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 Word64) 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:
Attributes
data Attributes Source #
Attributes of a span with a key:value format.
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 dropped attributes after the maximum size was enforced. If 0 then no attributes were dropped.
aAttributeMap :: Lens' Attributes (Maybe AttributesAttributeMap) Source #
The maximum key length is 128 bytes (attributes are dropped if the key size is larger than the maximum allowed). The value can be a string (up to 256 bytes), integer, or boolean (true/false). Some common pair examples: "/instance_id": "my-instance" "/zone": "us-central1-a" "/grpc/peer_address": "ip:port" (dns, etc.) "/grpc/deadline": "Duration" "/http/user_agent" "/http/request_bytes": 300 "/http/response_bytes": 1200 "/http/url": google.com/apis "abc.com/myattribute": true
NetworkEvent
data NetworkEvent Source #
An event describing an RPC message sent/received on the network. A maximum of 128 network events are allowed per Span.
See: networkEvent
smart constructor.
Instances
networkEvent :: NetworkEvent Source #
Creates a value of NetworkEvent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
neTime :: Lens' NetworkEvent (Maybe UTCTime) Source #
If available, this is the kernel time: * For sent messages, this is the time at which the first bit was sent. * For received messages, this is the time at which the last bit was received.
neMessageSize :: Lens' NetworkEvent (Maybe Word64) Source #
The number of bytes sent or received.
neType :: Lens' NetworkEvent (Maybe NetworkEventType) Source #
Type of NetworkEvent. Indicates whether the RPC message was sent or received.
neMessageId :: Lens' NetworkEvent (Maybe Word64) Source #
An identifier for the message, which must be unique in this span.
Module
Binary module.
See: module'
smart constructor.
Instances
Eq Module Source # | |
Data Module Source # | |
Defined in Network.Google.Tracing.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.Tracing.Types.Product | |
FromJSON Module Source # | |
type Rep Module Source # | |
Defined in Network.Google.Tracing.Types.Product type Rep Module = D1 (MetaData "Module" "Network.Google.Tracing.Types.Product" "gogol-tracing-0.4.0-IYfv4sD5poO9PMAsL7PvYd" 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 #
Build_id is a unique identifier for the module, usually a hash of its contents (up to 128 characters).
mModule :: Lens' Module (Maybe TruncatableString) Source #
E.g. main binary, kernel modules, and dynamic libraries such as libc.so, sharedlib.so (up to 256 characters).
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 an RPC message sent/received on the network.
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:
teDroppedAnnotationsCount :: Lens' TimeEvents (Maybe Int32) Source #
The number of dropped annotations after the maximum size was enforced. If 0 then no annotations were dropped.
teDroppedNetworkEventsCount :: Lens' TimeEvents (Maybe Int32) Source #
The number of dropped network events after the maximum size was enforced. If 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 #
Represents collection of StackFrames that 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 dropped stack frames after the maximum size was enforced. If 0 then no frames were dropped.
sfFrame :: Lens' StackFrames [StackFrame] Source #
Stack frames in this stack trace.
LinkType
The relationship of the current span relative to the linked span.
LTTypeUnspecified |
|
LTChild |
|
LTParent |
|
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 #
Binary module the code is loaded from.
sfOriginalFunctionName :: Lens' StackFrame (Maybe TruncatableString) Source #
Used when the function name is mangled. May be fully-qualified (up to 1024 characters).
sfLineNumber :: Lens' StackFrame (Maybe Int64) Source #
Line number of the frame.
sfSourceVersion :: Lens' StackFrame (Maybe TruncatableString) Source #
The version of the deployed source code (up to 128 characters).
sfFunctionName :: Lens' StackFrame (Maybe TruncatableString) Source #
The fully-qualified name that uniquely identifies this function or method (up to 1024 characters).
sfColumnNumber :: Lens' StackFrame (Maybe Int64) Source #
Column number is important in JavaScript (anonymous functions). May not be available in some languages.
sfFileName :: Lens' StackFrame (Maybe TruncatableString) Source #
The filename of the file containing this frame (up to 256 characters).
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.Tracing.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.Tracing.Types.Product | |
FromJSON Links Source # | |
type Rep Links Source # | |
Defined in Network.Google.Tracing.Types.Product type Rep Links = D1 (MetaData "Links" "Network.Google.Tracing.Types.Product" "gogol-tracing-0.4.0-IYfv4sD5poO9PMAsL7PvYd" 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 0 then no links were dropped.
ListTracesResponse
data ListTracesResponse Source #
The response message for the `ListTraces` method.
See: listTracesResponse
smart constructor.
Instances
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.
TimeEvent
A time-stamped annotation in the Span.
See: timeEvent
smart constructor.
Instances
Eq TimeEvent Source # | |
Data TimeEvent Source # | |
Defined in Network.Google.Tracing.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.Tracing.Types.Product | |
FromJSON TimeEvent Source # | |
type Rep TimeEvent Source # | |
Defined in Network.Google.Tracing.Types.Product type Rep TimeEvent = D1 (MetaData "TimeEvent" "Network.Google.Tracing.Types.Product" "gogol-tracing-0.4.0-IYfv4sD5poO9PMAsL7PvYd" False) (C1 (MetaCons "TimeEvent'" PrefixI True) (S1 (MetaSel (Just "_teAnnotation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Annotation)) :*: (S1 (MetaSel (Just "_teTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DateTime')) :*: S1 (MetaSel (Just "_teNetworkEvent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe NetworkEvent))))) |
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:
teAnnotation :: Lens' TimeEvent (Maybe Annotation) Source #
One or more key:value pairs.
teTime :: Lens' TimeEvent (Maybe UTCTime) Source #
The timestamp indicating the time the event occurred.
teNetworkEvent :: Lens' TimeEvent (Maybe NetworkEvent) Source #
An event describing an RPC message sent/received on the network.
Trace
A trace describes how long it takes for an application to perform some operations. It consists of a set of spans, each representing an operation and including time information and operation details.
See: trace
smart constructor.
Instances
Eq Trace Source # | |
Data Trace Source # | |
Defined in Network.Google.Tracing.Types.Product gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Trace -> c Trace # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Trace # dataTypeOf :: Trace -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Trace) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Trace) # gmapT :: (forall b. Data b => b -> b) -> Trace -> Trace # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Trace -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Trace -> r # gmapQ :: (forall d. Data d => d -> u) -> Trace -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Trace -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Trace -> m Trace # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Trace -> m Trace # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Trace -> m Trace # | |
Show Trace Source # | |
Generic Trace Source # | |
ToJSON Trace Source # | |
Defined in Network.Google.Tracing.Types.Product | |
FromJSON Trace Source # | |
type Rep Trace Source # | |
Defined in Network.Google.Tracing.Types.Product |