MCPcopy Create free account
hub / github.com/anelson/tracers / probe_impl

Function probe_impl

tracers-codegen/src/proc_macros.rs:50–52  ·  view source on GitHub ↗

Translates what looks to be an explicit call to the associated function corresponding to a probe on a provider trait, into something which at runtime will most efficiently attempt to access the global static instance of the probe and, if it's enabled, evaluate the args and fire the probe. It translates something like this: ```noexecute probe!(MyProvider::myprobe(1, 5, "this is a string", compute

(tokens: TokenStream)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

probeFunction · 0.85

Calls 2

code_generatorFunction · 0.85
handle_probe_callMethod · 0.45

Tested by

no test coverage detected