Commit Graph

132 Commits

Author SHA1 Message Date
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
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
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
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
Toshiaki Maki
4f6eb04527 Set spanId in TracingResponderRSocketProxy (#1986)
also respect traceIdHigh and debug flag in TracingMetadata
2021-06-28 10:38:46 +02:00
Marcin Grzejszczak
d353e66556 Removed an unused class 2021-06-24 17:49:57 +02:00
Marcin Grzejszczak
340454b8bb Merge remote-tracking branch 'origin/3.1.x' into 3.1.x 2021-06-24 09:52:42 +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
Chintan Radia
f7eb398917 Fix not able to override datasource-proxy log-level (#1976)
* Fix datasource-proxy log-level is not working

- Aligned default values of `Query` & `SlowQuery` in
  `TraceJdbcProperties.DataSourceProxyProperties`
  and `DataSourceProxyProperties`
- Add code to copy properties of `Query` and `SlowQuery` in
  `DataSourceProxyConfiguration`
- Add test case to check if `log-level` can be override or not.

Fixes gh-1973

* Disable query log listener by default

- By default `QueryLogListener` and `LoggingQueryLogListener`
  will be disabled, dev need to enable it by using properties
- By default `Slf4j` will be enlabled for query logging
  so by adding below property slow query logging will be enabled
  `spring.sleuth.jdbc.datasource-proxy.slow-query.enable-logging=true`
  this property will register `SLF4JSlowQueryListener`

* Add docs for how-to enable data-proxy query logs
2021-06-18 09:36:28 +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
d1d70f0f01 Remove s-c-function version from instrumentation POM 2021-06-17 15:14:41 +02:00
Oleg Zhurakousky
a2c5190c33 Remove commented code 2021-06-17 14:35:55 +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
9392f186d1 Making simple span a real span 2021-06-17 10:15:31 +02:00
Marcin Grzejszczak
49b4cfe920 Added simple tracer 2021-06-17 09:58:31 +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
209ce7d8ec Merge remote-tracking branch 'origin/main' into 3.1.x 2021-06-10 10:13:49 +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
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
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
buildmaster
e478f2eb11 Bumping versions to 3.0.4-SNAPSHOT after release 2021-05-27 09:05:42 +00:00
buildmaster
92b857ad33 Going back to snapshots 2021-05-27 09:05:42 +00:00
buildmaster
837ef78089 Update SNAPSHOT to 3.0.3 2021-05-27 09:01:00 +00:00
Marcin Grzejszczak
682398daec Polish 2021-05-26 18:36:50 +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
feeb251f09 Trying to make tests less brittle 2021-05-26 10:34:45 +02:00
Marcin Grzejszczak
190a15de57 Adding jdbc instrumentation (#1959)
fixes gh-1930
2021-05-26 10:00:14 +02:00
Artem Bilan
fa1e0b87b5 TracingChannelInterceptor: simple refactoring (#1948)
* TracingChannelInterceptor: simple refactoring

* * More clean up in the `TracingChannelInterceptor`
 - Move Spring Cloud Stream classes logic into `static` methods
to avoid eager load for those classes which are not present on CP
- Remove `emptyMessage()` since the contract for `ChannelInterceptor`
never accept a `null`
- Remove thread state manipulation from the `postReceive()` since
no one takes care about thread local afterwards
- Remove `afterReceiveCompletion()` in favor of its `default` impl
in the interface: we don't do thread local manipulation for `receive()`
since `afterReceiveCompletion()` is called *before* the message is really
returned to the target subscriber on the channel

* * Restore span manipulation for `receive()`.
Even if we don't need a thread local store, we still
need to call `span.end()` and set an exception tag
to it if any.
So, just reuse an existing API which includes thread local.
Even if we don't need it logically, there might be some
other interceptors in between which would like to take a
span from thread local do something even on that "void"
`receive()` operation
2021-05-25 15:42:53 +02:00
Marcin Grzejszczak
b591e0f474 Merge branch 'main' into 3.1.x 2021-05-25 13:18:21 +02:00