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

Implement pcap logging for netty HTTP client #11117

Open
wants to merge 2 commits into
base: 4.7.x
Choose a base branch
from
Open

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Aug 26, 2024

The server has supported this for a long time. This PR adds the same feature for client logging. The code is very similar, and the test is basically copied.

The server has supported this for a long time. This PR adds the same feature for client logging. The code is very similar, and the test is basically copied.
@yawkat yawkat added the type: improvement A minor improvement to an existing feature label Aug 26, 2024
@yawkat yawkat added this to the 4.7.0 milestone Aug 26, 2024
Copy link

sonarcloud bot commented Aug 26, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
59.0% Coverage on New Code (required ≥ 70%)
14.2% Duplication on New Code (required ≤ 10%)

See analysis details on SonarCloud

Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

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

Please, mention in https://docs.micronaut.io/4.6.5/guide/#jdkHttpClient that JDK Client implementation does it does not support pcap logging

@yawkat
Copy link
Member Author

yawkat commented Oct 7, 2024

@dstepanov PTAL

Copy link

sonarcloud bot commented Oct 7, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
59.0% Coverage on New Code (required ≥ 70%)
14.2% Duplication on New Code (required ≤ 10%)
1 New Critical Issues (required ≤ 0)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

* @return The path pattern, or {@code null} if logging is disabled.
*/
@Internal
public String getPcapLoggingPathPattern() {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the point of having the accessors internal? People will not see the property configuration as an internal

Copy link
Member Author

Choose a reason for hiding this comment

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

the comment is for config users, the annotation is for programmatic users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants