Commit Graph

106 Commits

Author SHA1 Message Date
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
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
42c8896e75 Modified tests 2021-07-14 15:52:15 +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
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
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
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
b255974c00 Fixed autoconfiguration ordering 2021-05-27 15:38:23 +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
feeb251f09 Trying to make tests less brittle 2021-05-26 10:34:45 +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
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
742c23abdc Paramterize the name in tests 2021-05-10 10:33:59 +02:00
Marcin Grzejszczak
3c8e93ebca Disables tx for task 2021-05-10 09:36:30 +02:00
Flaviu Mureșan
4070712f11 Added reactor-kafka autoconfig to spring.factories (#1943) 2021-05-08 14:14:57 +02:00
Jason Hinch
ac729f141d Modify WebClient tracing to include the uri template in generated span names (#1940)
Spans names are in the form '<http method> <uri template>'
(e.g. 'GET /path/{id}'). This naming strategy matches the span names
generated by TraceWebFilter.

The improve naming strategy is not applied to RestTemplate as the uri
template is not readily available to interceptors and RestTemplate is
in maintenance mode
2021-05-07 22:21:54 +02:00
Flaviu Mureșan
59c170d147 Kafka instrumentation enhancements (#1936)
* Bump javadocs since version to 3.1.0

* Extend integration tests to cover all Kafka clients

* Add autoconfiguration module for kafka instrumentation

* Refactor instrumentation for reactive Kafka Receiver

* Refactor instrumentation for reactive Kafka Receiver

* Add docs for Kafka instrumentation

* Revert "Refactor instrumentation for reactive Kafka Receiver"

This reverts commit 58c8f2fa

* Revert "Revert "Refactor instrumentation for reactive Kafka Receiver""

This reverts commit 450a9f8c

* Remove empty test

* Resolve comments from PR 1936

* Revert whitespaces

* Revert whitespaces in common tests pom.xml

* Fix autoconfig to consider generics when registering beans.
Only register reactor-kafka beans if the dependency is on the classpath.

* Split autoconfig for kafka and reactor-kafka
2021-05-07 22:20:37 +02:00
Marcin Grzejszczak
fc0a719d12 Added batch instrumentation
fixes gh-1904
2021-04-30 14:12:16 +02:00
Marcin Grzejszczak
302e718fff Make RSocket tests configurable for OTel 2021-04-29 17:09:53 +02:00
Marcin Grzejszczak
a6bf9a328a Fixed the messaging aspect 2021-04-29 14:08:49 +02:00