-
Notifications
You must be signed in to change notification settings - Fork 318
Refactoring integrations #14
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
Conversation
| @@ -1,117 +0,0 @@ | |||
| package io.opentracing.contrib.agent; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gpolaert Please keep the class even if you don't use it. We might need th ability to scan the Jars.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, I reverted the file. But I'm keeping the check disabled? = doing nothing
| debug(args.getClass().getName() + " patched"); | ||
| } catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) { | ||
| error("Your " + args.getClass().getName() + "seems to be not compatible with the current integration, integration disabled, reason: " + e.getMessage()); | ||
| errTraceException(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gpolaert Exception only in debug mode
| error("Your " + args.getClass().getName() + "seems to be not compatible with the current integration, integration disabled, reason: " + e.getMessage()); | ||
| errTraceException(e); | ||
| patched = args; | ||
| } catch (Exception e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is a good idea to have to kind of exception catching. Also I would catch "Throwable" instead of "Exception" which is the lowest kind of error (otherwise RuntimeException for instance won't be caught)
| @@ -1,38 +0,0 @@ | |||
| okhttp: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok to remove this one
| @@ -1,71 +1,59 @@ | |||
| # -------------------------------------------------------- | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so, OkHTTP and WebServlet filters are missing here. Remove rules jars in Maven, write dedicated helpers and rules in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be released soon ...
Changelog: