-
Notifications
You must be signed in to change notification settings - Fork 884
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
Restlet 2.0 instrumentation #4535
Conversation
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.
Left a few minor comments, but overall 👍
...brary/src/main/java/io/opentelemetry/instrumentation/restlet/v2_0/RestletTracingBuilder.java
Outdated
Show resolved
Hide resolved
...ibrary/src/main/java/io/opentelemetry/instrumentation/restlet/v2_0/RestletHeadersGetter.java
Outdated
Show resolved
Hide resolved
...t-2.0/library/src/main/java/io/opentelemetry/instrumentation/restlet/v2_0/TracingFilter.java
Outdated
Show resolved
Hide resolved
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.
Thanks! 👍
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.
thx @Enkelian!
...-2.0/library/src/main/java/io/opentelemetry/instrumentation/restlet/v2_0/RestletTracing.java
Outdated
Show resolved
Hide resolved
implementation(project(":instrumentation:restlet:restlet-2.0:library")) | ||
|
||
testImplementation(project(":instrumentation:restlet:restlet-2.0:testing")) | ||
testImplementation("org.restlet.jse:org.restlet.ext.jetty:2.0.2") |
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.
does this work, and avoid needing the resolutionStrategy
below?
testImplementation("org.restlet.jse:org.restlet.ext.jetty:2.0.2") | |
testLibrary("org.restlet.jse:org.restlet.ext.jetty:2.0.2") | |
latestDepTestLibrary("org.restlet.jse:org.restlet.ext.jetty:2.+") |
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.
is the resolutionStrategy
below still needed? I think latestDepTestLibrary
is supposed to handle that
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.
Unfortunately it seems that even with testLibrary
the wrong engine gets picked up and the resolutionStrategy
is still needed.
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, thanks for confirming 👍
library("org.restlet.jse:org.restlet:2.0.2") | ||
|
||
testImplementation(project(":instrumentation:restlet:restlet-2.0:testing")) | ||
testImplementation("org.restlet.jse:org.restlet.ext.jetty:2.0.2") |
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.
(same question here)
* add restlet 2.0 instrumentation * add restlet 2.0 instrumentation * revies: testLibrary, create RestletInstrumenterFactory
Resolves #3661
Most of the code is taken from 1.0 instrumentation. Due to changes in packaging (most importantly
Request
andResponse
being moved fromorg.restlet.data
toorg.restlet
) creating acommon
module for 1.0 and 2.0 instrumentations was impossible.