Commit Graph

1751 Commits

Author SHA1 Message Date
Adrian Cole
3649852ce9 Adds the ability to configure things needed by stackdriver
We will eventually need to change the encoder to use their format. Also,
stackdriver does not support shared spans.
2018-03-20 22:18:19 +08:00
Marcin Grzejszczak
ad2b9dd39d Fixed interaction with NettyRoutingFilter
The `org.springframework.cloud.gateway.filter.NettyRoutingFilter` in SC Gateway
is adding only these headers that were set when the request came in. That means
that adding any additional headers (via instrumentation) is completely ignored.
That's why we're wrapping the `HttpClientRequest` in such a wrapper that
when `setHeaders` is called (that clears any current headers), will also add
the tracing headers

fixes gh-907
2018-03-20 11:10:14 +01:00
Marcin Grzejszczak
c0f867b52b HookRegisteringBeanDefinitionRegistryPostProcessor is a static bean 2018-03-20 09:48:03 +01:00
Marcin Grzejszczak
59b406b9ac Added a check on Feign's class 2018-03-19 15:30:17 +01:00
Marcin Grzejszczak
13ccc0bc44 Instrumenation of feign now requires usage of cloud-openfeign; fixes gh-903 2018-03-19 15:10:35 +01:00
Adrian Cole
ecf789716b Corrects Adrian's rookie move 2018-03-19 09:41:33 +08:00
Adrian Cole
36d2a848e9 Adds notes about default broker name in messaging 2018-03-17 10:06:24 +08:00
Marcin Grzejszczak
837d8ec06a Messaging spans are visible in dependency view fixes gh-867 2018-03-16 08:56:26 +01:00
Adrian Cole
3392eca5ae Adds test to make sure RestTemplate sender doesn't mess with json (#901)
There was some doubt on gitter about sleuth generating spans with floating-point
rendered timestamps. While this shouldn't break people we certainly shouldn't
create json like this.

This was presumed to be caused by sleuth's rest template sender by @mojsha who
was trying Jaeger. Jaeger's parser doesn't give any errors with a 400.
```json
[
{
"traceId": "a65dac9d8bbb57f8",
"parentId": "a65dac9d8bbb57f8",
"id": "f223bb97e1eba9b2",
"kind": "SERVER",
"name": "https:\/hello3",
"timestamp": 1.521027116604e+15,
"duration": 1525,
"localEndpoint": {
"serviceName": "${spring.application.name}",
"ipv4": "10.128.6.98",
"port": 8443
},
```

I added a test to make sure it is not the case.
2018-03-14 20:42:18 +08:00
Marcin Grzejszczak
9a085e3b41 Added span creation for a kafka listener; fixes gh-900 2018-03-13 14:53:00 +01:00
Adrian Cole
404bd9d7e4 Updates to Brave 4.18.0 2018-03-13 15:38:36 +08:00
Marcin Grzejszczak
bf6546c2ab Updated messaging code 2018-03-12 15:47:08 +01:00
Marcin Grzejszczak
171daaf280 Migrated to brave's span customizing handler interceptors 2018-03-11 20:45:53 +01:00
Marcin Grzejszczak
1753d44ab9 updated intro 2018-03-11 10:00:01 +01:00
Marcin Grzejszczak
6d08da8d47 Merge branch '1.3.x' 2018-03-11 09:58:21 +01:00
Marcin Grzejszczak
3e77213a82 Added one more entry about sampling 2018-03-11 09:56:49 +01:00
Marcin Grzejszczak
f18b3369e0 Percentage -> probability 2018-03-11 09:20:01 +01:00
Marcin Grzejszczak
1493bc2ff0 Updated boot version for benchmarks 2018-03-09 13:17:57 +01:00
Marcin Grzejszczak
c864b062aa Made bpp static 2018-03-09 12:13:38 +01:00
Marcin Grzejszczak
e8dfe1ae02 Reusing reactor context for span continuing subscriber
without this change we were not reusing a span context if there was no previous span. Instead we were overwrriting it with an empty one

with this change, if the context is there we are reusing it instead of overwriting it

fixes gh-897
2018-03-09 11:36:53 +01:00
Marcin Grzejszczak
73f9ec61f6 Added spring-kafka support; fixes gh-896 2018-03-09 10:16:26 +01:00
Marcin Grzejszczak
0474478f59 Fixed checkstyle 2018-03-09 09:14:06 +01:00
Marcin Grzejszczak
219d349bc3 Polish messaging; fixes gh-893, fixes gh-894 2018-03-09 08:48:28 +01:00
Marcin Grzejszczak
9f6801aa05 New span parser (#891) 2018-03-08 10:54:30 +08:00
Marcin Grzejszczak
102c3f86b3 Changed the remote endpoint for rabbit 2018-03-07 20:42:40 -05:00
Marcin Grzejszczak
a6e23231e1 Brought back the 128 bit property setting 2018-03-07 20:18:36 -05:00
Marcin Grzejszczak
c159949484 Made WebFilter use standard http brave components; fixes gh-889 2018-03-07 09:53:06 -05:00
Marcin Grzejszczak
4a7d4c67aa Merge branch '1.3.x' 2018-03-07 09:08:01 -05:00
Marcin Grzejszczak
be9ee587ac Reverted the temporary async reporter code 2018-03-07 09:07:53 -05:00
Marcin Grzejszczak
f96330fd20 Removed sc-function since it's not supporting boot 2.0 2018-03-07 08:44:23 -05:00
Marcin Grzejszczak
aa67080bb5 Merge branch '1.3.x' 2018-03-07 08:43:31 -05:00
Marcin Grzejszczak
433e7c301a Documented how to use spring cloud function; fixes gh-853 2018-03-07 08:43:22 -05:00
Marcin Grzejszczak
375f244279 Added support for customization of HttpTracing
with this change you can define beans that will get added / set to the `HttpTracing` bean

    fixes gh-886
2018-03-07 06:41:47 -05:00
Marcin Grzejszczak
1e33d6e76e Added docs about rabbit; fixes gh-883 2018-03-06 14:17:03 -05:00
Marcin Grzejszczak
d83c9d1c31 Added instrumentation of spring amqp components
with this change we're reusing Brave to add instrumentation to any existing RabbitTemplate

    fixes gh-883
2018-03-06 14:14:55 -05:00
Adrian Cole
2e974e8ce7 Prefers "plain bean names" for community instrumentation (#885)
Instrumentation around brave is more likely to use a simple bean name
like "tracing" vs "sleuthTracing". This changes the commodity beans to
simple names so that we can avoid having to teach naming prefixes unless
necessary.

This affects the following beans:
* httpTracing
* tracing
* tracer
* spanCustomizer

This came up when integrating dubbo, as their extension loader prefers
stable bean names. For example, loading `brave.Tracing` with their
spring extension silently failed because our bean was named
"sleuthTracing". Even if we can provide instructions to override this,
seems best to dodge.
2018-03-06 12:33:23 +01:00
Marcin Grzejszczak
54c00b76ea Using zipkin & zipkin-reporter from Brave BOM 2018-03-05 12:11:44 +01:00
Marcin Grzejszczak
37a6763a44 Fixed potential NPEs 2018-03-05 10:23:44 +01:00
Marcin Grzejszczak
2f2b54c103 ignoring flakey feign test 2018-03-04 13:44:40 +01:00
Marcin Grzejszczak
86295d89a1 Added a workaround for fixes gh-881 2018-03-04 12:46:41 +01:00
Marcin Grzejszczak
347c63ea82 Aligned HTTP instrumentation with Brave (#878)
* Aligned HTTP instrumentation with Brave

with this change we remove TraceFilter and make TraceHandlerInterceptor a legacy component. All HTTP instrumentation is done via Brave.

fixes gh-873
2018-03-04 09:53:52 +01:00
Marcin Grzejszczak
a9779b15d8 Added debug logs for flakey test 2018-03-03 22:38:38 +01:00
Marcin Grzejszczak
786fcaf813 Added info about UserInfoRestTemplateCustomizer in the docs 2018-03-03 22:24:58 +01:00
Marcin Grzejszczak
0d136893a3 Added UserInfoRestTemplateCustomizer support; fixes gh-879 2018-03-03 19:51:05 +01:00
Marcin Grzejszczak
1e3e9e9ddb Bumped Brave to 4.17.1 2018-03-03 13:01:00 +01:00
Marcin Grzejszczak
7ba269b9b0 Trying to fix flakey Feign tests 2018-03-02 22:32:47 +01:00
Marcin Grzejszczak
3371aff117 Bumped Brave to release version 2018-03-02 22:18:02 +01:00
Spencer Gibb
62cf1abd01 Revert "Reverted the Brave BOM"
This reverts commit 0aec152
2018-03-02 14:08:19 -05:00
Marcin Grzejszczak
0aec15243f Reverted the Brave BOM 2018-03-02 19:52:43 +01:00
Spencer Gibb
1c8e940816 Going back to snapshots 2018-03-02 12:50:50 -05:00