Skip to content
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

Add Jodd-Http instrumentation #7868

Merged

Conversation

PhilKes
Copy link
Contributor

@PhilKes PhilKes commented Feb 21, 2023

This PR resolves #7629

This adds javaagent instrumentation for the jodd-http HttpRequest.
It creates Http Client Spans and Http Client Metrics, the lowest supported version is org.jodd:jodd-http:4.2.0 (most recent: 6.3.0), since this is the first version of the library supporting java 8, having follow-redirect capability and HttpRequest#overwriteHeader() method. The instrumented method's signature and return type HttpRequest#send() has not been modified since, and therefore the instrumentation works for all jodd-http versions above 4.2.0.

Since this is my first contribution/instrumentation, I orientated myself on the apache-httpclient-5.0 instrumentation, but obviously I would be glad to get some feedback on this

@PhilKes PhilKes requested a review from a team as a code owner February 21, 2023 19:14
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 21, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: PhilKes / name: Phil (fda76b0)

Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool @PhilKes thanks for the contribution. It looks good to me, with just a few small suggestions (and at least one missing unit test).

Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good!
Thanks @PhilKes

Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @PhilKes !

@mateuszrzeszutek mateuszrzeszutek enabled auto-merge (squash) February 23, 2023 15:42
@mateuszrzeszutek mateuszrzeszutek merged commit fad7b24 into open-telemetry:main Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Jodd
3 participants