Commit graph

303 commits

Author SHA1 Message Date
Joe Pinsonault
315804eb7c (SERVER-1556) Add i18n related files 2016-10-17 11:10:06 -07:00
Joe Pinsonault
4df791e24f (SERVER-1556) Externalize strings
Adds a dependency on puppetlabs/i18n and externalizes the user facing strings
2016-10-17 10:34:36 -07:00
Jenkins CI
80d59cfb7d Version 0.6.1-SNAPSHOT 2016-10-05 11:02:16 -07:00
Jenkins CI
2d3e7e6153 Version 0.6.0 2016-10-05 11:02:10 -07:00
Chris Price
5682a9a69d Merge pull request #62 from rlinehan/maint-prep-for-0.6.0-release
(maint) Prep for 0.6.0 release
2016-10-04 17:51:42 -07:00
Ruth Linehan
07a051144d (maint) Prep for 0.6.0 release 2016-10-04 17:45:41 -07:00
Chris Price
a723934fcb Merge pull request #61 from rlinehan/add-logback-test
(maint) Add logback-test to suppress logging output when running tests
2016-10-04 15:15:43 -07:00
Ruth Linehan
4396d9b5ee (maint) Add logback-test to suppress logging output when running tests 2016-10-04 14:46:35 -07:00
Chris Price
c038015730 Merge pull request #60 from rlinehan/TK-402-configurable-metric-namespace
(TK-402) Allow metric namespace to be configurable
2016-10-04 14:22:30 -07:00
Ruth Linehan
af9f144e1d (TK-402) Add note about precedence of metric-prefix and server-id options
Add note to clojure client docs about precendence of `metric-prefix` option if
both it and `server-id` are specified as client options.

Also remove some empty lines.
2016-10-04 13:26:21 -07:00
Ruth Linehan
5237287c2b (TK-402) Update docs to mention configurable metric namespace 2016-10-03 12:06:15 -07:00
Ruth Linehan
4f92c1ba55 (TK-402) Allow metric namespace to be configurable
Add two new client options - `server-id` and `metric-prefix` that allow the
metric namespace to be configured rather than always
`puppetlabs.http-client.experimental`.

If `server-id` is set, the metric namespace becomes
`puppetlabs.<server-id>.http-client.experimental`.

If `metric-prefix` is set, the metric namespace becomes
`<metric-prefix>.http-client.experimental`.

If both are set, `metric-prefix` wins out and a warning message is logged.

Also add a `get-client-metric-namespace`/`getMetricNamespace` method on the
client (clojure and java) to get back the metric namespace.
2016-10-03 12:06:15 -07:00
Ruth Linehan
57702988ee (maint) Bump dependencies to newer versions 2016-09-30 14:48:58 -07:00
Chris Price
d5c91fce22 Merge pull request #59 from puppetlabs/theshanx-patch-2
Add internal_list key to MAINTAINERS
2016-09-27 12:54:36 -07:00
theshanx
404fd0cebd Add internal_list key to MAINTAINERS
This change adds a reference to the Google group the maintainers are associated with.
2016-09-27 11:26:12 -07:00
Jeremy Barlow
fd2886b5f7 Merge pull request #58 from rlinehan/TK-308-bump-apache-async
(TK-308) Bump Apache HttpAsyncClient library to 4.1.2
2016-09-27 08:18:29 -07:00
Ruth Linehan
ef8c2030da (TK-308) Bump Apache HttpAsyncClient library to 4.1.2
There was a bug in the previous version of the Apache HttpAsyncClient library
that caused the cline tto hang if the process had exhausted the number of open
file descriptors it was allowed. This bug was fixed in the 4.1.2 release,
which this commit bumps to.
2016-09-26 16:32:07 -07:00
Chris Price
90b701abe6 Merge pull request #56 from rlinehan/TK-354-add-metrics-docs
(TK-354) add metrics docs
2016-09-16 10:43:11 -07:00
Chris Price
81b15189a7 Fix typo an -> any 2016-09-16 10:42:44 -07:00
Scott Walker
1904c3893c Merge pull request #57 from cprice404/maint/master/200-add-maintainers
(200) Add MAINTAINERS
2016-09-16 10:54:09 +01:00
Ruth Linehan
594f55accb (TK-354) Reorder metrics docs
Place Clojure metrics API docs ahead of Java API docs, since probably more
people will use the Clojure API.
2016-09-15 17:27:21 -07:00
Ruth Linehan
c6b6b91da8 (TK-354) Add examples to metrics docs
And some other tweaks in response to review.
2016-09-15 17:24:07 -07:00
Chris Price
5bf122d8ac (200) Add MAINTAINERS 2016-09-15 16:18:18 -07:00
Ruth Linehan
81659166cf (TK-353) Clarify keywords vs strings for Clojure metric-ids
The Clojure metrics API supports metric-ids as vectors of keywords or strings.
Previously, the docs only mentioned that keywords could be used. Strings
should be used if special characters are needed.
2016-09-14 17:05:36 -07:00
Ruth Linehan
2703471854 (TK-354) Add metrics docs 2016-09-13 15:19:42 -07:00
Chris Price
e0368d61df Merge pull request #54 from janelu2/cookiesupport
(TK-295) add tests for cookies
2016-07-19 14:54:49 -07:00
janelu2
23b44ae93d (TK-295) add tests for cookies
(MAINT) remove comments

(MAINT) change body message to reflect 400 status

(MAINT) change test to use Java and Clj API

(MAINT) refactor RequestOptions in let block of java api test

(MAINT) add tests for async cookie support
2016-07-19 14:27:02 -07:00
Chris Price
33650fc7f2 Merge pull request #53 from senior/maint/master/update-stream-docs
(MAINT) Update docs to include :unbuffered-stream
2016-06-21 12:52:50 -07:00
Ryan Senior
943923ff4c (MAINT) Update docs to include :unbuffered-stream
I also added a caveat to the usage of the :stream response body so
users know the behavior isn't streaming, just returns an instance of
InputStream.
2016-06-21 14:45:16 -05:00
Jeremy Barlow
70b5d6d6ae Merge pull request #52 from rlinehan/TK-316-client-metrics-again
(TK-316) Improved client metrics support
2016-05-06 11:04:41 -07:00
Ruth Linehan
60e5a2450a (TK-316) Expand imports 2016-05-06 10:48:16 -07:00
Ruth Linehan
d3325c494e (TK-316) Add back accidentally deleted test 2016-05-05 09:36:56 -07:00
Ruth Linehan
8f3dc54a00 Merge pull request #4 from cprice404/TK-316-client-metrics-again.WORKING_ON_INSTANCEOF_REFACTOR
(TK-316) refactor java code to reduce casting and simplify logic
2016-05-05 09:36:09 -07:00
Chris Price
e5d97eba68 (TK-316) Replace client filter with smaller classes 2016-05-05 06:34:10 -07:00
Chris Price
65451a2e7c (TK-316) Add enum for metrics category 2016-05-05 05:58:24 -07:00
Chris Price
95602726e4 (TK-316) Extract specific filter class for Categories 2016-05-05 05:54:14 -07:00
Chris Price
01038b682d (TK-316) Minor cleanup of filter class 2016-05-05 05:20:35 -07:00
Chris Price
9aef0642c0 (TK-316) DRY up metrics data calculation 2016-05-05 05:03:51 -07:00
Chris Price
6ec92839c1 (TK-316) More explicit methods for timer/data lists 2016-05-05 04:48:07 -07:00
Chris Price
7c702330a2 (TK-316) Create subclasses for ClientMetricData 2016-05-04 17:09:31 -07:00
Chris Price
bf5ef21454 (TK-316) Create subclasses for ClientTimer 2016-05-04 16:52:39 -07:00
Ruth Linehan
e403b2abc8 (TK-316) Add public url conversion method
When constructing url timers for request metrics, we strip off any username,
password, query params, and path fragments on the request uri. This commit
provides a public method to do this conversion of a url, so that users can
take the url they used for their request and easily figure out the url we used
for the metric.
2016-05-04 16:25:52 -07:00
Chris Price
f43594eddb (TK-316) Move private Metrics methods to impl class 2016-05-04 15:52:00 -07:00
Ruth Linehan
34527507ce Merge pull request #3 from cprice404/TK-316-client-metrics-again
(TK-316) Move Java classes to separate metrics namespaces
2016-05-04 15:32:56 -07:00
Chris Price
e8a4ff4707 (TK-316) Move Java classes to separate metrics namespaces 2016-05-04 15:25:58 -07:00
Ruth Linehan
2e99e8a08c (TK-316) Throw error if no metric registry passed into get-client-metrics* fns
Previously, if any of the `get-client-metrics*` methods (in Clojure or Java)
had a nil metric registry passed into them, they would return nil. This commit
updates the behavior of all of these methods to instead return an error - a
schema error (clojure.lang.ExceptionInfo) for the clojure functions, and an
IllegalArgumentException for the java methods.
2016-05-04 15:10:24 -07:00
Ruth Linehan
da4d59fb7d (TK-316) Remove second arity of get-client-metrics* functions
Previously, all the get-client-metrics* functions had two arities - one with a
metric type and one without. This commit removes the arity with a metric type
from all these functions since currently we only have one metric type and
since we aren't entirely certain of what we want the API to be when we add
additional metric types. When we add more metric types, we will change the API
in a backward compatible way.
2016-05-04 10:38:41 -07:00
Ruth Linehan
43cdd07580 (TK-316) Add specific schemas for different categories of metrics data
Rather than having e.g a nil url and method in the metric data when metric-id
is filtered on, or a nil metric id if url and method are filtered on, use
specific schemas for metrics data returned for each metric category - metric
id, url, and url and method.
2016-05-04 10:07:48 -07:00
Ruth Linehan
8ee64549f7 (TK-316) Cleanup for PR feedback
* Don't pass args into `isMatch()` in `ClientMetricFilter`, since this method
isn't static and so has access to the member variables.
Relevant gif: https://aphyr.com/data/posts/317/state.gif.

* Remove unused `metricTypeString` method
2016-04-22 15:09:20 -07:00
Ruth Linehan
55d565acd7 (TK-316) Rename bytes-read to full-response
Rename the Metric Types from `bytes-read`/`init-repsonse` to
`full-response`/`initial-response` (note that the `initial-response` timer has
not yet been implemented, but when it is this will be its name).
2016-04-22 15:08:52 -07:00