This API uses the process dictionary to collect span information and can be used when all span tags an events happen in the same request handling process. There is only 1 span managed with this API. Pre-filtering is supported with the start_with_tags functions.
If you need more spans managed on the process dictionary, then look at the 'otter_span_mpdict_api' API module which can manage multiple spans with different names.finish/0 | Finish collection of span information and invoke the span filter unless the span is marked as inactive (timestamp set to 0). |
get_span/0 | Get the span from the process dictionary. |
ids/0 | Return the trace id and span id of the span in the process dictionary in a tuple. |
log/1 | Add a log to the span in the process dictionary. |
log/2 | Add a log with specific service to the span in the process dictionary. |
put_span/1 | Put a span to the process dictionary. |
start/1 | start a new span on the process dictionary of the current process. |
start/2 | start a new span on the process dictionary of the current process with an existing trace id or with a parent span. |
start/3 | start a new span on the process dictionary of the current process with an existing trace id and parent id. |
start_with_tags/2 | start a new span with a list of tags on the process dictionary of the current process and invoke the pre filter. |
start_with_tags/3 | start a new span with a list of tags on the process dictionary of the current process with an existing trace id or a parent span. |
start_with_tags/4 | start a new span with a list of tags on the process dictionary of the current process with an existing trace_id and parent_id. |
tag/2 | Add a tag to the span in the process dictionary. |
tag/3 | Add a tag with specific service to the span in the process dictionary. |
finish() -> ok
Finish collection of span information and invoke the span filter unless the span is marked as inactive (timestamp set to 0)
get_span() -> span()
Get the span from the process dictionary. If there is no active span, return an empty one with timestamp set to 0
ids() -> {trace_id(), span_id()}
Return the trace id and span id of the span in the process dictionary in a tuple. If there is no active span, return tuple {0, 0}
Add a log to the span in the process dictionary. If the span is not active, a "fake" span is returned with the default values and timestamp set to 0.
Add a log with specific service to the span in the process dictionary. If the span is not active, a "fake" span is returned with the default values and timestamp set to 0.
put_span(Span::span()) -> term()
Put a span to the process dictionary. This can be used e.g. when taking over a span started with the functional API.
start a new span on the process dictionary of the current process
start(Name::info(), TraceId::trace_id()) -> span()
start a new span on the process dictionary of the current process with an existing trace id or with a parent span
start(Name::info(), TraceId::trace_id(), ParentId::span_id()) -> span()
start a new span on the process dictionary of the current process with an existing trace id and parent id
start a new span with a list of tags on the process dictionary of the current process and invoke the pre filter
start_with_tags(Name::info(), Tags::[tag()], TraceId::trace_id()) -> span()
start a new span with a list of tags on the process dictionary of the current process with an existing trace id or a parent span.
start_with_tags(Name::info(), Tags::[tag()], TraceId::trace_id(), ParentId::span_id()) -> span()
start a new span with a list of tags on the process dictionary of the current process with an existing trace_id and parent_id
Add a tag to the span in the process dictionary. If the span is not active, a fake/empty span is returned with the default values and timestamp set to 0.
Add a tag with specific service to the span in the process dictionary. If the span is not active, a "fake" span is returned with the default values and timestamp set to 0.
Generated by EDoc, May 26 2017, 15:36:09.