Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Span
- data SpanKind
- traceId :: Span -> Id
- spanId :: Span -> Id
- spanKind :: Span -> SpanKind
- parentId :: Span -> Maybe Id
- spanName :: Span -> Text
- timestamp :: Span -> Int
- errorCount :: Span -> Int
- addToErrorCount :: Int -> Span -> Span
- serviceName :: Span -> Maybe Text
- setServiceName :: Text -> Span -> Span
- spanData :: Span -> Value
- addRegisteredData :: Value -> Span -> Span
- addRegisteredDataAt :: ToJSON a => Text -> a -> Span -> Span
- addTag :: Value -> Span -> Span
- addTagAt :: ToJSON a => Text -> a -> Span -> Span
Documentation
A span.
The span kind (entry, exit or intermediate).
EntryKind | The monitored componenent receives a call. |
ExitKind | The monitored componenent calls something else. |
IntermediateKind | An additional annotation that is added to the trace while a traced call is being processed. |
errorCount :: Span -> Int Source #
Error count.
serviceName :: Span -> Maybe Text Source #
An optional attribute for overriding the name of the service in Instana.
setServiceName :: Text -> Span -> Span Source #
Override the name of the service for the associated call in Instana.
addRegisteredData :: Value -> Span -> Span Source #
Add a value to the span's data section. This should only be used for registered spans, not for SDK spans. For SDK spans, you should use addTag instead.
addRegisteredDataAt :: ToJSON a => Text -> a -> Span -> Span Source #
Add a value at the given path to the span's data section. For SDK spans, you should use addTagAt instead.