Commit Graph

20 Commits

Author SHA1 Message Date
worldtiki
bff52872e3 Service name for the remote redis endpoint. (#1475)
fixes #1406
2019-10-29 08:49:33 +01:00
buildmaster
b4b597872f Going back to snapshots 2019-10-24 21:05:59 +00:00
buildmaster
d972a87338 Update SNAPSHOT to 2.2.0.RC1 2019-10-24 21:05:02 +00:00
buildmaster
9361cf2017 Going back to snapshots 2019-10-03 20:06:35 +00:00
buildmaster
365a1c60f0 Update SNAPSHOT to 2.2.0.M3 2019-10-03 20:05:37 +00:00
Adrian Cole
be5fa04118 Updates to latest Sampling infrastructure (#1456)
* Updates to latest Sampling infrastructure

Brave recently switched to an interface model for higher level sampling
like HTTP. So, `HttpSampler` -> `SamplingFunction<HttpRequest>`. Don't
worry because `HttpSampler` was retrofitted as a `SamplingFunction`.

This change moves to the higher interface, avoiding deprecated methods
and such. More interestingly, this weaves in support for `RpcTracing`,
which *finally* introduces RPC sampling the same way. Specifically, this
adds `SamplingFunction<RpcRequest>` under the same conventions as HTTP.

Most immediately, this can be used here in gRPC and Dubbo, as
autoconfiguration exists. It also works with any autoconfiguration that
isn't here, such as Armeria.

Ex. Here's a sampler that traces 100 "GetUserToken" requests per second. This
doesn't start new traces for requests to the health check service. Other
requests will use a global rate provided by the tracing component.

```java
import static brave.rpc.RpcRequestMatchers.methodEquals;
import static brave.rpc.RpcRequestMatchers.serviceEquals;
import static brave.sampler.Matchers.and;

--snip--
@Bean(name = ServerSampler.NAME)
SamplerFunction<RpcRequest> myRpcSampler() {
  Matcher<RpcRequest> userAuth = and(
      serviceEquals("users.UserService"),
      methodEquals("GetUserToken")
  );
  return RpcRuleSampler.newBuilder()
      .putRule(serviceEquals("grpc.health.v1.Health"), Sampler.NEVER_SAMPLE)
      .putRule(userAuth, RateLimitingSampler.create(100)).build();
}
```
2019-10-03 12:21:56 +02:00
buildmaster
c7b818753f Bumping versions 2019-10-03 05:29:37 +00:00
Marcin Grzejszczak
29c9afe403 Added improved support of DefaultKafkaHeaderMapper wrapping for Kafka
without this change there was a propagation gap due to additional quotes in the headers
with this change we're wrapping the DefaultKafkaHeaderMapper to not add additional quotes

fixes gh-1430
2019-10-02 13:13:37 +02:00
Marcin Grzejszczak
80dd22acc9 Merge branch '2.1.x' 2019-09-19 11:46:27 +02:00
Nick
a5d41840b3 Fix ThreadPoolTaskScheduler proxy mechanism (#1447) 2019-09-19 09:49:46 +02:00
Marcin Grzejszczak
4db9b49f20 Merge branch '2.1.x' 2019-09-18 12:10:39 +02:00
Marcin Grzejszczak
667210e0fb Fixed the broken compilation 2019-09-18 10:03:19 +02:00
Marcin Grzejszczak
0cf9003ae9 Merge branch '2.1.x' 2019-08-30 15:35:34 +02:00
buildmaster
40a5333e56 Going back to snapshots 2019-08-14 15:47:10 +00:00
buildmaster
4884f0f78c Update SNAPSHOT to 2.2.0.M2 2019-08-14 15:45:31 +00:00
buildmaster
ad379974e1 Bumping versions 2019-07-23 10:09:49 +00:00
Marcin Grzejszczak
1bda9a57df Trying to make the build less brittle 2019-07-10 16:14:30 +02:00
Marcin Grzejszczak
e449aaad81 Moved the rest template test 2019-07-09 10:15:55 +02:00
Marcin Grzejszczak
9fa559e830 Makes tests less brittle 2019-07-09 09:27:07 +02:00
Marcin Grzejszczak
e6b78d267f Migrates tests to separate modules (#1395)
fixes #1394
2019-07-08 13:36:20 +02:00