Modules§
- apollo
- callsite
- Callsites represent the source locations from which spans or events originate.
- dispatcher
- Dispatches trace events to
Subscriber
s. - event
- Events represent single points in time during the execution of a program.
- field
Span
andEvent
key-value data.- instrument
- Attach a span to a
std::future::Future
. - level_
filters - Trace verbosity level filtering.
- metadata
- Metadata describing trace data.
- span
- Spans represent periods of time in which a program was executing in a particular context.
- subscriber
- Collects and records trace data.
Macros§
- debug
- Constructs an event at the debug level.
- debug_
span - Constructs a span at the debug level.
- enabled
- Checks whether a span or event is enabled based on the provided metadata.
- error
- Constructs an event at the error level.
- error_
span - Constructs a span at the error level.
- event
- Constructs a new
Event
. - event_
enabled - Tests whether an event with the specified level and target would be enabled.
- info
- Constructs an event at the info level.
- info_
span - Constructs a span at the info level.
- metadata
- Statically constructs new span metadata.
- span
- Constructs a new span.
- span_
enabled - Tests whether a span with the specified level and target would be enabled.
- trace
- Constructs an event at the trace level.
- trace_
span - Constructs a span at the trace level.
- warn
- Constructs an event at the warn level.
- warn_
span - Constructs a span at the warn level.
Structs§
- Auth
- Dispatch
Dispatch
trace data to aSubscriber
.- Event
Event
s represent single points in time where something occurred during the execution of a program.- Headers
- Id
- Identifies a span within the context of a subscriber.
- Level
- Describes the level of verbosity of a span or event.
- Metadata
- Metadata describing a span or event.
- Span
- A handle representing a span, with the capability to enter the span if it exists.
Enums§
Traits§
- Callsite
- Trait implemented by callsites.
- Instrument
- Attaches spans to a
std::future::Future
. - Subscriber
- Trait representing the functions required to collect trace data.
- Value
- A field value of an erased type.
Functions§
- do_get
- GET 请求
- do_
post_ with_ body - POST 请求 with body
- do_
post_ with_ params - POST 请求 with params
- do_
something - option_
bool_ to_ int - option_
map_ to_ str - trace_
log_ init - 初始化日志配置
Attribute Macros§
- instrument
- Instruments a function to create and enter a
tracing
span every time the function is called.