🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

pub trait Callsite: Sync {
    fn set_interest(&self, interest: Interest);
    fn metadata(&self) -> &Metadata<'_>;
Expand description

Trait implemented by callsites.

These functions are only intended to be called by the callsite registry, which correctly handles determining the common interest between all collectors.

See the module-level documentation for details on callsites.

Required Methods

Sets the Interest for this callsite.

See the documentation on callsite interest caching for details.

Returns the metadata associated with the callsite.