Commit Graph

568 Commits

Author SHA1 Message Date
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
Adrian Cole
1d9bcbad4f typo 2020-04-09 22:29:44 +08:00
Adrian Cole
da33366d8a fix indent 2020-04-09 22:12:24 +08:00
Adrian Cole
a4a33dec6f polish 2020-04-09 22:01:45 +08:00
Adrian Cole
5e3ab4bc94 locally sourced, organic log config 2020-04-09 21:28:59 +08:00
Adrian Cole
3e809f0ba1 attempt to fix numbers 2020-04-09 20:58:20 +08:00
Adrian Cole
d4472fb0f0 fix bad link 2020-04-09 19:45:56 +08:00
Adrian Cole
8bcffe6f0b Overhauls documentation to focus on what sleuth does (#1614)
While some overview is important, the direct implementation details of tracing
not only drifted since Sleuth 1.x, but also caused a complaint #1466

This deletes most documentation that applies to an abstraction lower than sleuth
and reworks existing docs to focus on features it enables. By doing so, we have
less to maintain and users will have a clearer idea about the relationship
between Sleuth, Zipkin and Brave. Also important is this uses updated screen
shots and is in general less cluttered than before.

Note: the relationship between Sleuth and Brave was already redone in #1603
Note: this also removes the pws app which is usually broken or out of date.

Fixes #1466
2020-04-09 19:38:48 +08:00
Adrian Cole
01e0c97838 doc drift 2020-04-07 08:54:40 +08:00
Adrian Cole
44a7f4b7ad Reorganizes code under o.s.c.sleuth.baggage
This moves code and properties under org.springframework.cloud.sleuth.baggage
Properties are now under "spring.sleuth.baggage"

Those coming from 2.x should migrate with the following:
 * spring.sleuth.baggage-keys -> `BaggagePropagationCustomizer`
 * spring.sleuth.local-keys -> spring.sleuth.baggage.local-fields
 * spring.sleuth.propagation-keys -> spring.sleuth.baggage.remote-fields
 * spring.sleuth.propagation.tag.whitelisted-keys -> spring.sleuth.baggage.tag-fields
 * spring.sleuth.log.slf4j.whitelisted-mdc-keys -> spring.sleuth.baggage.correlation-fields
 * spring.sleuth.log.slf4j.enabled -> spring.sleuth.baggage.correlation-enabled

Those using MDC should know that for performance reasons, we no longer
set the following fields: `parentId` `spanExportable`.

We also do not set fields to "dirty" by default. Doing this by default
raised the overhead substantially, especially in reactive applications.

Those who want sleuth to override manual `MDC.put` operations as
described in #1416, or with to add back `parentId` `spanExportable` need
to define their own bean:

Ex. this is the former setup:

```java
@Bean CorrelationScopeDecorator oldConfig(List<String> myFieldNames) {
	CorrelationScopeDecorator.Builder builder = MDCScopeDecorator.newBuilder().clear()
			.add(SingleCorrelationField.create(BaggageFields.TRACE_ID))
			.add(SingleCorrelationField.create(BaggageFields.PARENT_ID))
			.add(SingleCorrelationField.create(BaggageFields.SPAN_ID))
			.add(SingleCorrelationField.newBuilder(BaggageFields.SAMPLED)
					.name("spanExportable").build());

        // Set all fields dirty, so that any changes made by MDC directly are reverted.
	for (String name : myFieldNames) {
		builder.add(SingleCorrelationField.newBuilder(BaggageField.create(name))
				.dirty().build());
	}
	return builder.build();
}

```
2020-04-06 23:06:10 +08:00
Adrian Cole
f01a65b035 Deprecates spring.sleuth.baggage-keys property (#1605)
The `spring.sleuth.baggage-keys` property assigned two headers for each
baggage. This causes unnecessary overhead and can be accomplished in another
way now:

```java
public class MyCode {
  static final BaggageField USER_ID = BaggageField.create("userId");

  @Autowired CurrentTraceContext currentTraceContext;

  @Nullable
  public String currentUserId() {
    return USER_ID.getValue(currentTraceContext.get());
  }

}

// In your @Configuration type, if you want to map multiple prefixes...
@Bean
BaggagePropagationConfig userIdBaggageConfig() {
  return SingleBaggageField.newBuilder(MyBaggage.USER_ID)
      .addKeyName("baggage-userId")
      .addKeyName("baggage_userId")
      .build();
}
```
2020-04-06 19:40:17 +08:00
Adrian Cole
3ac524c7e3 Renames spring.sleuth.propagation-keys to remote-keys (#1604)
spring.sleuth.local-keys and spring.sleuth.remote-keys make sense
together, especially as baggage-keys will be removed.
2020-04-06 18:06:40 +08:00
Adrian Cole
89298ad600 Adds more robust introduction (#1603) 2020-04-06 16:39:16 +08:00
Adrian Cole
0b838a796d Removes duplication of Brave docs (#1601) 2020-04-06 13:14:06 +08:00
buildmaster
8d72c4a08d Bumping versions 2020-04-05 05:28:37 +00:00
Adrian Cole
5e1f7f9c0c Merge branch '2.2.x' 2020-04-04 14:39:36 +08:00
Marcin Grzejszczak
7b420a98e6 Updated Sleuth docs with attaching docs zip 2020-04-01 10:20:12 +02:00
Marcin Grzejszczak
9dbdbb6ca1 Updated docs 2020-04-01 08:54:23 +02:00
Marcin Grzejszczak
3e8d842de9 Merge branch '2.2.x' 2020-03-26 10:20:01 +01:00
Spencer Gibb
08f853e386 Updates docs branches 2020-03-06 12:58:21 -05:00
buildmaster
2674fba171 Bumping versions to 2.2.3.BUILD-SNAPSHOT after release 2020-03-04 16:59:42 +00:00
buildmaster
5dd714da5c Going back to snapshots 2020-03-04 16:59:42 +00:00
buildmaster
151218b30a Update SNAPSHOT to 2.2.2.RELEASE 2020-03-04 16:57:41 +00:00
Marcin Grzejszczak
b4399eaa18 Added missing commas 2020-03-03 19:55:07 +01:00
Marcin Grzejszczak
3ce018bc51 Upgrades to JUnit5; fixes gh-1567 2020-03-03 19:53:57 +01:00
Marcin Grzejszczak
a59bfb00cf Merge branch '2.2.x' 2020-03-03 19:44:56 +01:00
Adrian Cole
eec55b9a6c Adds wiring for HttpRequestParser and HttpResponseParser (#1575) 2020-03-02 09:12:47 +08:00
Marcin Grzejszczak
0d237b564f Removed deprecated apis; fixes gh-1564 2020-02-18 13:30:00 +01:00
buildmaster
ca494f0d67 Bumping versions 2020-02-13 05:30:07 +00:00
Marcin Grzejszczak
9c93d678d0 Removed Hystrix from docs 2020-02-12 11:18:31 +01:00
Marcin Grzejszczak
3813cf9dd4 Removes modules in maintenance more.
Zuul, ribbon and hystrix
2020-02-12 11:03:04 +01:00
Adrian Cole
8a4002d288 Cleanups of build including upgrade of Brave (#1530)
In efforts to dig deep into benchmarks, I noticed we were a bit out of
date on Brave. Then, noticed some other artifacts could be bumped
safely. Finally, a find/replace on http/https was over zealous and
tripped up XML.

One change to test expectations and Brave is explained here:
https://github.com/openzipkin/brave/blob/master/instrumentation/RATIONALE.md#calling-spanfinish-while-the-context-is-in-scope
2020-01-22 19:31:50 +08:00
Marcin Grzejszczak
598f924db9 Merge branch '2.2.x' 2020-01-21 10:13:44 +01:00
Marcin Grzejszczak
349354a1c7 Added info about activemq sender 2020-01-21 10:13:29 +01:00
Adrian Cole
8866b84906 Cleanups of build including upgrade of Brave (#1530)
In efforts to dig deep into benchmarks, I noticed we were a bit out of
date on Brave. Then, noticed some other artifacts could be bumped
safely. Finally, a find/replace on http/https was over zealous and
tripped up XML.

One change to test expectations and Brave is explained here:
https://github.com/openzipkin/brave/blob/master/instrumentation/RATIONALE.md#calling-spanfinish-while-the-context-is-in-scope
2020-01-21 09:44:08 +01:00
Rafael Renan Pacheco
a1ca0084fc Update intro.adoc (#1522) 2020-01-13 22:30:12 +01:00
buildmaster
1c4a3da588 Bumping versions to 2.2.2.BUILD-SNAPSHOT after release 2019-12-20 13:48:43 +00:00
buildmaster
ac6dff3407 Going back to snapshots 2019-12-20 13:48:43 +00:00
buildmaster
c71d6ff0e2 Update SNAPSHOT to 2.2.1.RELEASE 2019-12-20 13:46:45 +00:00
buildmaster
991ccd1c37 Bumping versions 2019-12-14 05:29:10 +00:00
Marcin Grzejszczak
11c8090b94 Spring Cloud Circuit Breaker tracing (#1505)
Adds support for Spring Cloud CircuitBreaker
2019-12-13 11:49:43 +01:00
buildmaster
9ca94951ec Bumping versions to 2.2.1.BUILD-SNAPSHOT after release 2019-11-26 10:35:52 +00:00
buildmaster
830f300ca9 Going back to snapshots 2019-11-26 10:35:52 +00:00
buildmaster
312f87cd23 Update SNAPSHOT to 2.2.0.RELEASE 2019-11-26 10:34:27 +00:00
Marcin Grzejszczak
856d27e331 Updated Sagan Boot (no IMPORTANT) 2019-11-22 16:53:14 +01:00
buildmaster
99ebccf97c Going back to snapshots 2019-11-10 00:19:36 +00:00
buildmaster
10e6f9a705 Update SNAPSHOT to 2.2.0.RC2 2019-11-10 00:18:38 +00:00
Marcin Grzejszczak
b5339925aa Fixed broken docs 2019-11-05 11:52:41 +01:00
Adrian Cole
d1dddbf2c9 Adds Messaging sampling (#1483)
Same as #1456 except for messaging. This completes remote span sampling!
2019-11-04 12:15:15 +01:00