Commit Graph

2992 Commits

Author SHA1 Message Date
Marcin Grzejszczak
16a9d3633e Fixed properties and wrong images in the docs 2020-11-25 07:51:40 +01:00
buildmaster
a21c33f841 Bumping versions 2020-11-25 05:32:01 +00:00
Marcin Grzejszczak
1e8e6691b3 Fixed missing B3 default 2020-11-24 23:03:57 +01:00
Marcin Grzejszczak
d3e8a16052 Only propgate b3 baggage when b3 picked; fixes gh-1781 2020-11-24 17:24:08 +01:00
Marcin Grzejszczak
65d9a1c484 Moved the additional spring configuration metadata around 2020-11-24 10:30:26 +01:00
Aaron Sharp
3c5b490a11 clearer test cases 2020-11-24 09:15:24 +01:00
Aaron Sharp
452f04d0b9 try to make test assertions a bit cleaner 2020-11-24 09:15:24 +01:00
Aaron Sharp
4caa06ad3e tests 2020-11-24 09:15:24 +01:00
Aaron Sharp
00bbb9e4a6 Also fix newTaskForCallable 2020-11-24 09:15:24 +01:00
Aaron Sharp
fa0036c251 fix: Fix bad method reflection for LazyTraceScheduledThreadPoolExecutor 2020-11-24 09:15:24 +01:00
Marcin Grzejszczak
76ad931b42 Refactoring modules to be consistent with Spring Boot (#1784)
# Modules

* New modules: `spring-cloud-sleuth-autoconfigure`, `spring-cloud-sleuth-api`, `spring-cloud-sleuth-instrumentation`
  `spring-cloud-sleuth-core` removed and changed to `spring-cloud-sleuth-instrumentation` & `spring-cloud-sleuth-api`
* Removed `spring-cloud-starter-sleuth-otel`
  To add OpenTelemetry support you need to add `spring-cloud-starter-sleuth` (adds Brave by default), exclude Brave and add `spring-cloud-sleuth-otel` dependency
* Except for the tests, `spring-cloud-sleuth-autoconfigure` is the only module that can have access to `@Configuration`, `@ConfigurationProperties` classes.
Tests have been added to ensure such separation.

## Package moving

* `org.springframework.cloud.sleuth.api` -> `org.springframework.cloud.sleuth`
* `org.springframework.cloud.sleuth.brave.autoconfig` -> `org.springframework.cloud.sleuth.autoconfig.brave`
* `org.springframework.cloud.sleuth.otel.autoconfig` -> `org.springframework.cloud.sleuth.autoconfig.otel`
* `org.springframework.cloud.sleuth` -> `org.springframework.cloud.sleuth`
* Instrumentation: `org.springframework.cloud.sleuth.annotation` -> `org.springframework.cloud.sleuth.instrument.annotation`
* All the autoconfiguration classes were moved under `org.springframework.cloud/sleuth.autoconfig` package

## Global class modifications

* Any class registered as a bean is now public

## Classes

* `RateLimitingSampler` constructor changed
* Merged a lot of auto configuration classes into one (e.g. `BraveAutoConfiguration` now imports various other configurations)
* Renamed `TraceBraveAutoConfiguration` to `BraveAutoConfiguration`
* Renamed `TraceOtelAutoConfiguration` to `OtelAutoConfiguration`
* Removed all `NoOp` implementations of the API
2020-11-23 15:39:13 +01:00
Marcin Grzejszczak
c81ee04dac Removed the zipkin starter from BOM 2020-11-20 10:04:50 +01:00
buildmaster
4d6cb9ca9e Bumping versions 2020-11-20 05:30:22 +00:00
maxxedev
1613c0b85a add doc example for setting extra baggage field in current context (#1778) 2020-11-18 08:38:56 +01:00
maxxedev
4b62b519d1 Add doc example for setting extra baggage field to MDC in current context. (#1777) 2020-11-18 08:38:30 +01:00
buildmaster
6a1495db5c Going back to snapshots 2020-11-17 21:06:46 +00:00
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
fa4832709b Fixed conditions for sampling 2020-11-16 16:22:26 +01:00
Marcin Grzejszczak
ff2e27b5a1 Increased the timeout 2020-11-16 13:00:36 +01:00
Marcin Grzejszczak
7a8eb75fc9 Removed jetbrains annotations 2020-11-16 12:57:15 +01:00
Marcin Grzejszczak
ee3d98c277 Removed jetbrains annotations 2020-11-16 12:54:40 +01:00
Marcin Grzejszczak
82e92413de Bumped libs 2020-11-12 09:54:41 +01:00
Marcin Grzejszczak
52c82cadf5 Bumped otel-instrumentation to 0.10.1 2020-11-12 09:19:18 +01:00
buildmaster
d2ea5f1b75 Bumping versions to 2.2.7.BUILD-SNAPSHOT after release 2020-11-09 11:03:34 +00:00
buildmaster
a2ff64e797 Going back to snapshots 2020-11-09 11:03:34 +00:00
buildmaster
97b99bf9e3 Update SNAPSHOT to 2.2.6.RELEASE 2020-11-09 11:01:22 +00:00
buildmaster
14b14e8196 Bumping versions 2020-11-07 05:30:54 +00:00
Marcin Grzejszczak
06d353f155 Migrated to OTel 0.10.0 2020-11-06 14:59:11 +01:00
dependabot-preview[bot]
cf8e7dd04a Bump grpc-spring-boot-starter from 4.0.0 to 4.2.1 (#1766)
Bumps [grpc-spring-boot-starter](https://github.com/LogNet/grpc-spring-boot-starter) from 4.0.0 to 4.2.1.
- [Release notes](https://github.com/LogNet/grpc-spring-boot-starter/releases)
- [Changelog](https://github.com/LogNet/grpc-spring-boot-starter/blob/master/ReleaseNotes.adoc)
- [Commits](https://github.com/LogNet/grpc-spring-boot-starter/compare/v.4.0.0...v.4.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-02 09:48:06 +01:00
dependabot-preview[bot]
b104d81e7e Bump spring-security-oauth2-autoconfigure (#1769)
Bumps [spring-security-oauth2-autoconfigure](https://github.com/spring-projects/spring-security) from 2.3.3.RELEASE to 2.3.4.RELEASE.
- [Release notes](https://github.com/spring-projects/spring-security/releases)
- [Commits](https://github.com/spring-projects/spring-security/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-11-02 09:47:51 +01:00
Marcin Grzejszczak
b7cbd0a2fe Updated wrong images 2020-10-29 09:20:14 +01:00
Peter Paul Bakker
d85331124c reuse compiled regexp Patterns to save some cpu in TraceAction.call. Fixes gh-1760 (#1761) 2020-10-29 08:55:54 +01:00
Olga Maciaszek-Sharma
186d68030b Merge remote-tracking branch 'origin/2.2.x'
# Conflicts:
#	spring-cloud-sleuth-core/src/test/java/org/springframework/cloud/sleuth/instrument/web/client/feign/TracingFeignObjectWrapperTests.java
2020-10-28 14:31:57 +01:00
Olga Maciaszek-Sharma
eaa6acd59c Add more tests. 2020-10-28 14:10:22 +01:00
Olga Maciaszek-Sharma
61cb452cac Merge remote-tracking branch 'origin/2.2.x'
# Conflicts:
#	spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/client/feign/TraceFeignObjectWrapper.java
2020-10-28 13:29:56 +01:00
Olga Maciaszek-Sharma
4b5263c595 Add instrumentation for RetryableFeignBlockingLoadBalancerClient. (#1759) 2020-10-26 14:32:57 +01:00
Marcin Grzejszczak
599cd416fb Merge branch '2.2.x' 2020-10-26 12:36:31 +01:00
Marcin Grzejszczak
93e6ab195b Bumped Brave 2020-10-26 12:33:09 +01:00
Marcin Grzejszczak
297955c35a Merge branch '2.2.x' 2020-10-26 12:05:54 +01:00
Oleg Zhurakousky
6897ee47f8 You're welcome Marcin
See ba15726c9a
2020-10-26 08:34:23 +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
e6ebce4505 Bumping versions 2020-10-17 05:28:33 +00: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
Ryan Baxter
0c0277f8b3 Fixes feign compilation errors 2020-10-02 15:16:36 -04:00
dependabot-preview[bot]
2c87d29f6c Bump awaitility from 3.0.0 to 4.0.3 (#1745)
Bumps [awaitility](https://github.com/awaitility/awaitility) from 3.0.0 to 4.0.3.
- [Release notes](https://github.com/awaitility/awaitility/releases)
- [Changelog](https://github.com/awaitility/awaitility/blob/master/changelog.txt)
- [Commits](https://github.com/awaitility/awaitility/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-01 13:56:12 +02:00
dependabot-preview[bot]
4439676af2 Bump grpc-spring-boot-starter from 3.5.7 to 4.0.0 (#1746)
Bumps [grpc-spring-boot-starter](https://github.com/LogNet/grpc-spring-boot-starter) from 3.5.7 to 4.0.0.
- [Release notes](https://github.com/LogNet/grpc-spring-boot-starter/releases)
- [Changelog](https://github.com/LogNet/grpc-spring-boot-starter/blob/master/ReleaseNotes.adoc)
- [Commits](https://github.com/LogNet/grpc-spring-boot-starter/compare/v.3.5.7...v.4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-01 11:53:16 +02:00
dependabot-preview[bot]
b919bc06bb Bump animal-sniffer-maven-plugin from 1.18 to 1.19 (#1747)
Bumps [animal-sniffer-maven-plugin](https://github.com/mojohaus/animal-sniffer) from 1.18 to 1.19.
- [Release notes](https://github.com/mojohaus/animal-sniffer/releases)
- [Commits](https://github.com/mojohaus/animal-sniffer/compare/animal-sniffer-parent-1.18...animal-sniffer-parent-1.19)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-01 11:52:52 +02:00
dependabot-preview[bot]
4cdc13a731 Bump okhttp from 4.8.0 to 4.9.0 (#1743)
Bumps [okhttp](https://github.com/square/okhttp) from 4.8.0 to 4.9.0.
- [Release notes](https://github.com/square/okhttp/releases)
- [Changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/square/okhttp/compare/parent-4.8.0...parent-4.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-01 09:52:16 +02:00