Commit Graph

46 Commits

Author SHA1 Message Date
Marcin Grzejszczak
3a4a82057c Merge remote-tracking branch 'origin' into 3.1.x 2021-04-29 13:35:21 +02:00
Marcin Grzejszczak
216d681b04 Adds RSocket instrumentation
coauthor @olegdokuka

fixes gh-1677
2021-04-29 13:32:58 +02:00
Marcin Grzejszczak
1bcccbae6e Added missing method for AOP wrapping (#1924)
fixes gh-1922
2021-04-22 11:27:08 +02:00
Marcin Grzejszczak
911fb4838a 3.1.0 initial commit 2021-04-20 08:53:38 +02:00
Marcin Grzejszczak
8d86e19807 Added remoteServiceName to Span interface; fixes gh-1901 2021-04-13 08:57:45 +02:00
Marcin Grzejszczak
fcd85362dd Reuses configuration from the given propagation type; fixes gh-1846 2021-03-18 17:25:47 +01:00
Marcin Grzejszczak
7ad006b440 Added support for netty-http-brave; fixes gh-1690 2021-03-18 13:35:47 +01:00
buildmaster
d2c29938b8 Bumping versions to 3.0.3-SNAPSHOT after release 2021-03-17 22:12:44 +00:00
buildmaster
dfc5674cea Going back to snapshots 2021-03-17 22:12:44 +00:00
buildmaster
551094af4a Update SNAPSHOT to 3.0.2 2021-03-17 22:09:09 +00:00
Marcin Grzejszczak
984f62c32d Fixed custom propagation mode option
with this change when CUSTOM mode is turned on we will search for user provided Propagation bean or else noop

fixes gh-1836
2021-03-16 17:00:56 +01:00
Marcin Grzejszczak
899410a2b0 Updated copyrights 2021-02-25 15:24:10 +01:00
Marcin Grzejszczak
68f284d1cf Opened API, added methods required for Wavefront integration with OTel (#1852) 2021-02-19 12:00:27 -08:00
Marcin Grzejszczak
8d87ea7fd3 Merge branch 'optimize-reactor-hooks' of https://github.com/robotmrv/spring-cloud-sleuth into robotmrv-optimize-reactor-hooks 2021-02-19 10:59:17 +01:00
buildmaster
2dc9556cc3 Bumping versions to 3.0.2-SNAPSHOT after release 2021-01-27 21:15:42 +00:00
buildmaster
5394ecb9ec Going back to snapshots 2021-01-27 21:15:41 +00:00
buildmaster
49f5528e69 Update SNAPSHOT to 3.0.1 2021-01-27 21:12:10 +00:00
Roman Matiushchenko
615f70c03a handle double wrapping 2021-01-24 20:50:14 +02:00
Marcin Grzejszczak
9f630e1675 Handles null response with Feign; fixes gh-1823 2021-01-13 10:38:33 +01:00
Csaba Kos
40a00214b5 Set remote IP and port for servlet HTTP server traces. (#1817)
* Set remote IP and port for servlet HTTP server traces.

* Add null check and use broader ServletRequest type instead of HttpServletRequest.
2021-01-08 10:38:04 -08:00
buildmaster
ca2e15fc76 Bumping versions 2020-12-22 18:28:05 +00:00
buildmaster
ea66740e2e Bumping versions 2020-12-22 05:29:47 +00:00
buildmaster
7ed5683386 Bumping versions to 3.0.1-SNAPSHOT after release 2020-12-21 20:12:10 +00:00
buildmaster
749c1cc9e2 Going back to snapshots 2020-12-21 20:12:10 +00:00
buildmaster
dbe4853e36 Update SNAPSHOT to 3.0.0 2020-12-21 20:07:38 +00:00
buildmaster
02c00bb682 Bumping versions 2020-12-18 05:29:57 +00:00
Jonatan Ivanov
d6f54ab4c1 Fixes gh-1809, if traceIdHigh is zero, brave returns a 16 digits long traceId instead of a 32 digits long one (#1810) 2020-12-17 08:26:17 +01:00
buildmaster
be35aaec21 Going back to snapshots 2020-12-11 22:29:42 +00:00
buildmaster
5630b3fa61 Update SNAPSHOT to 3.0.0-RC1 2020-12-11 22:27:43 +00:00
Marcin Grzejszczak
96979e1e27 Fixed broken compilation 2020-12-10 11:18:12 +01:00
Marcin Grzejszczak
f5bfb1e980 Renamed the method to sampled; related to gh-1799 2020-12-10 10:48:23 +01:00
Marcin Grzejszczak
7fee2670c7 Changed isSampled() to Boolean since we could also defer a smapling decision 2020-12-10 10:46:24 +01:00
Marcin Grzejszczak
d547386cb5 Expose isSampled on TraceContext; fixes gh-1799 2020-12-10 10:19:40 +01:00
buildmaster
f3b384a8aa Going back to snapshots 2020-12-01 23:11:38 +00:00
buildmaster
df54a7b772 Update SNAPSHOT to 3.0.0-M6 2020-12-01 23:09:32 +00:00
Marcin Grzejszczak
79e0bf1d36 Bumped OTel to 0.11.0; fixes gh-1787 2020-11-30 15:34:53 +01:00
Marcin Grzejszczak
65d9a1c484 Moved the additional spring configuration metadata around 2020-11-24 10:30:26 +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
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
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
06d353f155 Migrated to OTel 0.10.0 2020-11-06 14:59:11 +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