Commit Graph

378 Commits

Author SHA1 Message Date
Marcin Grzejszczak
877b80b70e Bumping versions before release 2016-09-08 17:37:08 +02:00
Marcin Grzejszczak
10a169ed26 TraceLoadBalancerFeignClient not closing span
when TLBFC is throwing an exception the span wasn't closed. Throwing exception can occurr when IOExcepiton is thrown. Then the span wouldn't be closed and the whole series of problems occur.

fixes #393
2016-09-08 15:29:27 +02:00
Marcin Grzejszczak
3ebcd1e693 Wrapping LoadBalancerFeignClient in tracing representation
without this change when using SC-Netflix 1.2.0 Feign can't call an external URL

fixes #393
2016-09-08 10:53:33 +02:00
Marcin Grzejszczak
634020eea6 Synchronizing on spans in ArrayListSpanAccumulator
without this change tests happen to have ConcurrentModificationException
2016-08-23 15:35:00 +02:00
Marcin Grzejszczak
cd17b35ea3 Going back to Snapshots 2016-08-22 13:20:14 +02:00
Marcin Grzejszczak
995371fc0d Bumping versions before release 2016-08-22 12:39:30 +02:00
Marcin Grzejszczak
b7f0c4e7c5 Fixing TraceFilter order (#382)
after making TraceFilter process different dispatch types we've introduced a bug related to filter ordering. TraceFilter was registered with a default ordering which is of lowest precedence.

With this change we ensure that the ordering of TraceFilter is fixed.

Fixes #380
2016-08-22 12:22:26 +02:00
Marcin Grzejszczak
2bad78ee4b Going back to snapshots after release 2016-08-19 15:06:37 +02:00
Marcin Grzejszczak
f56779e255 Bumping versions before release 2016-08-19 14:26:49 +02:00
Marcin Grzejszczak
8e01425eed Synchronized ArrayListSpanAccumulator spans
without this change we could have ConcurrentModificationExceptions
2016-08-18 16:11:46 +02:00
Marcin Grzejszczak
fdea5d6bac Wraped debug logs with conditional 2016-08-17 13:59:01 +02:00
Marcin Grzejszczak
f677be026e Ensured reusability of Feign components
Tests have been refactored to ensure that the custom components registered as beans are working properly

fixes #374
2016-08-16 11:48:49 +02:00
Marcin Grzejszczak
e0fbcfe7c6 Polish 2016-08-10 17:33:44 +02:00
Marcin Grzejszczak
35652a43d9 Removed sending the tracing information back in the response (#329)
fixes #327
2016-08-10 17:31:40 +02:00
Marcin Grzejszczak
ee23ea6465 Simplified Feign (#372)
with this change we no longer treat retries as a continuation of a previous span. That way the Feign code simplifies a lot. RequestInterceptor starts a span and the TraceFeignClient will always close it no matter what's happening.

fixes #202
2016-08-09 19:01:48 +02:00
Marcin Grzejszczak
e408fd4190 Added NPE gueard for TraceFeignContext 2016-08-06 15:35:48 -07:00
Marcin Grzejszczak
0781157f10 Fixed wrong ConditionalOnClass
with this fix there no longer should be bugs related to a missing class.

fixes #363
2016-08-02 23:31:24 -07:00
Marcin Grzejszczak
511d83afde Fixed circular dependency
fixes #354
2016-08-01 17:52:17 -07:00
Marcin Grzejszczak
9c0fe65649 Updating the duration setting (#360)
* Updating the duration setting

fixes #349
2016-07-29 23:36:29 +02:00
Marcin Grzejszczak
c8992a65b3 Adding tags for Hystrix spans
with this change if a span hasnt set any Hystrix related spans then we're setting the tags even if the span gets continued (which is the case when you're using Javanica

fixes #352
2016-07-29 15:07:40 +02:00
Marcin Grzejszczak
8a5aabea84 Unified tag names
with this change the tags related to method and class name will not be hyphen delimited.

fixes #359
2016-07-29 12:46:47 +02:00
Marcin Grzejszczak
e0e6e8482e Returning a copy instead of a view (#356)
* Returning a copy instead of a view
* Making logs and tags thread-safe

fixed #355

* Changes following code review
2016-07-28 11:15:00 +02:00
Marcin Grzejszczak
84723e8ad7 Going back to Snapshots 2016-07-25 11:58:27 +02:00
Marcin Grzejszczak
b73786f95a Bumping versions before release 2016-07-25 10:39:44 +02:00
Marcin Grzejszczak
1deea897ad Fixed missing default Feign.Builder
with this fix if someone is not using Feign he gets the default traced Feign.Builder. Thanks to this no more exceptions should be seen in terms of closing the wrong span.

fixes #350
2016-07-22 18:37:48 +02:00
Premanand C
36ed832684 Fix for inability to provide custom implementation of AsyncClientHttpRequestFactory 2016-07-19 10:11:39 +02:00
Marcin Grzejszczak
c22e72e467 Added tests and fix docs for AsyncRestTemplate
fixes #334
2016-07-15 17:34:36 +02:00
Marcin Grzejszczak
b4bcd531d5 Added patterns to @GlobalChannelInterceptor (#337) 2016-07-15 15:57:34 +02:00
Marcin Grzejszczak
6484013bbf Revert "Added patterns to @GlobalChannelInterceptor (#337)"
This reverts commit 0e06e4dc92.
2016-07-15 08:55:15 +02:00
Steve Oakey
0e06e4dc92 Added patterns to @GlobalChannelInterceptor (#337)
Makes use of property place holders to set the patterns attribute of the
@GlobalChannelInterceptor annotation used for the
TraceChannelInterceptor. As supported by the annotation, only simple
patterns are supported.

Added the Spring configuration metadata for spring.sleuth.integration
properties.

Fixes gh-323
2016-07-15 08:26:07 +02:00
Marcin Grzejszczak
5861826c62 Fixed the port 2016-07-14 23:43:23 +02:00
Marcin Grzejszczak
843f211959 Randomized port for a test 2016-07-14 14:21:53 +02:00
Marcin Grzejszczak
56af4d5b1d Fixed the missing hyphen in logging pattern 2016-07-14 14:21:46 +02:00
Marcin Grzejszczak
2cbad45fa4 Added additional javadoc information for #332 2016-07-14 13:47:40 +02:00
Marcin Grzejszczak
b2cc03bc16 Fixed missing wrapping of ExecutorService
with this change the missing methods in ExecutorService are wrapped with LocalComponentTraceCallable. We are wrapping only those callables that have not already been wrapped. Kudos to @PranayPS for finding the issue and proposing a solution.

Fixes #333
2016-07-14 12:54:37 +02:00
Marcin Grzejszczak
e7838743af Fix headers in messaging (#335)
* Fix headers in messaging

with this change the span related headers are changed to be compatible with messaging specs. The change is backwards compatible so we accept the old ones as input, and as output we're producing both new and old headers.

fixes #332
2016-07-14 11:57:09 +02:00
Marcin Grzejszczak
66d11435e8 Update to SNAPSHOT 2016-07-07 17:39:17 +02:00
Marcin Grzejszczak
cb027db522 Update SNAPSHOT to 1.0.3.RELEASE 2016-07-07 17:25:30 +02:00
Marcin Grzejszczak
4f1ef52e6c Re-added missing server side span (#322)
* Re-added missing server side span

with this change

- HandlerInterceptor is responsible for wrapping requests in spans
- added Sring Data REST instrumentation
- added Zuul instrumentation
- it will not wrap error controller related requests with spans
- tests have been changed to ensure that ALWAYS there is at least one span on the server side (that way it will show up in Zipkin)
- "fallback" mechanism has been added that if a HandlerInterceptor hasn't been used then we are forcing creation of a Span at the server side

fixes #321
2016-07-07 10:47:22 +02:00
Spencer Gibb
fbefa81d52 Update to SNAPSHOT 2016-06-30 17:30:59 -06:00
Spencer Gibb
54c9e45d09 Update SNAPSHOT to 1.0.2.RELEASE 2016-06-30 17:06:56 -06:00
Marcin Grzejszczak
1964d18113 Fixed the hacks for Feign 2016-06-30 11:48:21 +02:00
Marcin Grzejszczak
a40450b161 Fixed not clearing spans on messaging exception
with this change we're closing spans on afterSendCompletion and not afterPost thus even if an exception is thrown we will close the span

fixes #319
2016-06-30 11:20:21 +02:00
Adrian Cole
c2ab0d59cf Exposes getAccumulatedMicros for more precise Span duration (#317)
Formerly, `Span.getAccumulatedMillis()` worked, but could returns
imprecise measurements, particularly local spans. This changes the
internals of Span to keep track of a start tick. Using this, it can
return a more precise `Span.getAccumulatedMicros()`.

To ensure this precision isn't lost in serialization, this adds a
json field `durationMicros`, which is only set when the span is stopped.
This is set instead of start tick because `System.nanoTime()` is JVM
specific and so cannot be used across the network. `durationMicros` uses
null instead of zero comparisons because nano time can be negative.

Fixes #312
2016-06-29 10:42:02 +02:00
Tomasz Dziurko
c965b82870 Introduce assertj assertions (#315)
* Introduce assertJ assertions in some tests
* Fix code formatting to be inline with Spring rules
2016-06-25 10:29:01 +02:00
Marcin Grzejszczak
9242ccec06 Updated aspects with SpanNameUtil 2016-06-24 02:01:39 +02:00
Marcin Grzejszczak
7a4dcf6f05 Fixed the aspect for controllers 2016-06-24 01:50:37 +02:00
Marcin Grzejszczak
05e221ef54 HTTP filter child span renamed
with this change the child span of the HTTP filter span gets changed into a span coming from the Controller aspect. The name of the span becomes the name of the method.
2016-06-23 13:24:16 +02:00
Marcin Grzejszczak
187c58aceb Fixed the issue with Zuul and error code 2016-06-23 11:26:41 +02:00
Marcin Grzejszczak
31a0bd885f Added connection factory to rest template for tests 2016-06-23 11:26:41 +02:00