Commit Graph

52 Commits

Author SHA1 Message Date
Marcin Grzejszczak
abdf5754c2 Added support for message containers; fixes gh-2093 2022-01-03 13:58:37 +01:00
Sanha Lee
03e498400b Fix NPE in SkipPatternSampler (#2089) 2022-01-03 12:06:33 +01:00
Marcin Grzejszczak
a08f94cb21 Made the Redis configuration more generic 2021-11-22 15:41:33 +01:00
Marcin Grzejszczak
1ca5e1aea2 Merge branch 'gh-2045' of https://github.com/ThomasVitale/spring-cloud-sleuth into ThomasVitale-gh-2045 2021-11-22 14:44:29 +01:00
Marcin Grzejszczak
8620d399f4 Added opt in for SocketAddress Mongo spans; fixes gh-2050 2021-11-03 11:41:00 +01:00
Marcin Grzejszczak
90417f1f07 Stream reactive (#2038)
Added native support for Reactive Spring Cloud Stream.
2021-10-26 16:01:12 +02:00
Thomas Vitale
3b2a644403 Use Sleuth API for Redis instrumentation
Extracted Brave-specific Redis instrumentation to use
the Sleuth API, and registered the implementation in
Brave autoconfiguration.

Fixes gh-2045
2021-10-23 09:50:30 +02: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
013d95120a Added an option to mutate the reactor context; fixes gh-2000 2021-07-30 11:38:07 +02: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
Jonatan Ivanov
f94330a02e Merge branch 'main' into 3.1.x
# Conflicts:
#	benchmarks/pom.xml
#	pom.xml
#	spring-cloud-sleuth-instrumentation/src/main/java/org/springframework/cloud/sleuth/instrument/messaging/TraceMessageHandler.java
2021-07-06 15:03:23 -07:00
Marcin Grzejszczak
8b61684168 Ensures that there are no issues with context setup when picking custom propagation type (#1989)
fixes gh-1987
2021-07-02 08:14:05 -07:00
Marcin Grzejszczak
b876551a78 Fixing sc function (#1983)
- Removed an unnecessary child span; the parent span was never ended
- Added tests
2021-06-23 17:20:01 +02:00
Marcin Grzejszczak
2493b176e5 Actuator endpoint with spans (#1964)
fixes #1879
2021-06-16 12:48:43 +02:00
Marcin Grzejszczak
821bc3abd4 Merge branch 'main' into 3.1.x 2021-06-07 14:31:57 +02:00
Marcin Grzejszczak
988c85fc5b Polish 2021-06-07 14:25:18 +02:00
Marcin Grzejszczak
6bca07075f Fixed brave redis setup
fixes gh-1971
2021-06-07 14:14:19 +02:00
Marcin Grzejszczak
190a15de57 Adding jdbc instrumentation (#1959)
fixes gh-1930
2021-05-26 10:00:14 +02:00
Marcin Grzejszczak
f4830ea8b3 Changed equality to include asserting span as a proxy 2021-05-19 08:38:50 +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
5db11326b8 Merge branch 'main' into 3.1.x 2021-05-10 16:22:57 +02:00
Marcin Grzejszczak
0e38dd3878 Wraps producer / consumer once only (#1923)
* Wraps producer / consumer once only

without this change we can wrap the kafka consumer / producer multiple times. First via post processors, second via aspect
with this change we're doing it only once via post processors. we do not wrap factories

fixes gh-1921
2021-05-10 16:22:39 +02:00
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
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
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
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
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
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
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
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