Commit Graph

2470 Commits

Author SHA1 Message Date
buildmaster
5e6bdf9da2 Bumping versions 2019-10-23 05:29:17 +00:00
Marcin Grzejszczak
7f1ab05456 Polish 2019-10-22 14:38:45 +02:00
Marcin Grzejszczak
1b2f6d0552 Merge branch '2.1.x' 2019-10-22 13:41:46 +02:00
Marcin Grzejszczak
54a65bc9f3 Ensures that there is no double instrumentation for executor services
fixes gh-1463
2019-10-22 13:06:50 +02:00
Marcin Grzejszczak
f586661b78 Reusing input headers for Gateway instrumentation
fixes gh-1469
2019-10-22 12:41:53 +02:00
Marcin Grzejszczak
4f43d72628 Merge branch '2.1.x' 2019-10-21 15:57:17 +02:00
Marcin Grzejszczak
e9df7a844b Added missing import 2019-10-21 15:57:00 +02:00
Marcin Grzejszczak
c209199f97 Merge branch '2.1.x' 2019-10-21 15:50:53 +02:00
Marcin Grzejszczak
6a07a3417d Fixed checkstyle 2019-10-21 15:50:45 +02:00
Marcin Grzejszczak
221732439a Merge branch '2.1.x' 2019-10-21 13:00:04 +02:00
Marcin Grzejszczak
12aa85d6cd Ensures that a custom status code works fine with Sleuth & WebClient
fixes gh-1462
2019-10-21 12:59:24 +02:00
buildmaster
4fe01d15ba Bumping versions 2019-10-10 05:29:39 +00:00
Marcin Grzejszczak
8c556542dc Merge branch '2.1.x' 2019-10-09 10:34:04 -05:00
Marcin Grzejszczak
69104ec3b7 Polish 2019-10-09 10:29:44 -05:00
Adrian Cole
aa533bc4cb Updates to latest Sampling infrastructure (2.1.x) (#1461)
* Updates to latest Sampling infrastructure (2.1.x)

This adapts #1456 for the 2.1.x branch
2019-10-08 18:47:25 -05:00
buildmaster
80221f85cf Bumping versions 2019-10-05 05:31:33 +00:00
Marcin Grzejszczak
7d5d70b6e8 Updated intro page with project root 2019-10-04 14:30:52 +02:00
buildmaster
2a046e0a0b Bumping versions 2019-10-04 05:29:40 +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
Marcin Grzejszczak
4109ce22be Merge branch '2.1.x' 2019-10-03 12:37:41 +02:00
Marcin Grzejszczak
ac7dd52544 Added a check for LazyTracingClientHttpRequestInterceptor fixes gh-1457 2019-10-03 12:37:05 +02: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
Brian Devins-Suresh
dc82c5cafc SQS Messaging Autoconfig (#1218)
added support for SQS messaging tracing
2019-10-03 12:18:32 +02:00
buildmaster
c7b818753f Bumping versions 2019-10-03 05:29:37 +00:00
Oleg Iavorskyi
9dbf99c675 Prevent ignoring of ExtraFieldCustomizer (#1455)
Changes verification in TraceAutoConfiguration.sleuthPropagation()
to not skip customization if at least one ExtraFieldCustomizer is
defined.

Without this fix the customizers are only applied when either
baggage-keys or propagation-keys property is defined.

Fixes gh-1454
2019-10-02 20:44:28 +02: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
3a2e76f588 Not throwing exception when reflection utils can't access a method
without this change when ReflectionUtils are having a problem with accessing method (cause it's private), an exception is thrown and wrapping of an executor will not take place
with this change we catch such an exception and ignore it

related to gh-1453
2019-10-02 13:01:19 +02:00
Marcin Grzejszczak
1a3e405e5a Revert "Came back to previous test impl"
This reverts commit 3fb22e35be.
2019-09-27 13:57:17 +02:00
Marcin Grzejszczak
028a79dc25 Bumping versions to 2.1.5.BUILD-SNAPSHOT after release 2019-09-27 13:56:35 +02:00
Marcin Grzejszczak
198843a917 Going back to snapshots 2019-09-27 13:56:35 +02:00
Marcin Grzejszczak
c9196fe177 Update SNAPSHOT to 2.1.4.RELEASE 2019-09-27 13:09:09 +02:00
Marcin Grzejszczak
3fb22e35be Came back to previous test impl 2019-09-27 12:31:52 +02:00
buildmaster
2b6b07374c Bumping versions 2019-09-26 05:29:04 +00:00
Kuba Marchwicki
fd3deea30e Updating Zipkin settings (#1451)
Correcting properties name to reflect the code: https://github.com/spring-cloud/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/sampler/SamplerProperties.java#L36
2019-09-25 14:32:52 +02:00
Marcin Grzejszczak
38ffcbc932 Added parametrization of RabbitMQ brokers (#1448)
without this change we're reusing the same broker for application logic and sending spans to zipkin
with this change we're adding a property to allow providing a different set of addresses for brokers to send spans to Zipkin

fixes gh-1210
2019-09-25 09:26:05 +02:00
buildmaster
6d645faa59 Bumping versions 2019-09-24 05:29:24 +00:00
Marcin Grzejszczak
80dd22acc9 Merge branch '2.1.x' 2019-09-19 11:46:27 +02:00
Marcin Grzejszczak
32aef9f154 Improved performance of ReactorSleuth; fixes gh-1449 2019-09-19 11:42:08 +02:00
Marcin Grzejszczak
27ac4b4a6a Bumped libs, removed explicit commons dep declaration; fixes gh-1367 2019-09-19 10:33:17 +02:00
Marcin Grzejszczak
0bd7953bf6 Reverts impl to the refactored one
Revert "Not using httpStatus() method for custom status codes"

    This reverts commit b59277f0

    Revert "Came back to previous impl for WebClient instrumentation; fixes gh-1442"

    This reverts commit bee61a9988.
2019-09-19 10:19:36 +02:00
Marcin Grzejszczak
75dcc87bd5 Reverts impl to the refactored one
Revert "Not using httpStatus() method for custom status codes"

    This reverts commit b59277f0

    Revert "Came back to previous impl for WebClient instrumentation; fixes gh-1442"

    This reverts commit bee61a9988.
2019-09-19 10:00:11 +02:00
Marcin Grzejszczak
f6fda77969 Merge branch '2.1.x' 2019-09-19 09:50:19 +02:00
Nick
8afa3e8d37 Fix ThreadPoolTaskScheduler proxy mechanism (#1447) 2019-09-19 09:50:12 +02:00
Nick
a5d41840b3 Fix ThreadPoolTaskScheduler proxy mechanism (#1447) 2019-09-19 09:49:46 +02:00
Marcin Grzejszczak
2e6ae5d314 RestTempalte customizer can return an instance of rest template; fixes gh-1440 (#1446) 2019-09-19 09:26:07 +02:00
Marcin Grzejszczak
17832d433d Qualified string for the Zipkin localServiceName; fixes gh-1441 2019-09-18 12:34:41 +02:00
Marcin Grzejszczak
cb640489e3 Merge branch 'master' of github.com:spring-cloud/spring-cloud-sleuth 2019-09-18 12:11:26 +02:00
Marcin Grzejszczak
f141330836 Merge branch '2.1.x' 2019-09-18 12:11:03 +02:00
Marcin Grzejszczak
bee61a9988 Came back to previous impl for WebClient instrumentation; fixes gh-1442 2019-09-18 12:10:53 +02:00