Commit Graph

3169 Commits

Author SHA1 Message Date
Marcin Grzejszczak
5ea63f6f8c Adding span flushing on shutdown hook (#2036)
without this change when batch process finishes the async reporter doesn't have time to properly shutdown and send out spans to Zipkin.
with this change we're registering a shutdown hook. AsyncReporter has no option to send out spans in a blocking way, so what we need to do to flush it, then wait for the configured time for the spans to be drained from the queue and then give a chance to send the spans out over the wire.

fixes gh-2035
2021-10-08 10:53:15 +02:00
buildmaster
9fb298705b Bumping versions 2021-10-06 17:35:16 +00:00
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
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
buildmaster
152a4326c4 Bumping versions 2021-09-28 17:33:44 +00:00
Flaviu Mureșan
460d994a53 Spring kafka autoconfiguration (#2013)
* Add auto-configuration for spring kafka

* Add auto-configuration for spring kafka

* Make spring-kafka instrumentation autoconfig conditional on missing brave

Co-authored-by: flavium31 <w7og3bljlmmn742puqw2zwzu7ycuwmflr2nb4swrwzivccx6arpq>
2021-09-20 19:19:53 +02:00
buildmaster
a541d6cf0e Bumping versions 2021-09-10 17:33:53 +00:00
buildmaster
9da75fb871 Bumping versions 2021-09-08 17:34:30 +00:00
Marcin Grzejszczak
ef8554daa6 Fixed the build for Boot 2.6.0 Snapshots 2021-09-08 12:21:54 +02:00
Marcin Grzejszczak
5f5f29fd6d Update maven.yml 2021-09-06 14:12:12 +02:00
Jonatan Ivanov
5dfb1a44fa Fixing logger (jcl instead of slf4j) 2021-08-30 13:38:18 -07:00
Lonre Wang
4ac9c10cce Typo fix (#2015) 2021-08-28 12:31:28 -07: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
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
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
Junho, Kim
9eafa2ca58 Fix an example value using TagValueExpressionResolver (#2012) 2021-08-20 13:35:35 +02:00
Junho, Kim
2b17d08ee1 Fix typo in document example (#2010) 2021-08-18 21:55:23 -07:00
Marcin Grzejszczak
6a8b1551c7 Fixed end lines in editorconfig 2021-08-11 18:55:31 +02:00
Marcin Grzejszczak
1fbfd04b7c Merge remote-tracking branch 'origin/3.0.x' into main 2021-08-09 14:01:19 +02:00
Marcin Grzejszczak
61b0b175e1 Added missing text 2021-08-09 14:00:28 +02: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
Marcin Zajączkowski
8e925786a0 Add property to disable Reactor support in docs (#2006) 2021-08-06 15:27:56 +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
buildmaster
eef334a6ed Bumping versions 2021-07-30 17:33:23 +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
69691471ad Merge branch '3.0.x' into main 2021-07-28 20:25:10 +02:00
Marcin Grzejszczak
95c1a1df1e Fixed line endings 2021-07-28 20:08:39 +02:00
Marcin Grzejszczak
4f3558a165 Fixed W3C tracestate and baggage setting
without this change we're not setting tracestate whatsover. Baggage is also not being propagated properly (via the baggage field)
with this change when tracestate is there in the headers it will be treated as baggage. When the context is propagated then tracestate will not be put to the baggage field

fixes gh-2001
2021-07-28 20:06:15 +02:00
Oleg Zhurakousky
f1d72227c3 Fix previous commit 2021-07-28 13:47:57 +02:00
Marcin Grzejszczak
bd4fcfd1cb Updated wrapper to 0.5.6 and maven 3.6.3 2021-07-28 13:23:48 +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
Marcin Grzejszczak
1aaf0a8a26 Fixing gitattributes and line endings 2021-07-27 13:47:45 +02:00
buildmaster
362ed7420e Bumping versions 2021-07-24 17:33:55 +00:00
spencergibb
2957eef110 removes alt deployment repo 2021-07-23 13:01:05 -04:00
Marcin Grzejszczak
3970778bc5 Moved SingleSkipPattern to spring-cloud-sleuth-autoconfiguration; fixes gh-1991 2021-07-19 14:15:53 +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
Chintan Radia
7651e7c51f Fix traces actuator should return json by default (#1997)
Fixes gh-1996

Change order of TextOutputFormat enum and give `CONTENT_TYPE_OPENZIPKIN_JSON_V2`
highest ordinal value, so that it will be matched first by spring-boot-actuator
and in case of default Accept header JSON data will be returned.
2021-07-15 09:58:58 +02:00
buildmaster
a1a2e7fe50 Bumping versions 2021-07-14 17:34:23 +00:00