Skip to content

Commit

Permalink
use class from influxdb client for call depth counting
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed May 6, 2024
1 parent 5f50fce commit 4b5d136
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static void onEnter(
@Advice.Local("otelRequest") InfluxDbRequest influxDbRequest,
@Advice.Local("otelContext") Context context,
@Advice.Local("otelScope") Scope scope) {
callDepth = CallDepth.forClass(Retrofit.class);
callDepth = CallDepth.forClass(InfluxDBImpl.class);
if (callDepth.getAndIncrement() > 0) {
return;
}
Expand Down Expand Up @@ -137,7 +137,7 @@ public static void onEnter(
@Advice.Local("otelRequest") InfluxDbRequest influxDbRequest,
@Advice.Local("otelContext") Context context,
@Advice.Local("otelScope") Scope scope) {
callDepth = CallDepth.forClass(Retrofit.class);
callDepth = CallDepth.forClass(InfluxDBImpl.class);
if (callDepth.getAndIncrement() > 0) {
return;
}
Expand Down

0 comments on commit 4b5d136

Please sign in to comment.