Add tracing instrumentation, just like queries automatically add it

This commit is contained in:
Oli Scherer 2023-09-22 09:25:38 +00:00
parent 2157f31731
commit 9defc971f1

View File

@ -23,6 +23,7 @@ macro_rules! declare_hooks {
$(#[$attr])* $(#[$attr])*
#[inline(always)] #[inline(always)]
#[must_use] #[must_use]
#[instrument(level = "debug", skip(self), ret)]
pub fn $name(self, $($arg: $K,)*) -> $V pub fn $name(self, $($arg: $K,)*) -> $V
{ {
(self.tcx.hooks.$name)(self, $($arg,)*) (self.tcx.hooks.$name)(self, $($arg,)*)