Adrian Cole
a9128dcd32
Updates to Brave 5.12 and introduces SpanHandler ( #1632 )
...
`SpanHandler` is the base type for the now deprecated `FinishedSpanHandler`.
Notable, it can not just handle things at the end of a recording, but also the
beginning.
For example, this permits set-once baggage without the HTTP abstraction:
```java
static final BaggageField EPOCH_SECONDS = BaggageField.create("epoch_seconds");
static final class RootOnlyBaggage extends SpanHandler {
@Override
public boolean begin(TraceContext context, MutableSpan span, @Nullable TraceContext parent) {
if (EPOCH_SECONDS.getValue(context) == null) { // only set at the first span
long epochSeconds = System.currentTimeMillis() / 1000;
EPOCH_SECONDS.updateValue(context, String.valueOf(epochSeconds));
}
return true;
}
@Override public boolean end(TraceContext context, MutableSpan span, Cause cause) {
Tags.BAGGAGE_FIELD.tag(EPOCH_SECONDS, context, span);
return true;
}
}
```
As the parent is available, it can also facilitate advanced tasks like counting
children, or summarizing entire local roots.
See https://github.com/openzipkin/brave/tree/master/brave/src/test/java/brave/features/handler
and https://github.com/openzipkin/brave/blob/master/brave/src/main/java/brave/handler/SpanHandler.java for more
2020-05-17 21:20:09 +08:00
Adrian Cole
511c54da81
Restores special case that ignores sampling properties ( #1619 )
...
Sleuth is unlike most tracing configuration libraries, as it has a
legacy from 1.x as being primarily log correlation. In short, when
Zipkin is not installed, it ignored the sampling properties. This
behavior was managed implicitly through an untested combination of
configuration conventions between the core and zipkin modules.
16fb8e3 broke this and this change puts it back, in a way not tightly
coupled to Zipkin and neither requires the more simple, but confusing
"import SamplerAutoConfiguration" approach. It also backfills tests
that should have broken earlier.
In practice, a site that only uses logging is likely uniform in that, so
whether or not the sampled bit is set is of no consequence. However,
there's a chance that someone might rely on this historical behavior.
We should follow-up on 3.0 and remove this as it is very unintuitive to
intentionally ignore sampling properties. For now, this restores the old
behavior based on heuristics of bean definitions.
2020-04-23 14:10:46 +08:00
buildmaster
efda469d91
Bumping versions to 2.1.8.BUILD-SNAPSHOT after release
2020-01-31 22:16:43 +00:00
buildmaster
00af789f6d
Going back to snapshots
2020-01-31 22:16:43 +00:00
buildmaster
c4c05354e5
Update SNAPSHOT to 2.1.7.RELEASE
2020-01-31 22:14:45 +00:00
buildmaster
22fce3694f
Bumping versions to 2.1.7.BUILD-SNAPSHOT after release
2019-11-18 15:46:50 +00:00
buildmaster
f2af9fa8d1
Going back to snapshots
2019-11-18 15:46:50 +00:00
buildmaster
1fbfc67930
Update SNAPSHOT to 2.1.6.RELEASE
2019-11-18 15:45:34 +00:00
Marcin Grzejszczak
54068d24ce
Bumping versions to 2.1.6.BUILD-SNAPSHOT after release
2019-10-31 12:39:24 +01:00
Marcin Grzejszczak
f993c6f131
Going back to snapshots
2019-10-31 12:39:23 +01:00
Marcin Grzejszczak
6a5cbbc519
Update SNAPSHOT to 2.1.5.RELEASE
2019-10-31 12:35:35 +01:00
Marcin Grzejszczak
cd2e2c2d49
Configure Reactor instrumentation to wrap onLastOperator or onEachOperator
...
with this feature we would allow user to pick whether they instrument on each or on last operator.
fixes gh-1478
2019-10-30 13:09:30 +01:00
Adrian Cole
aa533bc4cb
Updates to latest Sampling infrastructure (2.1.x) ( #1461 )
...
* Updates to latest Sampling infrastructure (2.1.x)
This adapts #1456 for the 2.1.x branch
2019-10-08 18:47:25 -05:00
Marcin Grzejszczak
028a79dc25
Bumping versions to 2.1.5.BUILD-SNAPSHOT after release
2019-09-27 13:56:35 +02:00
Marcin Grzejszczak
198843a917
Going back to snapshots
2019-09-27 13:56:35 +02:00
Marcin Grzejszczak
c9196fe177
Update SNAPSHOT to 2.1.4.RELEASE
2019-09-27 13:09:09 +02:00
Ryan Baxter
7ba1ec79eb
Bumping versions
2019-09-10 17:08:12 -04:00
Marcin Grzejszczak
cf8676ccfd
Adds integration of new customizers in Brave
...
fixes gh-1436
2019-09-06 11:40:09 +02:00
Marcin Grzejszczak
facce03f00
Added symbolic link of index.adoc
2019-07-29 14:44:40 +02:00
buildmaster
74c2b0b618
Bumping versions to 2.1.3.BUILD-SNAPSHOT after release
2019-06-20 21:26:50 +00:00
buildmaster
0a4e7b5d7b
Going back to snapshots
2019-06-20 21:26:50 +00:00
buildmaster
cc0b3341a5
Update SNAPSHOT to 2.1.2.RELEASE
2019-06-20 21:25:35 +00:00
Marcin Grzejszczak
3e1184e7f7
Polish
2019-04-02 14:37:37 +02:00
Marcin Grzejszczak
0344f238f3
Merge pull request #1298 from spring-operator/polish-urls-xml-2.1.x
...
URL Cleanup
2019-03-29 11:46:17 +01:00
Marcin Grzejszczak
f318b0aa79
Fixed dubbo link
2019-03-29 11:42:28 +01:00
Spring Operator
929d6c440c
URL Cleanup ( #1309 )
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.
* [ ] http://ajaxian.com/archives/100-line-ajax-wrapper (200) with 1 occurrences could not be migrated:
([https](https://ajaxian.com/archives/100-line-ajax-wrapper ) result ConnectTimeoutException).
* [ ] http://dubbo.io/ (200) with 1 occurrences could not be migrated:
([https](https://dubbo.io/ ) result SSLHandshakeException).
# Fixed URLs
## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.
* [ ] http://jaubourg.net/2010/07/loading-script-as-onclick-handler-of.html (AnnotatedConnectException) with 1 occurrences migrated to:
https://jaubourg.net/2010/07/loading-script-as-onclick-handler-of.html ([https](https://jaubourg.net/2010/07/loading-script-as-onclick-handler-of.html ) result AnnotatedConnectException).
* [ ] http://192.168.99.100:9411/ (ConnectTimeoutException) with 2 occurrences migrated to:
https://192.168.99.100:9411/ ([https](https://192.168.99.100:9411/ ) result ConnectTimeoutException).
* [ ] http://host.com:9999/ticker/12/basd (ConnectTimeoutException) with 1 occurrences migrated to:
https://host.com:9999/ticker/12/basd ([https](https://host.com:9999/ticker/12/basd ) result ConnectTimeoutException).
* [ ] http://compose.docker.io/ (UnknownHostException) with 1 occurrences migrated to:
https://compose.docker.io/ ([https](https://compose.docker.io/ ) result UnknownHostException).
* [ ] http://non.existing.url (UnknownHostException) with 1 occurrences migrated to:
https://non.existing.url ([https](https://non.existing.url ) result UnknownHostException).
* [ ] http://cloud.spring.io/spring-cloud-static/Dalston.SR4/multi/multi__span_data_as_messages.html (404) with 1 occurrences migrated to:
https://cloud.spring.io/spring-cloud-static/Dalston.SR4/multi/multi__span_data_as_messages.html ([https](https://cloud.spring.io/spring-cloud-static/Dalston.SR4/multi/multi__span_data_as_messages.html ) result 404).
* [ ] http://docssleuth-zipkin-server.cfapps.io/dependency (404) with 4 occurrences migrated to:
https://docssleuth-zipkin-server.cfapps.io/dependency ([https](https://docssleuth-zipkin-server.cfapps.io/dependency ) result 404).
* [ ] http://www.erg.abdn.ac.uk/~gerrit/dccp/notes/ccid2/rto_estimator/ (301) with 1 occurrences migrated to:
https://erg.abdn.ac.uk/~gerrit/dccp/notes/ccid2/rto_estimator/ ([https](https://www.erg.abdn.ac.uk/~gerrit/dccp/notes/ccid2/rto_estimator/ ) result 404).
* [ ] http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to:
https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ) result 404).
* [ ] http://zipkin.io/pages/existing_instrumentations.html (301) with 1 occurrences migrated to:
https://zipkin.io/pages/existing_instrumentations.html ([https](https://zipkin.io/pages/existing_instrumentations.html ) result 404).
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* [ ] http://asciidoctor.org with 1 occurrences migrated to:
https://asciidoctor.org ([https](https://asciidoctor.org ) result 200).
* [ ] http://bugs.jquery.com/ticket/1450 with 2 occurrences migrated to:
https://bugs.jquery.com/ticket/1450 ([https](https://bugs.jquery.com/ticket/1450 ) result 200).
* [ ] http://bugs.jquery.com/ticket/5280 with 1 occurrences migrated to:
https://bugs.jquery.com/ticket/5280 ([https](https://bugs.jquery.com/ticket/5280 ) result 200).
* [ ] http://cloud.spring.io with 2 occurrences migrated to:
https://cloud.spring.io ([https](https://cloud.spring.io ) result 200).
* [ ] http://docs.spring.io/spring-hateoas/docs/current/reference/html/ with 1 occurrences migrated to:
https://docs.spring.io/spring-hateoas/docs/current/reference/html/ ([https](https://docs.spring.io/spring-hateoas/docs/current/reference/html/ ) result 200).
* [ ] http://docssleuth-service1.cfapps.io/start with 1 occurrences migrated to:
https://docssleuth-service1.cfapps.io/start ([https](https://docssleuth-service1.cfapps.io/start ) result 200).
* [ ] http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters with 1 occurrences migrated to:
https://en.wikipedia.org/wiki/Mapping_of_Unicode_characters ([https](https://en.wikipedia.org/wiki/Mapping_of_Unicode_characters ) result 200).
* [ ] http://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/ with 1 occurrences migrated to:
https://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/ ([https](https://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/ ) result 200).
* [ ] http://opentracing.io/ with 3 occurrences migrated to:
https://opentracing.io/ ([https](https://opentracing.io/ ) result 200).
* [ ] http://projects.spring.io/spring-integration/ with 1 occurrences migrated to:
https://projects.spring.io/spring-integration/ ([https](https://projects.spring.io/spring-integration/ ) result 200).
* [ ] http://stackoverflow.com/questions/12817946/generate-a-random-bitset-with-n-1s with 1 occurrences migrated to:
https://stackoverflow.com/questions/12817946/generate-a-random-bitset-with-n-1s ([https](https://stackoverflow.com/questions/12817946/generate-a-random-bitset-with-n-1s ) result 200).
* [ ] http://stackoverflow.com/questions/1641507/detect-browser-support-for-cross-domain-xmlhttprequests with 1 occurrences migrated to:
https://stackoverflow.com/questions/1641507/detect-browser-support-for-cross-domain-xmlhttprequests ([https](https://stackoverflow.com/questions/1641507/detect-browser-support-for-cross-domain-xmlhttprequests ) result 200).
* [ ] http://stevesouders.com/misc/test-postmessage.php with 2 occurrences migrated to:
https://stevesouders.com/misc/test-postmessage.php ([https](https://stevesouders.com/misc/test-postmessage.php ) result 200).
* [ ] http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 2 occurrences migrated to:
https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ) result 200).
* [ ] http://wiki.whatwg.org/wiki/Dynamic_Script_Execution_Order with 1 occurrences migrated to:
https://wiki.whatwg.org/wiki/Dynamic_Script_Execution_Order ([https](https://wiki.whatwg.org/wiki/Dynamic_Script_Execution_Order ) result 200).
* [ ] http://www.splunk.com/ with 2 occurrences migrated to:
https://www.splunk.com/ ([https](https://www.splunk.com/ ) result 200).
* [ ] http://www.w3.org/TR/DOM-Level-2-Events/events.html with 1 occurrences migrated to:
https://www.w3.org/TR/DOM-Level-2-Events/events.html ([https](https://www.w3.org/TR/DOM-Level-2-Events/events.html ) result 200).
* [ ] http://htrace.incubator.apache.org/ with 2 occurrences migrated to:
https://htrace.incubator.apache.org/ ([https](https://htrace.incubator.apache.org/ ) result 301).
* [ ] http://msdn.microsoft.com/en-us/library/cc197015 with 1 occurrences migrated to:
https://msdn.microsoft.com/en-us/library/cc197015 ([https](https://msdn.microsoft.com/en-us/library/cc197015 ) result 301).
* [ ] http://msdn.microsoft.com/en-us/library/cc288060 with 1 occurrences migrated to:
https://msdn.microsoft.com/en-us/library/cc288060 ([https](https://msdn.microsoft.com/en-us/library/cc288060 ) result 301).
* [ ] http://plugins.jetbrains.com/plugin/6546 with 2 occurrences migrated to:
https://plugins.jetbrains.com/plugin/6546 ([https](https://plugins.jetbrains.com/plugin/6546 ) result 301).
* [ ] http://research.google.com/pubs/pub36356.html with 5 occurrences migrated to:
https://research.google.com/pubs/pub36356.html ([https](https://research.google.com/pubs/pub36356.html ) result 301).
* [ ] http://docsbrewing-zipkin-server.cfapps.io/ with 1 occurrences migrated to:
https://docsbrewing-zipkin-server.cfapps.io/ ([https](https://docsbrewing-zipkin-server.cfapps.io/ ) result 302).
* [ ] http://docssleuth-zipkin-server.cfapps.io/ with 5 occurrences migrated to:
https://docssleuth-zipkin-server.cfapps.io/ ([https](https://docssleuth-zipkin-server.cfapps.io/ ) result 302).
* [ ] http://eclipse.org with 1 occurrences migrated to:
https://eclipse.org ([https](https://eclipse.org ) result 302).
* [ ] http://eclipse.org/m2e/ with 2 occurrences migrated to:
https://eclipse.org/m2e/ ([https](https://eclipse.org/m2e/ ) result 302).
* [ ] http://www.springsource.com/developer/sts with 1 occurrences migrated to:
https://www.springsource.com/developer/sts ([https](https://www.springsource.com/developer/sts ) result 302).
# Ignored
These URLs were intentionally ignored.
* http://127.0.0.1 with 1 occurrences
* http://abc with 1 occurrences
* http://asdasd:111/asd with 1 occurrences
* http://exceptionservice/ with 2 occurrences
* http://foo with 2 occurrences
* http://foo/ with 1 occurrences
* http://fooservice/ with 1 occurrences
* http://fooservice/nonExistent with 1 occurrences
* http://fooservice/noresponse with 1 occurrences
* http://fooservice/notrace with 9 occurrences
* http://fooservice/traceid with 1 occurrences
* http://localhost with 70 occurrences
* http://localhost/?foo=bar with 4 occurrences
* http://localhost:3379 with 1 occurrences
* http://localhost:3380 with 2 occurrences
* http://localhost:3380/async with 1 occurrences
* http://localhost:3380/call with 1 occurrences
* http://localhost:3381 with 1 occurrences
* http://localhost:80/abc with 1 occurrences
* http://localhost:8080/ with 1 occurrences
* http://localhost:9411 with 1 occurrences
* http://localhost:9411/ with 1 occurrences
* http://localhost:9978 with 1 occurrences
* http://localhost:9978/hello/mikesarver with 1 occurrences
* http://localhost:9987/unknown with 1 occurrences
* http://localhost:9988/sleuth/test-not-ok with 1 occurrences
* http://localhost:9998 with 1 occurrences
* http://localhost:9998/sleuth/test-not-ok with 1 occurrences
* http://localhost:9998/sleuth/test-ok with 1 occurrences
* http://some/address with 1 occurrences
* http://zipkin/ with 1 occurrences
* http://zipkin/call with 1 occurrences
* http://zipkin/hi2 with 1 occurrences
* http://zipkinserver/ with 2 occurrences
2019-03-29 11:22:06 +01:00
Spring Operator
e6c9351118
URL Cleanup
...
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).
# Fixed URLs
## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.
* [ ] http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to:
https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ) result 404).
## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.
* [ ] http://maven.apache.org/xsd/maven-4.0.0.xsd with 16 occurrences migrated to:
https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd ) result 200).
* [ ] http://www.springframework.org/schema/beans/spring-beans.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd ) result 200).
* [ ] http://www.springframework.org/schema/integration/spring-integration.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/integration/spring-integration.xsd ([https](https://www.springframework.org/schema/integration/spring-integration.xsd ) result 200).
* [ ] http://www.springframework.org/schema/task/spring-task.xsd with 1 occurrences migrated to:
https://www.springframework.org/schema/task/spring-task.xsd ([https](https://www.springframework.org/schema/task/spring-task.xsd ) result 200).
# Ignored
These URLs were intentionally ignored.
* http://maven.apache.org/POM/4.0.0 with 32 occurrences
* http://www.springframework.org/schema/beans with 2 occurrences
* http://www.springframework.org/schema/integration with 2 occurrences
* http://www.springframework.org/schema/task with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 17 occurrences
2019-03-26 00:18:18 -05:00
Marcin Grzejszczak
b98c4a8738
Greenwich
2019-03-08 16:45:43 +01:00
buildmaster
3b4dc7b17a
Bumping versions to 2.1.2.BUILD-SNAPSHOT after release
2019-03-05 20:06:52 +00:00
buildmaster
ce39889121
Going back to snapshots
2019-03-05 20:06:51 +00:00
buildmaster
cf138b8dcb
Update SNAPSHOT to 2.1.1.RELEASE
2019-03-05 20:00:58 +00:00
ST-DDT
ebcd73e4be
Also mention the net.devh:grpc-spring-boot-starter library ( #1213 )
...
* Also mention net.devh:grpc-spring-boot-starter
* No documentation, only links
2019-02-19 14:59:01 +01:00
Marcin Grzejszczak
010a46e49c
Added the sagan adoc files
2019-02-15 14:54:57 +01:00
Marcin Grzejszczak
2f7cf78614
Applied checkstyle
2019-02-07 16:41:59 +01:00
Gilles Robert
5fb9177dec
Enhance endpoints handling ( #1201 )
...
* Enhance endpoints handling
* Add conditionalOnBean ServerProperties
* Code review remarks from @shakuzen
* Provide ignoreAutoConfiguredSkipPatterns flag.
* Update documentation related to spring boot actuator and new flag spring.sleuth.web.ignore-auto-configured-skip-patterns.
2019-02-05 15:16:00 +01:00
buildmaster
4b3eae2453
Bumping versions to 2.1.1.BUILD-SNAPSHOT after release
2019-01-22 18:53:51 +00:00
buildmaster
dd96605d34
Going back to snapshots
2019-01-22 18:53:51 +00:00
buildmaster
4829876aec
Update SNAPSHOT to 2.1.0.RELEASE
2019-01-22 18:51:05 +00:00
Tim Ysewyn
8327ecbb4d
Updated documentation
2019-01-16 12:42:37 +01:00
Marcin Grzejszczak
2579e7887d
Added rate limit sampler via a property
...
fixes gh-1162
2019-01-07 10:21:20 +01:00
buildmaster
3dfc4b0be2
Going back to snapshots
2018-12-20 21:28:46 +00:00
buildmaster
d8d469a20d
Update SNAPSHOT to 2.1.0.RC3
2018-12-20 21:27:48 +00:00
chao chang
0708e6cdfb
Corrects the span number description in the sample ( #1171 )
2018-12-20 13:48:53 +01:00
Marcin Grzejszczak
a4138e2167
Added documentation on the Infrastructure bean role; fixes gh-1022
2018-12-19 19:05:26 +01:00
Marcin Grzejszczak
7a3e7e01f5
Polish
2018-12-17 10:59:55 +01:00
Akihito Nakano
d4c4a88716
Fix typo in docs ( #1157 )
...
* Fix typo
* Revert the change applied to root README
* Fix the docs module
* Revert a change of root README
2018-12-15 13:57:03 +01:00
buildmaster
4805480ce5
Going back to snapshots
2018-12-11 22:20:00 +00:00
buildmaster
65c0838cfc
Update SNAPSHOT to 2.1.0.RC2
2018-12-11 22:18:47 +00:00
buildmaster
00922f390c
Going back to snapshots
2018-12-11 18:48:50 +00:00
buildmaster
1a901ac432
Update SNAPSHOT to 2.1.0.RC1
2018-12-11 18:47:57 +00:00