Commit Graph

143 Commits

Author SHA1 Message Date
Marcin Grzejszczak
67e175f8dc WIP 2022-01-03 16:06:57 +01:00
Marcin Grzejszczak
d82379b119 Added NPE guard for null async executor; fixes gh-2094 2022-01-03 14:27:14 +01:00
Marcin Grzejszczak
abdf5754c2 Added support for message containers; fixes gh-2093 2022-01-03 13:58:37 +01:00
mschielmann
421c5e6476 #2083 improvements (#2091)
* #2083 improvements

* removed known span names to keep backward compatibility
2022-01-03 12:05:44 +01:00
mschielmann
4a29094ccb fixing issue #2083 (#2086) 2021-12-28 22:51:23 +01:00
Tim Ysewyn
195d853714 Moved return statement out of log.isDebugEnabled() condition 2021-12-15 11:00:46 +01:00
Marcin Grzejszczak
c05a5d8175 Made TraceValve lazilly access beans. Fixes gh-2074 2021-12-14 20:00:42 +01:00
Marcin Grzejszczak
938a30af7e Fixed type checking for Publisher<Non-Message>; fixes gh-2079 2021-12-14 13:50:50 +01:00
Marcin Grzejszczak
beabeffe76 Polish 2021-12-13 11:41:39 +01:00
Marcin Grzejszczak
cc1523505a Not allowing NPEs for DataSource name resolution; fixes gh-2076 2021-12-13 11:37:58 +01:00
Marcin Grzejszczak
e056db7cf3 Going with manual instrumentation of transaction managers; fixes gh-2067 2021-12-06 17:03:05 +01:00
Marcin Grzejszczak
9bcf6d43dc Added aspect for PlatformTransactionManager types; fixes gh-2067 2021-12-04 09:46:15 +01:00
Marcin Grzejszczak
cda8a932cd Ensures that the primitive types are also supported for Stream; fixes gh-2068 2021-12-03 12:15:40 +01:00
Marcin Grzejszczak
76c954077e Removed unnecessary logging; fixes gh-2069 2021-12-03 11:57:48 +01:00
buildmaster
e4a29f8a16 Bumping versions 2021-11-29 17:34:38 +00:00
Marcin Grzejszczak
6ddc4c62ad Simplified the code 2021-11-29 10:07:25 +01:00
Marcin Grzejszczak
65fb46bc1b Only call exchange filter function methods when context is ready; fixes gh-2062 2021-11-29 09:54:22 +01:00
Marcin Grzejszczak
f385740bfb Added a wrapper for KafkaPlatformTransactionManager; fixes gh-2063 2021-11-26 11:51:52 +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
buildmaster
5d07c3627f Bumping versions 2021-11-04 17:34:14 +00:00
Arthur Gavlyukovskiy
f70cee7341 Refactored TraceListenerStrategy to better track current scope in case multiple connections are used (#2053)
* Refactored TraceListenerStrategy to better track current scope in case multiple connections are used

Refactored remoteServiceName resolution logic to be easier to follow
Fixed TraceQueryExecutionListener#getConnection that leaks connection by acquiring (and not closing) additional connection from a DataSource

* Fixed checkstyle issues
2021-11-04 09:02:25 +01:00
Marcin Grzejszczak
8620d399f4 Added opt in for SocketAddress Mongo spans; fixes gh-2050 2021-11-03 11:41:00 +01:00
Jonatan Ivanov
3c3fca3b61 Use new LoadBalancerClientsProperties class 2021-10-28 13:18:43 -07:00
Marcin Grzejszczak
11686c4131 Updated the formatting 2021-10-26 16:25:06 +02:00
Marcin Grzejszczak
eb01d5952b Reactive mongo (#2044)
Added support for the new Reactive and Synchronous Context Providers in Mongo
2021-10-26 16:13:57 +02: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
ef9dac6d2c Prometheus Exemplars Support
fixes gh-2039
2021-10-18 17:30:30 -07:00
Marcin Grzejszczak
df2bf03cb3 Fixed compilation issues 2021-10-13 16:16:03 +02:00
Marcin Grzejszczak
d19b72d553 Caches executor wrappers (#2033)
without this change whenever a traced executor is created (either via a proxy or directly) we create a new instance of that traced wrapper. The problem with that is such that we create a lot of objects (e.g. each getExecutor() would return a new instance of the traced version). There are projects such as Micrometer that create WeakReferences to those objects. That means that if we don't cache the traced instance then we will lose the WeakReference upon the first GC.
with this change we're introducing new static wrapper methods that cache the traced instance for a given delegate. That means that not only will we create fewer objects but also we will honour the WeakReference mechanisms.

fixes gh-2020
2021-10-01 09:34:20 -07:00
Jonatan Ivanov
565d00c73a update spring security: 5.6.0-M3 2021-09-30 15:22:34 -07:00
buildmaster
4f30b5e012 Bumping versions 2021-09-30 17:33:57 +00:00
干货满满张哈希
6b2f15e961 fix #2023, add parent in the new TraceFeignContext (#2024)
fixes gh-2023
2021-09-30 10:46:52 +02:00
Jonatan Ivanov
5dfb1a44fa Fixing logger (jcl instead of slf4j) 2021-08-30 13:38:18 -07:00
Jonatan Ivanov
f781cea815 Changing logger level to debug for TracingSecurityContextChangedListener 2021-08-26 14:49:04 -07:00
Jonatan Ivanov
f3051483d7 Instrumenting Spring Security (#2011)
* First draft of instrumenting Spring Security

* Create events based on Authentication not SecurityContext

* Simplifying security config

* Checkstyle reformat

* Create DocumentedSpan and EventValue for Spring Security instrumentation

* Adding spring-security-bom to ensure the right dependencies are used.

* TracingSecurityContextChangedListenerTests

* Adding integration tests

* Deleting spring-cloud-sleuth-sample-security

* Checkstyle, license, javadoc

* Inlining SleuthSecuritySpan methods

* Deleting javadoc links from DocumentedSpan

* Updating auto-generated docs
2021-08-25 15:44:45 -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
013d95120a Added an option to mutate the reactor context; fixes gh-2000 2021-07-30 11:38:07 +02:00
Marcin Grzejszczak
95c1a1df1e Fixed line endings 2021-07-28 20:08:39 +02:00
Oleg Zhurakousky
f1d72227c3 Fix previous commit 2021-07-28 13:47:57 +02:00
Oleg Zhurakousky
1b091f7772 Fix previous commit 2021-07-28 12:39:42 +02:00
Oleg Zhurakousky
71f12e2640 Add temporary guard to TraceFunctionAroundWrapper for cases which are not properly supported by it 2021-07-28 11:21:04 +02:00
Oleg Zhurakousky
e3b3cd9c66 Add temporary guard to TraceFunctionAroundWrapper for cases which are not properly supported by it 2021-07-28 11:20:19 +02:00
buildmaster
44dd4d17eb Bumping versions 2021-07-17 17:34:57 +00:00
Marcin Grzejszczak
bbb23b66a2 Fixed missing async processing for TomcatValve; fixes gh-1998 2021-07-16 17:53:30 +02:00
Marcin Grzejszczak
42c8896e75 Modified tests 2021-07-14 15:52:15 +02:00
Marcin Grzejszczak
f7eb154eb8 Merge branch 'mvc-customize-handler-postHandle' of https://github.com/wuwen5/spring-cloud-sleuth into wuwen5-mvc-customize-handler-postHandle 2021-07-14 15:31:24 +02:00
spencergibb
602749a8d1 Implements new methods and delegates them. 2021-07-09 14:55:27 -04:00