-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClassCastException when using NewRelicErrorLogger without the aspectj weaver #29
Comments
Also a warning should be logged to let the user know that probably forgot to include the weaver jvm options when starting the app. |
in NewRelicErrorLogger without aspectJ, fixes kamon-io#29
when not using aspectJ weaver, fixes kamon-io#29
when not using aspectJ weaver, fixes kamon-io#29
when not using aspectJ weaver, fixes #29
We're running into this issue when running tests (our tests / fake app is not instrumented):
Looking at |
You are absolutely right, let me fix that quickly. |
@magro done, published |
@ivantopo Great, works nicely. |
…-advice move appender loop instrumentation from interceptor to advice, fixes #28
only replace http server operation names on 404 responses, fixes #29
when not using aspectJ weaver, fixes #29
when not using aspectJ weaver, fixes #29
When a application is configured to use the NewRelicErrorLogger but wasn't started with the aspectj weaver the class cast fails and the error loops back into the logger, producing a infinite failure loop that eventually kills the app.
When the application is not instrumented this logger should report the error anyway, missing the TraceToken information.
Exception:
flights-catalog java.lang.ClassCastException: akka.event.Logging$Error cannot be cast to kamon.trace.TraceContextAware
flights-catalog at kamon.newrelic.NewRelicErrorLogger.notifyError(NewRelicErrorLogger.scala:33) ~[kamon-newrelic-0.3.0.jar:0.3.0]
The text was updated successfully, but these errors were encountered: