-
Notifications
You must be signed in to change notification settings - Fork 16
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
More logging around Apache client creation & close #655
Conversation
Generate changelog in
|
4087a5d
to
67db8d4
Compare
PoolingHttpClientConnectionManager pool, | ||
ResponseLeakDetector leakDetector, | ||
@Nullable ExecutorService executor) { | ||
log.debug("Apache client created", SafeArg.of("name", name)); |
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.
we already produce a meter with this information internally, not sure if this is necessary
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.
Metrics come out at a 30second granularity. Also the semantics of the metric produced by WC could change and we wouldn't be able to tell from the graph. This is as close to the 'ground truth' as I think we can get.
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.
I think info level is reasonable here
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.
ya we'd expect this to happen incredibly infrequently right?
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.
yep - most services don't try to live-reload their security / ssl config, so I'd expect to see this log line once in the lifetime of a server.
ee1cdd4
to
4f47af0
Compare
...ogue-apache-hc4-client/src/main/java/com/palantir/dialogue/hc4/ApacheHttpClientChannels.java
Outdated
Show resolved
Hide resolved
Released 1.22.0 |
Before this PR
@bwaldrep reported a containerized service is throwing a bunch of these:
(traceid d751285fbb945646)
After this PR
==COMMIT_MSG==
ApacheHttpClientChannels
prints some debug log lines around creation & close==COMMIT_MSG==
Possible downsides?