-
Notifications
You must be signed in to change notification settings - Fork 928
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
feat: instrumentation for apache httpclient 5 #10100
Conversation
8a8da27
to
49f6a71
Compare
Could some maintainer (maybe @trask?) help me with the approval and also with fixing one test? It is failing, but I could not find the root cause for 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.
https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/supported-libraries.md
should also be update to include this
A readme similar to https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/okhttp/okhttp-3.0/library/README.md should be added.
instrumentation/apache-httpclient/apache-httpclient-5.0/library/build.gradle.kts
Outdated
Show resolved
Hide resolved
instrumentation/apache-httpclient/apache-httpclient-5.0/library/build.gradle.kts
Outdated
Show resolved
Hide resolved
instrumentation/apache-httpclient/apache-httpclient-5.0/testing/build.gradle.kts
Outdated
Show resolved
Hide resolved
instrumentation/apache-httpclient/apache-httpclient-5.0/library/build.gradle.kts
Outdated
Show resolved
Hide resolved
.../java/io/opentelemetry/instrumentation/apachehttpclient/v5_0/ApacheHttpClient5Telemetry.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
/** Returns a new {@link HttpClientBuilder} to create a client with tracing configured. */ | ||
public HttpClientBuilder newHttpClientBuilder() { |
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.
any plans to also instrument HttpAsyncClientBuilder
?
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.
Yes, but in the future in a new PR. In the moment we only need the non async client
...c/main/java/io/opentelemetry/instrumentation/apachehttpclient/v5_0/OtelExecChainHandler.java
Outdated
Show resolved
Hide resolved
.../test/java/io/opentelemetry/instrumentation/apachehttpclient/v5_0/ApacheHttpClient5Test.java
Outdated
Show resolved
Hide resolved
...entelemetry/instrumentation/apachehttpclient/v5_0/ApacheHttpClient5HttpAttributesGetter.java
Outdated
Show resolved
Hide resolved
...ng/src/main/java/io/opentelemetry/instrumentation/apachehttpclient/v5_0/Http5UriRequest.java
Outdated
Show resolved
Hide resolved
bd0e78f
to
2ea6ffa
Compare
.../test/java/io/opentelemetry/instrumentation/apachehttpclient/v5_2/ApacheHttpClient5Test.java
Outdated
Show resolved
Hide resolved
...in/java/io/opentelemetry/instrumentation/apachehttpclient/v5_2/ApacheHttpClient5Request.java
Outdated
Show resolved
Hide resolved
...c/main/java/io/opentelemetry/instrumentation/apachehttpclient/v5_2/OtelExecChainHandler.java
Outdated
Show resolved
Hide resolved
...va/io/opentelemetry/instrumentation/apachehttpclient/v5_2/AbstractApacheHttpClient5Test.java
Outdated
Show resolved
Hide resolved
a061761
to
bdc85ac
Compare
instrumentation/apache-httpclient/apache-httpclient-5.2/library/README.md
Outdated
Show resolved
Hide resolved
instrumentation/apache-httpclient/apache-httpclient-5.2/library/README.md
Outdated
Show resolved
Hide resolved
instrumentation/apache-httpclient/apache-httpclient-5.2/library/README.md
Outdated
Show resolved
Hide resolved
instrumentation/apache-httpclient/apache-httpclient-5.2/library/build.gradle.kts
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.
last tiny suggestion, then will merge, thx @elbiocaetano!
instrumentation/apache-httpclient/apache-httpclient-5.2/library/README.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Solves issue #10099