Commit Graph

657 Commits

Author SHA1 Message Date
Marcin Grzejszczak
050dfe9bdf Added missing error setting on the span in zuul pre filters
without this change when an exception is thrown in a filter we're not setting the error message as a tag.

fixes #616
2017-07-06 12:23:49 +02:00
Marcin Grzejszczak
a977e4ae0e Added missing methods to override in SleuthHystrixConcurrencyStrategy
according to issue #612:
> When 2 or more customized HystrixConcurrencyStrategy are registered (e.g SleuthHystrixConcurrencyStrategy and SecurityContextConcurrencyStrategy) depending on the order of registration the overrides from SecurityContextConcurrencyStrategy might get ignored.
I think the override and delegation should be made all methods of HystrixConcurrencyStrategy otherwise the delegation will possibly be incomplete.

fixes #612
2017-07-06 11:54:21 +02:00
Marcin Grzejszczak
2a09be747d Making Hystrix + Feign opt in
without this change we allways force Feign to use Hystrix
with this change you need to pass the `feign.hystrix.enabled=true` flag to turn it on

fixes #627
2017-07-03 08:00:40 +02:00
Marcin Grzejszczak
c3e90e4e21 Fixed NPE for error parser 2017-06-30 11:29:53 +02:00
Suttichort Sarathum
c902680244 Add missing implementation of shutdown method 2017-06-27 13:50:54 +02:00
Marcin Grzejszczak
cc00e3ae80 Making baggage keys case insensitive
fixes #605
2017-06-07 10:40:57 +02:00
Marcin Grzejszczak
f834e5222b Added the ErrorParser interface
without this change there's no way to alter the exception message that gets attached as a tag to the span
    with this change you can register your own ErrorParser bean to alter that behaviour

    fixes #576
2017-06-06 08:05:27 +02:00
Marcin Grzejszczak
6a0a57ef7f Fixed percentage value in percentage based sampler
fixes #608
2017-06-06 07:54:17 +02:00
Marcin Grzejszczak
95e14c0a68 Polish 2017-06-01 13:03:50 +02:00
svenz
e783df88a0 Cleanup test case based on review comments 2017-05-30 19:19:27 -07:00
svenz
6948088085 https://github.com/spring-cloud/spring-cloud-sleuth/issues/597
Fix Http headers as tags
2017-05-29 13:49:55 -07:00
Marcin Grzejszczak
419ec7232a Fixed the Duplicate Trace Header Propagation for Zuul Proxy Applications
without this change we're always setting values for headers regardless of the fact whether they have already been set.
with this change we're only setting headers if there was no any previous value of the header

fixes #586
2017-05-27 02:58:58 +02:00
Marcin Grzejszczak
802fbb63a6 Added a NPE check for trace web aspect
without this change if there's no tracing an NPE is thrown in TraceWebAspect

fixes #596
2017-05-26 19:31:37 +02:00
Kamil Szymański
63c79033db Tracer#detach(Span) docs fix (#580) 2017-05-26 18:42:55 +02:00
Marcin Grzejszczak
91a8e51599 Bumping versions to 1.2.2.BUILD-SNAPSHOT after release 2017-05-23 00:13:03 +02:00
Marcin Grzejszczak
23f9c58116 Going back to snapshots 2017-05-23 00:13:02 +02:00
Marcin Grzejszczak
4f2139e6d6 Update SNAPSHOT to 1.2.1.RELEASE 2017-05-23 00:10:34 +02:00
Marcin Grzejszczak
61897b6965 Changed a single adjuster to a list of them
with this change we're injecting a list of adjusters instead of a single one. That way you don't have to create a composite version
of adjusters.

fixes #595
2017-05-22 17:38:42 +02:00
Marcin Grzejszczak
a5a898a06b Trying to fix flickering tests 2017-05-12 18:52:52 +02:00
Marcin Grzejszczak
ccbc2fa111 Merge branch '1.1.x' 2017-05-08 11:26:18 +02:00
Marcin Grzejszczak
9d84812de8 Added javadocs for SpanAccessor, fixes #587 2017-05-08 11:26:10 +02:00
Marcin Grzejszczak
4d6d2ebcc7 Merge branch '1.1.x' 2017-05-08 11:05:09 +02:00
Marcin Grzejszczak
11f8cd7f14 Fixed invalid constructor 2017-05-08 10:57:20 +02:00
Marcin Grzejszczak
5230626c5b Merge branch '1.1.x' 2017-05-08 10:51:43 +02:00
Marcin Grzejszczak
e7b192575c Added aspects around exception resolvers
without this change any update on a span in custom exception resolver where ignored cause the span got detached in TraceFilter instead of it getting closed
    with this change we're adding an error tag if it was missing and we're also marking the span for closure by TraceFilter

    fixes #585
2017-05-08 10:48:22 +02:00
Marcin Grzejszczak
2336355315 Bumping versions to 1.1.5.BUILD-SNAPSHOT after release 2017-05-05 12:50:01 +02:00
Marcin Grzejszczak
46130c4bb3 Going back to snapshots 2017-05-05 12:50:00 +02:00
Marcin Grzejszczak
be44013620 Update SNAPSHOT to 1.1.4.RELEASE 2017-05-05 12:47:18 +02:00
Marcin Grzejszczak
fb068b538e Merge branch '1.1.x' 2017-04-24 15:18:38 +02:00
Marcin Grzejszczak
b95ecd5f7e Adds documentation and javadocs about SpanAdjuster and SpanReporter
fixes #570
2017-04-24 15:17:59 +02:00
Marcin Grzejszczak
15bf29b67d Merge branch '1.1.x' 2017-04-20 09:34:03 +02:00
Marcin Grzejszczak
115ace8bcc Made TraceFilter.ORDER public
fixes #569
2017-04-20 09:33:34 +02:00
Marcin Grzejszczak
bbb6f1c8fa Merge branch '1.1.x' 2017-04-19 13:47:13 +02:00
Marcin Grzejszczak
165a6ac1ba Making post zuul filter close the span (#568)
without this change when dealing with Zuul, it's TraceFilter that is closing a span on an error
with this change, we're allowing the PostZuulFilter to close that span and TraceFilter doesn't interfere

fixes #563
2017-04-19 13:37:59 +02:00
Marcin Grzejszczak
54ae618815 Merge branch '1.1.x' 2017-04-19 10:46:59 +02:00
Marcin Grzejszczak
64791deabd Span Adjuster (#567)
with this change, we're adding a possibility to fully customize the span before it gets reported to e.g. Zipkin

fixes #553
2017-04-19 10:35:48 +02:00
Marcin Grzejszczak
3d7b15f62c Merge branch '1.1.x' 2017-04-18 16:20:37 +02:00
Marcin Grzejszczak
a879dc9e30 Added docs for customization executors 2017-04-18 16:20:24 +02:00
Marcin Grzejszczak
8cd372a099 Fixed the code 2017-04-18 14:58:32 +02:00
Marcin Grzejszczak
9dc626a873 Added docs for custom async rest template (#566)
fixes #564
2017-04-18 14:48:58 +02:00
Marcin Grzejszczak
c6d645993f Added docs for custom async rest template (#566)
fixes #564
2017-04-18 14:45:07 +02:00
Marcin Grzejszczak
ef6acec630 Merge branch '1.1.x' 2017-04-12 13:06:09 +02:00
Marcin Grzejszczak
816cfe317a Moved an executor aspect to a bean post processor
without this change when an executor implementation was a final class or had a final method - the application wouldn't start or would produce NPE at startup.
    with this change we have a custom bean post processor that wraps an aspect manualy either via a JDK Proxy when a class is final or a method is final or creates a CGLIB proxy if that's possible.

    fixes #550
2017-04-12 12:14:45 +02:00
Marcin Grzejszczak
46257ea370 Moved an executor aspect to a bean post processor
without this change when an executor implementation was a final class or had a final method - the application wouldn't start or would produce NPE at startup.
    with this change we have a custom bean post processor that wraps an aspect manualy either via a JDK Proxy when a class is final or a method is final or creates a CGLIB proxy if that's possible.

    fixes #550
2017-04-12 12:02:39 +02:00
Marcin Grzejszczak
593aa34806 Added tests for 547 2017-04-11 14:58:00 +02:00
Marcin Grzejszczak
f2798e8827 Wrapping callbacks in trace representation
without this change when user adds a callback then it's not wrapped in a trace representation, thus when executed in a separate thread, it's then missing all the tracing information
    with this change we're wrapping the future in our representation that passes the tracing information around

    fixes #546
2017-04-11 14:18:58 +02:00
Marcin Grzejszczak
cce5b18dec Wrapping callbacks in trace representation
without this change when user adds a callback then it's not wrapped in a trace representation, thus when executed in a separate thread, it's then missing all the tracing information
    with this change we're wrapping the future in our representation that passes the tracing information around

    fixes #546
2017-04-11 14:16:25 +02:00
Marcin Grzejszczak
c9bbc2e4a5 Bumping versions to 1.2.1.BUILD-SNAPSHOT after release 2017-04-11 10:18:41 +02:00
Marcin Grzejszczak
850534689c Going back to snapshots 2017-04-11 10:06:35 +02:00
Marcin Grzejszczak
fdace4f93a Update SNAPSHOT to 1.2.0.RELEASE 2017-04-11 10:03:04 +02:00