Commit Graph

678 Commits

Author SHA1 Message Date
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
1ec2bc7833 Changed arraylist to linkedlist 2016-07-15 15:47:52 +02:00
Marcin Grzejszczak
a4328325c9 Revert "Updated docs"
This reverts commit 7d0b8f62c2.
2016-07-15 08:55:28 +02:00
Marcin Grzejszczak
6484013bbf Revert "Added patterns to @GlobalChannelInterceptor (#337)"
This reverts commit 0e06e4dc92.
2016-07-15 08:55:15 +02:00
Marcin Grzejszczak
7d0b8f62c2 Updated docs
(cherry picked from commit 48efc5980a)
2016-07-15 08:26:36 +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
23097dd2f9 Added Codecov integration 2016-07-14 13:46:00 +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
Marcin Grzejszczak
ed66870290 Fixed integration tests to use ZipkinRule 2016-06-27 15:46:54 +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
872afe453b Merge pull request #311 from spring-cloud/renaming_child_server_span
Renaming child server span
2016-06-23 14:44:29 +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
Adrian Cole
f92a84ed1c Updates to zipkin 1.1.5 (#309)
Changes since 1.1.1 related to cassandra or json parsing.

See https://github.com/openzipkin/zipkin/releases/tag/1.1.5
2016-06-23 17:58:19 +08:00
Marcin Grzejszczak
187c58aceb Fixed the issue with Zuul and error code 2016-06-23 11:26:41 +02:00
Marcin Grzejszczak
34cf968bff Randomized port for Zipkin tests 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
Marcin Grzejszczak
0d6f27f43a Throwing exception when tracing is malformed (#308)
with this change we will throw an IllegalArgumentException when the malformed tracing data are sent. In TraceFilter we're catching it and sending back 400 response. In case of messaging the exception gets propagated

fixed #306

* Changes following review

* Changes following review
2016-06-22 16:39:33 +02:00
Marcin Grzejszczak
be735659b6 Wrong span / trace ids dont blow up the app
with this change we're trying to retrieve the value of span / trace id from a header but we don't propagate the exception if that value is invalid. Instead we generate a new random value. It's better not to break the application and break the trace (if by any chance it's been corrupt).

Fixed #306
2016-06-22 16:39:23 +02:00
Marcin Grzejszczak
b7b8b30c21 Fixing tests for Jenkins 2016-06-22 16:39:10 +02:00
Marcin Grzejszczak
a9c1d89668 Made evaluation of Tracer bean more lazy
with this change Feign components resolve tracer and other beans from beanfactory when necessary

fixes #307
2016-06-22 16:38:53 +02:00
Marcin Grzejszczak
78dc17fc45 Added verification for lack of response status code
With this change when there is no http response status code an exception is not thrown and the tags are not set for http.status_code

fixes #304
2016-06-15 13:07:42 +02:00
Dave Syer
6ddf8c7576 Use "safe: :unsafe" to ensure included snippets work
Also copy the document attributes over and re-use them so
any variables that need to be resolved are there. Code copied
from https://github.com/asciidoctor/asciidoctor-extensions-lab/blob/master/scripts/asciidoc-coalescer.rb
2016-06-11 07:45:26 +01:00
Dave Syer
fea2397501 Update to 1.0.2 snapshots 2016-06-10 17:10:35 +01:00
Marcin Grzejszczak
8f726cb514 Update SNAPSHOT to 1.0.1.RELEASE 2016-06-10 15:38:37 +02:00
Marcin Grzejszczak
0a188cd8df Extracted a method for readability purposes 2016-06-10 15:09:40 +02:00
Marcin Grzejszczak
ca89b58661 Removed build status from running examples 2016-06-10 12:56:06 +02:00
Marcin Grzejszczak
7cd49319dc Bumped up logging level to DEBUG 2016-06-10 09:31:21 +02:00
Marcin Grzejszczak
65796e9aa2 Added client side tags for zuul (#302)
Now when a request is sent via Zuul, the HTTP client side tags will be added to the request
2016-06-10 08:53:01 +02:00
Marcin Grzejszczak
fbfed722c7 Altered tests 2016-06-09 21:42:57 +02:00
Marcin Grzejszczak
0f60e5bf67 Fixed the issues with Zuul exception handling (#300)
TraceFilter no longer is a OncePerRequestFilter
TraceFilter processes the request that is executed upon ERROR dispatch (the logs will be present there)
Altered the logic in TraceFilter that an already processed request will not be detached (which resulted in an exception)
Added some debugging to instrumentation
Added assertion over a list of spans
Bumped up SC-Netflix to 1.1.2.BUILD-SNAPSHOT
Added Zuul integration tests
Added Http keys injection to Zuul client call
2016-06-09 18:26:46 +02:00
Marcin Grzejszczak
e9cfe6d2ab Lowered logging level for RxJava hook - in debug mode it's present every second 2016-06-07 15:20:12 +02:00