Commit Graph

27 Commits

Author SHA1 Message Date
Jonatan Ivanov
b2df1ec742 Add default implementation to Tracer#currentTraceContext 2021-10-28 13:19:14 -07:00
Marcin Grzejszczak
90417f1f07 Stream reactive (#2038)
Added native support for Reactive Spring Cloud Stream.
2021-10-26 16:01:12 +02:00
Lonre Wang
4ac9c10cce Typo fix (#2015) 2021-08-28 12:31:28 -07:00
Jonatan Ivanov
7ae5eca766 Merge branch '3.0.x' 2021-08-24 17:58:34 -07:00
Jonatan Ivanov
23ea9743d2 Fixing package and logger names in 3.0.x left from the Brave -> Sleuth API change 2021-08-24 17:58:27 -07:00
Marcin Grzejszczak
69691471ad Merge branch '3.0.x' into main 2021-07-28 20:25:10 +02:00
Marcin Grzejszczak
4f3558a165 Fixed W3C tracestate and baggage setting
without this change we're not setting tracestate whatsover. Baggage is also not being propagated properly (via the baggage field)
with this change when tracestate is there in the headers it will be treated as baggage. When the context is propagated then tracestate will not be put to the baggage field

fixes gh-2001
2021-07-28 20:06:15 +02:00
Marcin Grzejszczak
3970778bc5 Moved SingleSkipPattern to spring-cloud-sleuth-autoconfiguration; fixes gh-1991 2021-07-19 14:15:53 +02:00
Marcin Grzejszczak
d353e66556 Removed an unused class 2021-06-24 17:49:57 +02:00
Marcin Grzejszczak
2493b176e5 Actuator endpoint with spans (#1964)
fixes #1879
2021-06-16 12:48:43 +02:00
Marcin Grzejszczak
17ba1b18d5 Adds Cassandra support (#1974)
Co-authored-by: Mark Paluch <mpaluch@vmware.com>
2021-06-10 15:46:04 +02:00
Marcin Grzejszczak
12737adb67 JDBC tracing context not leaking
without this change there were cases (that we didn't test) where the tracing context would leak and pollute other parts of the code (including tests)
with this change we ensure that in case of errors we don't allow any dangling tracing context
2021-05-26 18:05:43 +02:00
Marcin Grzejszczak
190a15de57 Adding jdbc instrumentation (#1959)
fixes gh-1930
2021-05-26 10:00:14 +02:00
Marcin Grzejszczak
d2041cbd47 Automatic tag table generation
Without this change we don't even really know how many tags are created and what are their values.
With this change we want this information to be automatically rendered.
2021-05-18 14:50:04 +02:00
Marcin Grzejszczak
181c789020 Adds R2DBC support (#1946)
fixes gh-1524
2021-05-13 09:12:04 +02:00
Marcin Grzejszczak
216d681b04 Adds RSocket instrumentation
coauthor @olegdokuka

fixes gh-1677
2021-04-29 13:32:58 +02:00
Marcin Grzejszczak
2fca60a112 Added spring-cloud-task support
fixes gh-1903
2021-04-21 10:11:28 +02:00
Marcin Grzejszczak
8d86e19807 Added remoteServiceName to Span interface; fixes gh-1901 2021-04-13 08:57:45 +02:00
Marcin Grzejszczak
899410a2b0 Updated copyrights 2021-02-25 15:24:10 +01:00
Marcin Grzejszczak
58445f5a49 Making the breaking change not breaking anymore 2021-02-22 08:43:14 +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
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
Marcin Grzejszczak
79e0bf1d36 Bumped OTel to 0.11.0; fixes gh-1787 2020-11-30 15:34:53 +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