Skip to content

Commit

Permalink
Merge pull request #18 from cameronbraid/instrument_at_level
Browse files Browse the repository at this point in the history
feat: change new_actor, send and notify instrumentation to use level=debug
  • Loading branch information
LeonHartley authored May 16, 2023
2 parents 9063d3c + 1693a3b commit fc2a760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions coerce/src/actor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ impl<A: Actor> LocalActorRef<A> {
/// ```
///
/// [ActorStatus]: context::ActorStatus
#[instrument(skip(msg))]
#[instrument(skip(msg), level="debug")]
pub async fn send<Msg: Message>(&self, msg: Msg) -> Result<Msg::Result, ActorRefErr>
where
A: Handler<Msg>,
Expand Down Expand Up @@ -841,7 +841,7 @@ impl<A: Actor> LocalActorRef<A> {
///
/// ```
///
#[instrument(skip(msg))]
#[instrument(skip(msg), level="debug")]
pub fn notify<Msg: Message>(&self, msg: Msg) -> Result<(), ActorRefErr>
where
A: Handler<Msg>,
Expand Down
2 changes: 1 addition & 1 deletion coerce/src/actor/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl ActorSystem {
self.new_actor(id, actor, ActorType::Anonymous).await
}

#[instrument(skip(self, id, actor))]
#[instrument(skip(self, id, actor), level="debug")]
pub async fn new_actor<I: IntoActorId, A: Actor>(
&self,
id: I,
Expand Down

0 comments on commit fc2a760

Please sign in to comment.