Commit Graph

162 Commits

Author SHA1 Message Date
Dave Syer
192964751a Normalize usage of IdGenerator (only in TraceManager)
Also ensures TraceFilter sends traceId and spanId in response if
they are generated in the request.

Fixes gh-65
2015-12-01 17:08:45 +00:00
Dave Syer
fcb12c8f5e Switch to Spring Core IdGenerator 2015-12-01 16:44:48 +00:00
Marcin Grzejszczak
c0e5c865dd Added tests for trace callable and runnable 2015-12-01 16:03:07 +01:00
Marcin Grzejszczak
ac9ef5f740 Added random port for integration tests 2015-12-01 15:16:57 +01:00
Marcin Grzejszczak
4a1743c984 Moved to BDDAssertJ 2015-12-01 15:13:56 +01:00
Spencer Gibb
cc36d6b8ad Added integration tests 2015-12-01 14:06:04 +00:00
Dave Syer
ffa97c1f20 Big refactor of sleuth core API
Instrumentation should be able to get by with only 2
interfaces: TraceManager and TraceAccessor (the former is
not needed if you aren't starting a new Span). No explicit
access to thread locals or manipulation of thread context
is required (except locally where necessary).

A Span is enclosed by a Trace (actually a view of the complete
Trace that would be constructed remotely).
2015-12-01 14:06:04 +00:00
Spencer Gibb
8351c9ba2c polish 2015-11-30 13:17:32 -07:00
Gaurav Rai Mazra
c588d73552 Providing support to enable tracing in Executors
User can opt to wrap java.unit.concurrent package usage with a
traceable version of the same thing.

Fixes gh-60, fixes gh-58
2015-11-30 09:34:24 +00:00
Adrian Cole
2f253e035c Merge pull request #53 from spring-cloud/annotation-updates
Updates to latest zipkin/brave
2015-11-20 09:22:25 -08:00
Adrian Cole
87ff492f2d Updates to latest zipkin/brave
Zipkin now has Span.timestamp/duration, so no more need for
"aquire/release".

This also corrects the host/endpoint logged for timeline annotations, as
it should always be the local process.
2015-11-19 11:16:59 -08:00
Dave Syer
7d3668b23f Revert to snapshots 2015-11-17 12:36:46 +00:00
Dave Syer
576424a514 Update to 1.0.0.M3 2015-11-17 12:34:31 +00:00
Dave Syer
1bda0c7c6a Add additional project to BOM 2015-11-02 15:05:16 +00:00
Dave Syer
e935f4e964 Revert profile and add comment 2015-10-20 09:37:16 -04:00
Spencer Gibb
d58a3241f2 Don't trace /hystrix.stream 2015-10-19 15:48:14 -06:00
Dave Syer
2259fc6ca9 Remove duplicate maven wrapper 2015-10-12 17:05:44 +01:00
Dave Syer
d9bf984e5f Add spring-cloud-sleuth-stream 2015-10-12 11:09:08 +01:00
Adrian Cole
ea481eee54 Merge pull request #48 from spring-cloud/adrian.fix-type
Sets annotation type to String, so the zipkin UI won't render base64
2015-10-09 22:00:06 -07:00
Adrian Cole
c40c62498b Sets annotation type to String, so the zipkin UI won't render base64 2015-10-09 21:19:30 -07:00
Dave Syer
4e21bf1b35 Add strategy EndpointLocator to help with service host/port location 2015-10-01 11:52:28 +01:00
Dave Syer
1d8d5a0956 Fix null span bug in Zuul filter
If a request is not being sampled, the ClientReceivedEvent should
not be fired.

Fixes gh-47
2015-09-28 07:47:38 +01:00
Dave Syer
588c609b09 Add enabled flag as courtesy 2015-09-22 17:34:42 +01:00
Spencer Gibb
77178afb62 Merge pull request #46 from marcingrzejszczak/issues/42-tracewebfilter-conditional
Removed ConditionalOnMissingBean. Fixes #42
2015-09-21 12:05:21 -06:00
Marcin Grzejszczak
e9b27e6a49 Removed ConditionalOnMissingBean. Fixes #42 2015-09-21 20:02:46 +02:00
Spencer Gibb
8b2593f334 Merge pull request #45 from spring-cloud/bump-zipkin
Updates docker-compose to zipkin 1.9.0
2015-09-21 10:50:50 -06:00
Dave Syer
3b305e6f8f Add basic test for zipkin span listener 2015-09-21 11:59:03 +01:00
Dave Syer
c786f81086 Fix rest template interceptors (workaround for Boot) 2015-09-21 11:59:03 +01:00
Adrian Cole
b867f29cd4 Updates docker-compose to zipkin 1.9.0 2015-09-20 13:32:17 -07:00
Adrian Cole
24b582a325 Merge pull request #43 from spring-cloud/brave-3-final
Updates to brave 3.0.0, removing zipkin's Annotation.duration
2015-09-20 10:07:07 -07:00
Adrian Cole
9e4693e379 Updates to brave 3.0.0, removing zipkin's Annotation.duration 2015-09-20 08:26:39 -07:00
Dave Syer
9612f66754 Drop back to snapshot 2015-09-10 09:02:53 +01:00
Dave Syer
614cfc243b Bump to M1 2015-09-10 09:02:16 +01:00
Dave Syer
0b77e8abdd Ensure Feign is sending complete set of headers
Otherwise the span name is null and the downstream services can't
log the server annotations.

Fixes gh-38
2015-09-07 12:56:34 +01:00
Dave Syer
f7930a10aa Ensure ClientSentEvent is emitted by Feign clients
Fixes gh-38
2015-09-07 12:34:14 +01:00
Dave Syer
2c3528e35b Fix NPE in Feign interceptor
Fixes gh-37
2015-09-07 12:20:18 +01:00
Spencer Gibb
61212c3c9b Merge pull request #36 from wojda/docs-patch-1
Fix minor typo in README.
2015-09-03 17:51:48 -06:00
Spencer Gibb
8fec6942c7 removed extra README 2015-09-03 17:46:48 -06:00
Daniel Wojda
152bd972bb Fix minor typo in README. 2015-09-04 01:11:36 +02:00
Spencer Gibb
5989dfe032 Merge pull request #35 from spring-cloud/brave3
Upgrade to brave 3.0.0-rc-1
2015-08-31 20:22:24 -06:00
Spencer Gibb
78b60b605c Upgrade to brave 3.0.0-rc-1
fixes gh-33
2015-08-31 18:47:51 -06:00
Dave Syer
69751ae63e Make server_send/recv a feature of the web filter 2015-08-23 10:03:25 +01:00
Dave Syer
3188a01fa1 Fix pointcut for async controllers
We need @within (not @target) to capture method executions inside
annotated controllers. With @target all beans with methods returning
Callable get wrapped in case at runtime there is a target match.
2015-08-23 09:56:22 +01:00
Dave Syer
23868f35b7 Add starters 2015-08-23 09:56:22 +01:00
Spencer Gibb
74268a6d4a Use new zuul abstraction for ribbon command 2015-08-21 12:03:50 -06:00
Spencer Gibb
0f76427ebf add /messaging annotations 2015-08-21 12:03:11 -06:00
Spencer Gibb
821e9536b9 Added LICENSE.txt 2015-08-20 16:12:27 -06:00
Dave Syer
cbcb4bdc68 Allow lombok version to be fixed by parent 2015-08-19 16:56:02 +01:00
Dave Syer
db2cdacbfb Fix bug in header names for streams 2015-08-19 13:53:07 +01:00
Dave Syer
7c33f2cb9c Fix typo in spring.factories 2015-08-19 13:37:27 +01:00