Commit Graph

306 Commits

Author SHA1 Message Date
buildmaster
3855298689 Going back to snapshots 2021-10-01 19:38:52 +00:00
buildmaster
160524d943 Update SNAPSHOT to 3.1.0-M2 2021-10-01 19:34:24 +00: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
Marcin Grzejszczak
ef8554daa6 Fixed the build for Boot 2.6.0 Snapshots 2021-09-08 12:21:54 +02:00
Jonatan Ivanov
15f7cc58c2 Removing unstable assertions for annotation
This can be fixed by recording the wall time and the duration (using monotonic time) and calculating the end time using the duration (also converting them to the right units) but I think it does not worth the effort.
2021-08-27 13:12:10 -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
1f986bb93f Fixing package and logger names in 3.1 left from the Brave -> Sleuth API change 2021-08-24 18:03:07 -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
51dca96d73 Merge remote-tracking branch 'origin/3.0.x' into main 2021-08-09 13:58:11 +02:00
Marcin Grzejszczak
0cdf31de7b Updated the docs with how to set the trace id in the response
fixes gh-2002
2021-08-09 13:57:39 +02:00
buildmaster
d5dad5d1e6 Going back to snapshots 2021-07-30 18:51:11 +00:00
buildmaster
848a1bbcdc Update SNAPSHOT to 3.1.0-M1 2021-07-30 18:47:07 +00:00
Marcin Grzejszczak
95c1a1df1e Fixed line endings 2021-07-28 20:08:39 +02:00
Oleg Zhurakousky
1b091f7772 Fix previous commit 2021-07-28 12:39:42 +02:00
Marcin Grzejszczak
76d63ce44d Fixed broken build 2021-07-14 16:55:50 +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
Marcin Grzejszczak
684669a32b Fixed wrong test 2021-07-13 12:23:43 +02:00
Marcin Grzejszczak
151eb4d194 Moved the assertion logic as default in the interface 2021-07-13 10:29:23 +02:00
buildmaster
6d85f48298 Bumping versions 2021-07-12 17:43:40 +00:00
spencergibb
a3288c112f Merge branch '3.1.x' 2021-07-09 14:44:13 -04:00
Oleg Zhurakousky
3793c58fe8 Add reactive Supplier test 2021-07-09 16:39:39 +02:00
Jonatan Ivanov
6ef9f4b99e fixing TestTracer 2021-07-06 16:26:53 -07: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
wuwen
29dbf7ecd9 Spring MVC customize traced requests handler add postHandle method. 2021-07-02 00:39:44 +08:00
Oleg Zhurakousky
c896158804 GH-1975 Fix test after SCF change
Fix sleuth tests related to the change in SCF - c86890806e
2021-06-28 19:22:58 +02:00
Marcin Grzejszczak
4e93443842 Merge branch 'main' into 3.1.x 2021-06-24 09:49:06 +02: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
7c4d8b1479 Adds support for Kotlin Coroutines (#1977)
* Added Kotlin Coroutine support
* Added docs, polished code and added one more case for reactor context
2021-06-18 07:30:49 +02:00
Oleg Zhurakousky
aa87398787 GH-1975 Add tracing support for Supplier function
This is an extension to SCF fix 293ccd7425
which allows Suppliers to generate initial tracing information

Resolves #1975
2021-06-17 14:32:31 +02:00
Marcin Grzejszczak
2493b176e5 Actuator endpoint with spans (#1964)
fixes #1879
2021-06-16 12:48:43 +02:00
Marcin Grzejszczak
9b580e2672 Made tests less brittle 2021-06-10 17:17:39 +02:00
Marcin Grzejszczak
ca59f9429b Polish 2021-06-10 15:53:41 +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
209ce7d8ec Merge remote-tracking branch 'origin/main' into 3.1.x 2021-06-10 10:13:49 +02:00
Marcin Grzejszczak
3e88132665 Making tests less brittle 2021-06-09 17:51:03 +02:00
Marcin Grzejszczak
4fcc7cc32e Adds Spring Session support (#1961)
* Adds Spring Session support

* Changes following the review
2021-06-09 16:11:23 +02:00
robotmrv
81322756a4 simplify ON_EACH reactor instrumentation (#1969)
* simplify ON_EACH reactor instrumentation

remove custom Publisher decorators that
were mostly copy of reactor-core Lift Publishers
and use new LIFTER Scannable Attribute instead

* change constant scope

* add note about test constant origin
2021-06-08 13:23:59 +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
6a094db84e Changed the logging defaults 2021-05-28 14:10:43 +02:00
buildmaster
58eb56d796 Going back to snapshots 2021-05-27 21:49:30 +00:00
buildmaster
c8da912f85 Update SNAPSHOT to 3.0.3 2021-05-27 21:44:52 +00:00
Marcin Grzejszczak
b255974c00 Fixed autoconfiguration ordering 2021-05-27 15:38:23 +02:00
Marcin Grzejszczak
e12f70d4f6 Made tests less brittle 2021-05-27 14:41:11 +02:00
Marcin Grzejszczak
685fb727b5 Polish 2021-05-27 14:05:39 +02:00
Marcin Grzejszczak
8991b4d3cd Moved tests to common 2021-05-27 13:41:44 +02:00