Commit Graph

122 Commits

Author SHA1 Message Date
Marcin Grzejszczak
0f427cbeb9 Polish 2016-08-10 17:18:20 +02:00
Marcin Grzejszczak
11e520c70d Updating the duration setting (#360)
* Updating the duration setting

fixes #349
2016-07-29 23:29:31 +02:00
Marcin Grzejszczak
6b5fa63553 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

    Fixed integration tests to use ZipkinRule
    Introduce assertj assertions (#315)

    * Introduce assertJ assertions in some tests
    * Fix code formatting to be inline with Spring rules
2016-06-29 10:44:00 +02:00
Marcin Grzejszczak
9641d4ef98 Possibility to customize HTTP Client for Zipkin calls
* Added RestTemplate for Zipkin
* Added ZipkinRestTemplateCustomizer to allow possibility to customize RestTemplate
* Addded DefaultZipkinRestTemplateCustomizer with GZip compression interceptor
2016-06-28 12:11:40 +02:00
Marcin Grzejszczak
6456709020 Update to SNAPSHOT 2016-06-10 15:56:21 +02:00
Marcin Grzejszczak
8f726cb514 Update SNAPSHOT to 1.0.1.RELEASE 2016-06-10 15:38:37 +02:00
Dave Syer
fc29838b86 Update to 1.0.1 snapshots 2016-05-11 09:21:54 +01:00
Spencer Gibb
feeb8bda0c Revert "Update SNAPSHOT to 1.0.0.RELEASE"
This reverts commit 4b347228a3.
2016-05-10 15:27:39 -06:00
Spencer Gibb
4b347228a3 Update SNAPSHOT to 1.0.0.RELEASE 2016-05-10 15:21:44 -06:00
Adrian Cole
7da63b9ade Updates to zipkin 0.18
Relating to sleuth, this is mostly cosmetic with a kafka condition fix.

It might be of interest that `GET /api/v1/traces` no longer requires
parameters.

https://github.com/openzipkin/zipkin-java/releases/tag/0.18.0
2016-05-07 00:17:16 +08:00
Adrian Cole
2c33895f4a Updates to zipkin 0.17
Most notably includes the group id change
2016-05-05 17:56:44 +08:00
Dave Syer
c14f803363 Tidy up some dependencies
Removes wiremock as a test dependency in core (which created more
issues than you might expect because Tomcat and Jetty don't treay
HTTP headers in the same way apparently).

Also moves the spring-messaging dependency to where it is needed
in sleuth stream.
2016-05-04 11:23:03 +01:00
Marcin Grzejszczak
c9cdb7e4c3 Added missing conditionals 2016-04-22 11:35:35 +02:00
Dave Syer
7dc30191cc Revert to snapshots 2016-04-18 15:11:14 +01:00
Dave Syer
7b40b9808e Update to RC2 2016-04-18 15:09:54 +01:00
Marcin Grzejszczak
60cb5eb49c Removed docker compose
Removed docker compose and updated README

fixes #230
2016-04-04 14:40:22 +02:00
Adrian Cole
eaa008f933 Updates to zipkin 0.11
The only notable change for Sleuth is an artifact id change from
spanstore to storage.
2016-04-03 21:04:55 +08:00
Marcin Grzejszczak
184afe698d Added tests for exporting to Zipkin 2016-03-23 14:28:06 +01:00
Marcin Grzejszczak
e31edbd254 Revert to snapshots 2016-03-23 13:00:05 +01:00
Marcin Grzejszczak
51fd6f784f Bump for 1.0.0.RC1 2016-03-23 12:54:35 +01:00
Marcin Grzejszczak
9c66bed2bb Added missing check for exportable
fixes #224
2016-03-23 12:23:45 +01:00
Adrian Cole
4ffae5c1da Merge pull request #221 from spring-cloud/0.9.2
Updates to zipkin 0.9.3, which fixes a UI recursion bug
2016-03-22 17:25:51 +08:00
Adrian Cole
ac0049f836 Updates to zipkin 0.9.3 and fixes UI dependencies for scs-zipkin-stream 2016-03-21 22:37:23 +08:00
Marcin Grzejszczak
a0048a806e Polish 2016-03-21 14:58:30 +01:00
Adrian Cole
d662a4bf90 Updates to zipkin 0.9
Notably, this removes the "zipkin-web" dependency, as the UI is now
collocated on zipkin-server.

Other notable changes are Cassandra and Kafka support, as well removing
the Brave dependency.
2016-03-18 17:46:45 +08:00
Marcin Grzejszczak
18b0ea8bea Fixed Sleuth Zipkin tests 2016-03-17 16:28:01 +01:00
Marcin Grzejszczak
146f7f652b Removed events and replaced them with method calls
fixes #156
2016-03-13 10:37:01 +01:00
Adrian Cole
9b995a0a2a Merge pull request #207 from spring-cloud/zipkin-0.7
Updates to latest zipkin 0.7
2016-03-10 09:59:38 +08:00
Marcin Grzejszczak
24fa3514da Added missing tests 2016-03-09 17:49:27 +01:00
Marcin Grzejszczak
c3722f3c74 [#205] Deferring endpoint localization
- added `/health` endpoint to be skipped by trace filter

fixes #205
2016-03-09 15:16:26 +01:00
Adrian Cole
b356abcb07 Updates to latest zipkin 0.7
This is a maintenance update to zipkin which has no api impact.

* zipkin-server supports cassandra now
* zipkin-web is now javascript (even if still hosted on a scala process)
2016-03-09 11:09:39 +08:00
Marcin Grzejszczak
e5b1495613 Simplified Tracer API 2016-03-04 11:50:59 +01:00
Spencer Gibb
ce6fe22315 Move o.s.c.util to o.s.c.commons.util 2016-03-02 11:19:47 -07:00
Marcin Grzejszczak
17bc239536 [#191] Changes following the review 2016-03-02 15:05:18 +01:00
Marcin Grzejszczak
754c8ce96d [#191] Added ServerAddress annotation
* if a span contains a CS or CR (or any other client related annotation) then SA is passed from the Endpoint service name

fixes #191
2016-03-01 16:35:57 +01:00
Marcin Grzejszczak
6c2c87ab3c [#191] Added local component if a span doesn't have any Zipkin constants
fixes #191
2016-03-01 13:45:58 +01:00
Adrian Cole
51b542e34b Updates to latest zipkin, adding spring.zipkin.compression.enabled flag
This updates to latest zipkin, adding a flag to gzip spans before
posting them. Note this is set to false by default as it requires servers
to also be latest. We can flip the default once we can assume that.

Ex. `spring.zipkin.compression.enabled = true`
2016-02-25 21:11:58 +08:00
Marcin Grzejszczak
3000a4f37d [#69] Added javadocs
fixes #69
2016-02-25 11:23:23 +01:00
Adrian Cole
be1b986bec Refactors HTTP SpanReporter tests to use ZipkinRule
This replaces direct usage of MockWebServer with ZipkinRule.
2016-02-24 14:14:19 +08:00
Marcin Grzejszczak
2ce9b085dd Merge pull request #172 from spring-cloud/issues_#160_removed_loggers
[#160] Removed unnecessary Slf4j loggers
2016-02-18 13:50:05 +01:00
Marcin Grzejszczak
c0620c410c [#160] Removed unnecessary Slf4j loggers
fixes #160
2016-02-18 11:23:09 +01:00
Adrian Cole
075a373127 Updates to zipkin 0.5.3
This includes updates to the latest zipkin-web image and zipkin-java
dependency.

zipkin-web's notable as it does a lot more in javascript, ex it no
longer does server-side mustache template rendering. It also makes one
less call to the services endpoint when rendering the search page.

zipkin-java's in-memory span store is now in the core jar and also can
render the dependency tree. This means it is now feature-parity with
mysql (but still merely a test span-store). zipkin-java also now tests
that it can run without optional dependencies.
2016-02-18 15:31:51 +08:00
Marcin Grzejszczak
8333c31c99 [#158] Removing span name
fixes #158
2016-02-16 08:28:22 +01:00
Adrian Cole
cdbb74c029 Updates to zipkin-java 0.5
This includes better dependency aggregation than before. For example,
you no longer need mysql to view the dependency graph, as the in-memory
server supports aggregation now. Also, if you log "ca" on a root span,
the associated service will show on the dependency graph on the far
left. This allows you to show uninstrumented clients of note. Similarly,
if you log "sa" on a leaf node, the destination will show on the far
right. You'd use "sa" for uninstrumented services like databases, auth
servers or cloud apis.

Note: 0.5.2 uses spring boot 1.3.2
2016-02-12 12:46:41 +08:00
Marcin Grzejszczak
ee8d7a54c7 Delomboking 2016-02-10 19:09:20 +01:00
Marcin Grzejszczak
1b0c8dfee5 [#146] Introduced SpanName
- Added aspect to provide better naming for @Async

fixes #146
2016-02-09 15:25:36 +01:00
Dave Syer
bc48a0094e Revert to snapshots 2016-02-05 10:02:47 +00:00
Dave Syer
203d9cc4f2 Update to 1.1.0.M5 2016-02-05 09:56:38 +00:00
Dave Syer
9bfe364518 SamplerConfiguration -> SamplerProperties
Plus tidy up docs a bit
2016-02-02 16:15:35 +00:00
Dave Syer
70b18054e1 Add Span to Sampler method params
Also allows us to actually create a PercentageBasedSampler (I
don't think anyone tried it before) without resorting to
lazy beans and proxies.

Another freature added here is a default percentage sampler
if we know that spans need to be exported (zipkin or stream
is present).

Fixes gh-138
2016-02-01 17:00:00 +00:00