Commit Graph

616 Commits

Author SHA1 Message Date
buildmaster
4b5bd34bbc Update SNAPSHOT to 3.0.0-M5 2020-11-17 21:04:48 +00:00
buildmaster
791b397964 Bumping versions 2020-11-17 05:31:08 +00:00
Marcin Grzejszczak
06d353f155 Migrated to OTel 0.10.0 2020-11-06 14:59:11 +01:00
Marcin Grzejszczak
b7cbd0a2fe Updated wrong images 2020-10-29 09:20:14 +01:00
Marcin Grzejszczak
6e306e594d Abstract tracer implementations via an API (#1757)
Spring Cloud Sleuth currently is an autoconfiguration over Brave. It also consists of various instrumentation mechanisms for libraries that are not supported by Brave (e.g. Spring Cloud Circuitbreaker).

We would like to abstract Brave so that Spring Cloud Sleuth becomes an autoconfiguration for any tracer implementation that is compatible with Spring Cloud Sleuth. That way Spring Cloud Sleuth in its core module would consist of an API and various tracer implementations would implement that API which would also allow automatic instrumentation of libraries that are supported by Spring Cloud Sleuth.

## OpenTelemetry Support

Thanks to doing this abstraction we are able to support new tracer implementations, not only Brave. We've decided to add support for the OpenTelemetry SDK as the second one. If in the future if we decide to add new tracers then it will be just a matter of adding a new module that bridges to the Spring Cloud Sleuth one. Thanks to abstraction of tests as well we will be easily able to plug that tracer mechanism into our current suite of tests.
2020-10-23 08:50:23 +02:00
buildmaster
f6608cd27f Going back to snapshots 2020-10-03 14:19:22 +00:00
buildmaster
bc5668b96d Update SNAPSHOT to 3.0.0-M4 2020-10-03 14:18:00 +00:00
buildmaster
5d4a303d61 Bumping versions 2020-09-23 05:31:16 +00:00
buildmaster
1a8c7f83c4 Bumping versions 2020-08-28 05:30:17 +00:00
Marcin Grzejszczak
368eabb412 Added spanHandler that skips span name via patterns; fixes gh-1720 2020-08-27 16:36:37 +02:00
Marcin Grzejszczak
391059f824 Updated docs 2020-08-13 15:07:13 +02:00
buildmaster
ba19f037df Bumping versions 2020-08-12 05:29:01 +00:00
Marcin Grzejszczak
9d0ee1428d Added an option to disable refresh scope on samplers; fixes gh-1557 2020-08-07 13:57:13 +02:00
Marcin Grzejszczak
b435d0eef9 Updated docs 2020-07-29 09:06:54 +02:00
Marcin Grzejszczak
1c33332320 Further WebFlux and Messaging Reactor Sleuth improvements (#1699)
* Improving performance and adding docs
2020-07-28 18:02:16 +02:00
buildmaster
dca561e4e8 Going back to snapshots 2020-07-23 18:49:08 +00:00
buildmaster
f352801918 Update SNAPSHOT to 3.0.0-M3 2020-07-23 18:47:48 +00:00
buildmaster
2d24f6622a Bumping versions 2020-07-22 05:29:15 +00:00
Jay Bryant
b7eb3b85b6 Wording changes (#1685)
Replacing some terms
2020-07-14 11:48:24 +02:00
buildmaster
916e52cb8d Bumping versions 2020-06-30 05:29:04 +00:00
Marcin Grzejszczak
3f9cd51313 Upload sources 2020-06-08 17:58:09 +02:00
Marcin Grzejszczak
aaea1db859 Updated props 2020-06-08 17:52:19 +02:00
Marcin Grzejszczak
ebec54e5b1 Changed packaging to jar 2020-06-08 17:12:28 +02:00
Marcin Grzejszczak
0ce00291b6 Updated adocs 2020-06-04 15:52:32 +02:00
Saisurya Kattamuri
6112b86ab7 Fix incorrect properties used in baggage section (#1662) 2020-06-03 14:36:28 +08:00
Marcin Grzejszczak
dde56c766d Merge branch '2.2.x' 2020-06-02 11:05:13 +02:00
Marcin Grzejszczak
bcb16d5341 Updated gradle example 2020-06-02 11:04:42 +02:00
Marcin Grzejszczak
b54565d32e Updated bom for dependency management
fixes gh-1658
2020-06-02 11:00:25 +02:00
Marcin Grzejszczak
ba73aa03d4 Updated links 2020-06-01 14:42:30 +02:00
buildmaster
93ea0d6b00 Going back to snapshots 2020-05-29 19:03:35 +00:00
buildmaster
640faa7c30 Update SNAPSHOT to 3.0.0-M2 2020-05-29 19:02:42 +00:00
buildmaster
2a29a23f95 Bumping versions 2020-05-29 05:29:12 +00:00
buildmaster
6b8dd82346 Bumping versions to 2.2.4.BUILD-SNAPSHOT after release 2020-05-28 20:00:54 +00:00
buildmaster
4b961dcdf3 Going back to snapshots 2020-05-28 20:00:54 +00:00
buildmaster
fdf4c647df Update SNAPSHOT to 2.2.3.RELEASE 2020-05-28 19:57:31 +00:00
buildmaster
7ecf64a607 Bumping versions 2020-05-27 05:29:15 +00:00
Marcin Grzejszczak
8752a7b8be Setting up repository for docs.spring.io migration 2020-05-25 14:40:16 +02:00
Marcin Grzejszczak
804f0cba7b Setting up repository for docs.spring.io migration 2020-05-25 13:42:59 +02:00
buildmaster
31c1bbbf9b Bumping versions 2020-05-19 05:31:39 +00:00
buildmaster
1f71925445 Bumping versions 2020-05-18 05:30:42 +00:00
Adrian Cole
8ae5e13d31 Merge branch '2.2.x' 2020-05-16 15:15:37 +08:00
Adrian Cole
b1d39ce291 Updates to Brave 5.12 and introduces SpanHandler (#1632)
`SpanHandler` is the base type for the now deprecated `FinishedSpanHandler`.

Notable, it can not just handle things at the end of a recording, but also the
beginning.

For example, this permits set-once baggage without the HTTP abstraction:
```java
static final BaggageField EPOCH_SECONDS = BaggageField.create("epoch_seconds");

static final class RootOnlyBaggage extends SpanHandler {
  @Override
  public boolean begin(TraceContext context, MutableSpan span, @Nullable TraceContext parent) {
    if (EPOCH_SECONDS.getValue(context) == null) { // only set at the first span
      long epochSeconds = System.currentTimeMillis() / 1000;
      EPOCH_SECONDS.updateValue(context, String.valueOf(epochSeconds));
    }
    return true;
  }

  @Override public boolean end(TraceContext context, MutableSpan span, Cause cause) {
    Tags.BAGGAGE_FIELD.tag(EPOCH_SECONDS, context, span);
    return true;
  }
}
```

As the parent is available, it can also facilitate advanced tasks like counting
children, or summarizing entire local roots.

See https://github.com/openzipkin/brave/tree/master/brave/src/test/java/brave/features/handler
and https://github.com/openzipkin/brave/blob/master/brave/src/main/java/brave/handler/SpanHandler.java for more
2020-05-16 14:01:38 +08:00
buildmaster
a4fbdd3e47 Bumping versions 2020-05-09 05:28:53 +00:00
Adrian Cole
6fb92a5f66 Merge branch '2.2.x' 2020-04-23 19:42:38 +08:00
Adrian Cole
eac2733c8c Restores special case that ignores sampling properties (#1619)
Sleuth is unlike most tracing configuration libraries, as it has a
legacy from 1.x as being primarily log correlation. In short, when
Zipkin is not installed, it ignored the sampling properties. This
behavior was managed implicitly through an untested combination of
configuration conventions between the core and zipkin modules.

16fb8e3 broke this and this change puts it back, in a way not tightly
coupled to Zipkin and neither requires the more simple, but confusing
"import SamplerAutoConfiguration" approach. It also backfills tests
that should have broken earlier.

In practice, a site that only uses logging is likely uniform in that, so
whether or not the sampled bit is set is of no consequence. However,
there's a chance that someone might rely on this historical behavior.

We should follow-up on 3.0 and remove this as it is very unintuitive to
intentionally ignore sampling properties. For now, this restores the old
behavior based on heuristics of bean definitions.
2020-04-23 13:09:28 +08:00
buildmaster
d41d75a3eb Bumping versions 2020-04-17 14:53:39 +00:00
Adrian Cole
07baf87bdf Don't talk too much in the feature intro 2020-04-15 13:12:45 +08:00
Adrian Cole
354142e725 fixes broken link 2020-04-15 09:12:48 +08:00
buildmaster
08a575141d Going back to snapshots 2020-04-09 22:48:15 +00:00
buildmaster
66b540f0b9 Update SNAPSHOT to 3.0.0.M1 2020-04-09 22:47:21 +00:00