Skip to content

Commit

Permalink
Add scope to intercept client response message
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeniyk committed May 26, 2020
1 parent 471bd10 commit cde1dd0
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -196,7 +196,10 @@ public void onMessage(RespT message) {
.put(Fields.MESSAGE, "Client received response message")
.build());
}
super.onMessage(message);

try (Scope ignored = tracer.scopeManager().activate(span)) {
super.onMessage(message);
}
}

@Override
Expand Down

0 comments on commit cde1dd0

Please sign in to comment.