Commit graph

96 commits

Author SHA1 Message Date
Matthaus Owens
0c207527d5 (PE-19979) Update clj-parent to 0.6.1 and i18n to 0.8.0 2017-03-29 09:22:49 -07:00
Jeremy Barlow
13f694cfda (SERVER-1733) Update to clj-parent 0.4.3 and i18n 0.7.1
This commit updates the clj-parent dependency to 0.4.3 and i18n plugin
dependency to 0.7.1.  This commit also includes some updates to
i18n-related files, including the removal of pot files which are no
longer used, updates to the Makefile, and regenerated .po files.
2017-03-20 13:46:06 -07:00
Jenkins CI
cff90fbea2 Version 0.8.1-SNAPSHOT 2017-02-09 14:30:16 -08:00
Jenkins CI
a0cf791212 Version 0.8.0 2017-02-09 14:30:06 -08:00
Jeremy Barlow
2e35c54145 (MAINT) Prep for 0.8.0 release 2017-02-09 12:06:57 -08:00
Jeremy Barlow
689db7cb87 (PDB-2640) Add option for gzip compressing a request's body
This commit adds a new Clojure HTTP request option,
`:compress-request-body`, and corresponding Java option which can be used
to have gzip compression applied to the request's body before it is sent
along to the server.
2017-02-01 14:36:07 -08:00
Jeremy Barlow
b0c51913f3 (TK-430) Migrate to clj-parent 0.3.3 and bump i18n to 0.6.0
This commit migrates tk-auth to using clj-parent version 0.3.3 for its
dependencies.  This commit also updates the i18n plugin dependency from
0.4.3 to 0.6.0 for compatibility with the version of i18n being
inherited from clj-parent.  This commit also upgrades the lein version
to 2.7.1 in the .travis.yml file since 2.7.1 is the minimum version
required for compatibility with lein/clj-parent.
2017-01-31 15:27:22 -08:00
Jenkins CI
f1e367c808 Version 0.7.1-SNAPSHOT 2016-12-06 14:45:29 -08:00
Jenkins CI
b4f5007fb6 Version 0.7.0 2016-12-06 14:45:24 -08:00
Andrew Roetker
9c30001326 (maint) Prepare release notes and project.clj for 0.7.0 feature release 2016-12-06 13:59:21 -08:00
Andrew Roetker
b97ebb0526 (maint) Consolidate i18n version dependency to project.clj variable 2016-12-06 13:55:46 -08:00
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
Ruth Linehan
07a051144d (maint) Prep for 0.6.0 release 2016-10-04 17:45:41 -07:00
Ruth Linehan
57702988ee (maint) Bump dependencies to newer versions 2016-09-30 14:48:58 -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
Ruth Linehan
df4e36a1aa (TK-316) Add metrics support
This commit adds metrics support to the http client (clojure and java, sync
and async). A metric registry can optionally be passed into the client as a
client option on creation. If a metric registry is present, timers will be
added to time each request.

By default, a timer is added for the URL (stripped of username, password,
query string, and path fragments) and the URL plus the method used for the
request. In addition, a request can include a `metric-id` option, which takes
a tuple of metric ids. If this request option is specified, a timer will be
created for each element of the metric id tuple - thus if the tuple is [:foo
:bar :baz] there will be a foo timer, a foo.bar timer, and a foo.bar.baz
timer.

In addition, each timer has a "MetricType" - currently there is only one
metric type, bytes-read, which is stopped when the full response has been
read. In the future, we may add "response-init" timers that get stopped when
the first byte of the response has been read.

This commit also adds a `get-client-metrics`/`.getClientMetrics` function that
takes a client instance and returns the http client-specific metrics from the
metric registry and a `get-client-metrics-data`/`.getClientMetricsData`
function for clojure and java sync and async clients to get out metrics data
from the client. This function takes a client instance and returns a map of
metric name to a map of metric data (for clojure) or a ClientMetricData object
(for java), both of which include the mean, count, and aggregate for the timer

These `get-client-metrics*`/`.getClientMetrics*` functions also have versions
that take a url, url and method, or metric id to allow for filtering of the
timers/metrics data returned by these functions.

The clojure versions of these functions take a metric filter map. There are
also metric filter builder functions to build up the type of metric filter
desired from a url, a url and method, or a metric id. These will prevent users
from having to know the specifics of how to build a metric themselves; instead
they can use a convenience function.

An empty metric id can be passed in to the filter to return all metric-id
timers.
2016-04-19 13:13:10 -07:00
Jenkins CI
5a9d80d90e Version 0.5.1-SNAPSHOT 2016-02-02 15:42:30 -08:00
Jenkins CI
c3ac698398 Version 0.5.0 2016-02-02 15:42:25 -08:00
Alex Dreyer
6e11d2074f (maint) update changelog for 0.4.7 release. 2016-02-02 15:23:23 -08:00
Jenkins CI
e431b5036f Version 0.4.7-SNAPSHOT 2016-01-09 16:42:34 -08:00
Jenkins CI
2b7af91c24 Version 0.4.6 2016-01-09 16:42:27 -08:00
Chris Price
e7c9d22aa4 (MAINT) Update to latest apache httpasyncclient
This commit updates us to the latest version of the Apache
HTTPAsyncClient.  This is necessary in order to make it
possible to use this library in the same VM as the latest
version of clj-http, because they have some common dependencies.

The commit also cleans up some other dependencies while I was
in there.
2015-12-18 12:21:27 -08:00
Jenkins CI
7c4f95ddfd Version 0.4.6-SNAPSHOT 2015-10-13 07:13:14 -07:00
Jenkins CI
3a1aec68c7 Version 0.4.5 2015-10-13 07:13:06 -07:00
Jenkins CI
8a03faacd6 Version 0.4.5-SNAPSHOT 2015-04-15 07:33:01 -07:00
Jenkins CI
52a4fc7be4 Version 0.4.4 2015-04-15 07:32:57 -07:00
Dylan Paris
a75a9eea4b (TK-196) Update prismatic library dependencies
The prismatic/plumbing and prismatic/schema library dependencies are
lagging behind the latest stable version. This will increasingly
cause conflicts in trapperkeeper projects. This patch updates the
dependencies and fixes several functions which were validating against
schemas incompatible with the new versions.

* Update project.clj dependencies
* Use protocol schema instead of the protocol object directly
2015-04-09 15:03:57 -07:00
Jenkins CI
b21b595aee Version 0.4.4-SNAPSHOT 2015-03-20 12:43:09 -07:00
Jenkins CI
964ba2d9c2 Version 0.4.3 2015-03-20 12:43:05 -07:00
Jeremy Barlow
9b55ed31b6 (TK-134) Add connect and socket timeout client configuration
This commit enables http clients to optionally configure a connect
and/or socket timeout for requests.  For persistent clients, the
timeout values can only be configured at the client and not a
per-request level.  Non-persistent client requests support the
configuration of these timeouts.

This commit also bumps a few dependencies - tk-jetty9 to 1.2.0,
trapperkeeper to 1.10, ssl-utils to 0.8.0, and clojure to 1.6.0 -
and adds the 'test' tk-jetty9 library as a dev dependency for
testing.
2015-03-16 12:22:35 -07:00
Jenkins CI
09dd79741a lein-release plugin: bumped version from 0.4.2 to 0.4.3-SNAPSHOT for next development cycle 2015-02-13 15:32:02 -08:00
Jenkins CI
0cfa80ba64 lein-release plugin: preparing 0.4.2 release 2015-02-13 15:31:41 -08:00
Kevin Corcoran
ad93e3822f (maint) nothing to see here, move along.
* add an exclusion on a dev dependency in project.clj to make Cursive
  happy.
* clean up imports
2015-02-13 10:53:11 -08:00
Nate Wolfe
60030a3b30 (TK-143) Allow SSLv3 during unit tests
This commit enables all algorithms (by disabling none) during unit
testing so that our SSLv3 unit tests can work properly.
2015-02-12 17:05:06 -08:00
Jenkins CI
f9d6f8b200 lein-release plugin: bumped version from 0.4.1 to 0.4.2-SNAPSHOT for next development cycle 2015-01-26 10:56:40 -08:00
Jenkins CI
afb46fb72e lein-release plugin: preparing 0.4.1 release 2015-01-26 10:56:19 -08:00
Nate Wolfe
e164bb12d7 (SERVER-101) Upgrade jvm-ca dependency to 0.7.0
This commit changes the usages to reflect the new name of the library
and API.
2015-01-23 17:33:02 -08:00
Nate Wolfe
017c950f60 (MAINT) Upgrade trapperkeeper dependency to 1.0.1 2015-01-23 15:10:26 -08:00
Nate Wolfe
e8546660e0 (MAINT) Upgrade kitchensink dependency to 1.0.0 2015-01-23 14:58:23 -08:00
Jenkins CI
91e29aebeb lein-release plugin: bumped version from 0.4.0 to 0.4.1-SNAPSHOT for next development cycle 2014-11-17 15:54:26 -08:00
Jenkins CI
7e5729bffd lein-release plugin: preparing 0.4.0 release 2014-11-17 15:54:04 -08:00
Jeremy Barlow
74ef5ee0fc (MAINT) Update CHANGELOG and project.clj for 0.4.0 release 2014-11-17 14:04:56 -08:00
Jenkins CI
6ec9d10867 lein-release plugin: bumped version from 0.3.1 to 0.3.2-SNAPSHOT for next development cycle 2014-10-22 16:22:43 -07:00
Jenkins CI
b9628bce0d lein-release plugin: preparing 0.3.1 release 2014-10-22 16:22:23 -07:00
Jenkins CI
f447810c9d lein-release plugin: bumped version from 0.3.0 to 0.3.1-SNAPSHOT for next development cycle 2014-10-21 14:39:55 -07:00
Jenkins CI
dffa48cbc1 lein-release plugin: preparing 0.3.0 release 2014-10-21 14:39:35 -07:00
Preben Ingvaldsen
6815653183 Update CHANGELOG and version for 0.3.0 release 2014-10-21 14:34:26 -07:00