Commit Graph

2384 Commits

Author SHA1 Message Date
Marcin Grzejszczak
76b7563feb Merge branch '2.1.x' 2019-10-30 13:11:39 +01:00
Marcin Grzejszczak
cd2e2c2d49 Configure Reactor instrumentation to wrap onLastOperator or onEachOperator
with this feature we would allow user to pick whether they instrument on each or on last operator.

fixes gh-1478
2019-10-30 13:09:30 +01:00
buildmaster
b7dea8ecd7 Bumping versions 2019-10-30 05:33:54 +00:00
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
Marcin Grzejszczak
34f61908fd Update auto-configuration to use @Configuration(proxyBeanMethods=false)
fixes gh-1245
2019-10-24 13:42:00 +02:00
Marcin Grzejszczak
4bfa08bb1c Fixed configuration names for metrics 2019-10-24 11:17:57 +02:00
Marcin Grzejszczak
d515370df2 Use Micrometer metrics instead of in memory one (#1477)
Using the micrometer zipkin reporter

fixes #1468
2019-10-24 10:57:00 +02:00
buildmaster
536eee5b6c Bumping versions 2019-10-24 05:29:09 +00:00
Marcin Grzejszczak
81c2b8822b Fixed unresolved elements 2019-10-23 15:50:07 +02:00
Marcin Grzejszczak
400be4130e Merge branch '2.1.x' 2019-10-23 14:18:42 +02:00
Marcin Grzejszczak
759ac87481 Not using loadbalancer zipkin URI extractor when zipkin url contains a port
fixes gh-1474
2019-10-23 13:41:24 +02:00
Adrian Cole
b22f5e8db3 Adds the possibility to opt-out of executor decoration (#1464)
* Adds the possibility to opt-out of executor decoration

Recently, `AsyncAutoConfiguration` auto-instruments executors. This
causes spans named 'async' with no tag or other metadata to help
understand what is happening. It was somewhat difficult troubleshooting
this because the control is by bean name, but for example the "async"
span doesn't include the bean name.

See https://github.com/spring-cloud/spring-cloud-gcp/issues/1978
2019-10-23 12:48:37 +02:00
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