Rename misleading advice methods (#8485)

This commit is contained in:
Lauri Tulmin 2023-05-12 18:02:19 +03:00 committed by GitHub
parent b74d482eea
commit ee00c7e6ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 10 additions and 10 deletions

View File

@ -47,7 +47,7 @@ public class CxfJaxRsInvokerInstrumentation implements TypeInstrumentation {
}
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(@Advice.Local("otelScope") Scope scope) {
public static void onExit(@Advice.Local("otelScope") Scope scope) {
if (scope != null) {
scope.close();
}

View File

@ -46,7 +46,7 @@ public class CxfRsHttpListenerInstrumentation implements TypeInstrumentation {
}
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(@Advice.Local("otelScope") Scope scope) {
public static void onExit(@Advice.Local("otelScope") Scope scope) {
if (scope != null) {
scope.close();
}

View File

@ -54,7 +54,7 @@ public class CxfServletControllerInstrumentation implements TypeInstrumentation
}
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(@Advice.Local("otelScope") Scope scope) {
public static void onExit(@Advice.Local("otelScope") Scope scope) {
if (scope != null) {
scope.close();
}

View File

@ -53,7 +53,7 @@ public class JerseyServletContainerInstrumentation implements TypeInstrumentatio
}
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(@Advice.Local("otelScope") Scope scope) {
public static void onExit(@Advice.Local("otelScope") Scope scope) {
if (scope != null) {
scope.close();
}

View File

@ -47,7 +47,7 @@ public class Resteasy30ServletContainerDispatcherInstrumentation implements Type
}
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(@Advice.Local("otelScope") Scope scope) {
public static void onExit(@Advice.Local("otelScope") Scope scope) {
if (scope != null) {
scope.close();
}

View File

@ -61,7 +61,7 @@ public class ResteasyResourceLocatorInvokerInstrumentation implements TypeInstru
}
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(@Advice.Local("otelScope") Scope scope) {
public static void onExit(@Advice.Local("otelScope") Scope scope) {
if (scope != null) {
scope.close();
}

View File

@ -47,7 +47,7 @@ public class ResteasyServletContainerDispatcherInstrumentation implements TypeIn
}
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(@Advice.Local("otelScope") Scope scope) {
public static void onExit(@Advice.Local("otelScope") Scope scope) {
if (scope != null) {
scope.close();
}

View File

@ -53,7 +53,7 @@ public class JerseyServletContainerInstrumentation implements TypeInstrumentatio
}
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(@Advice.Local("otelScope") Scope scope) {
public static void onExit(@Advice.Local("otelScope") Scope scope) {
if (scope != null) {
scope.close();
}

View File

@ -61,7 +61,7 @@ public class ResteasyResourceLocatorInvokerInstrumentation implements TypeInstru
}
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(@Advice.Local("otelScope") Scope scope) {
public static void onExit(@Advice.Local("otelScope") Scope scope) {
if (scope != null) {
scope.close();
}

View File

@ -47,7 +47,7 @@ public class ResteasyServletContainerDispatcherInstrumentation implements TypeIn
}
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
public static void stopSpan(@Advice.Local("otelScope") Scope scope) {
public static void onExit(@Advice.Local("otelScope") Scope scope) {
if (scope != null) {
scope.close();
}