Commit Graph

3085 Commits

Author SHA1 Message Date
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
Marcin Grzejszczak
75b40bb884 Polished the docs 2021-06-16 12:52:42 +02:00
Marcin Grzejszczak
2493b176e5 Actuator endpoint with spans (#1964)
fixes #1879
2021-06-16 12:48:43 +02:00
Marcin Grzejszczak
87ff5ca92b Updating Build to 3.1.0-SNAPSHOT 2021-06-10 17:31:48 +02:00
Marcin Grzejszczak
5bc8a29fe1 Updating Build to 3.1.0 2021-06-10 17:31:23 +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
buildmaster
2d627f4d06 Bumping versions 2021-05-28 17:29:12 +00:00
Marcin Grzejszczak
6a094db84e Changed the logging defaults 2021-05-28 14:10:43 +02:00
buildmaster
60ede50f2a Bumping versions to 3.0.4-SNAPSHOT after release 2021-05-27 21:49:30 +00: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
buildmaster
fba72d5923 Bumping versions 2021-05-27 17:29:07 +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
d15ee050a6 Updated config props 2021-05-27 14:08:12 +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
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
Marcin Grzejszczak
30b17f7576 Don't cache the bean factory as key;fixes gh-1958 2021-05-25 13:18:09 +02:00
Marcin Grzejszczak
2dd82624e5 Added support for Tomcat's Valve; fixes gh-1329 2021-05-20 18:55:07 +02:00
Marcin Grzejszczak
c1bf0fb5db Merge remote-tracking branch 'origin/main' into 3.1.x 2021-05-20 09:55:50 +02:00
Marcin Grzejszczak
86e035f21a Removed Brave reference from configruation 2021-05-20 09:55:32 +02:00
Marcin Grzejszczak
e7e97a65b6 Removed Brave reference from configruation 2021-05-20 09:51:23 +02:00
Marcin Grzejszczak
f4830ea8b3 Changed equality to include asserting span as a proxy 2021-05-19 08:38:50 +02:00
Marcin Grzejszczak
1273fa01bf Added Vault integration; fixes gh-1952 2021-05-18 19:34:46 +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
697a726cde Added new tags to the deployer 2021-05-13 10:35:14 +02:00
Marcin Grzejszczak
2461ae15dd Fixed checkstyle 2021-05-13 09:33:17 +02:00
Marcin Grzejszczak
6b2d1b907d Fixed the build 2021-05-13 09:30:12 +02:00
Marcin Grzejszczak
4241bca952 Deployer uses remoteServiceName; fixes gh-1947 2021-05-13 09:17:37 +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