Updated adocs

This commit is contained in:
Marcin Grzejszczak
2020-06-04 15:52:32 +02:00
parent 6112b86ab7
commit 0ce00291b6
5 changed files with 51 additions and 44 deletions

View File

@@ -43,8 +43,10 @@ message. Paste that into Zipkin to visualize the entire trace, regardless of
how many services the first request ended up hitting.
[source]
----
backend.log: 2020-04-09 17:45:40.516 ERROR [backend,5e8eeec48b08e26882aba313eb08f0a4,dcc1df555b5777b3,true] 97203 --- [nio-9000-exec-1] o.s.c.s.i.web.ExceptionLoggingFilter : Uncaught exception thrown
frontend.log:2020-04-09 17:45:40.574 ERROR [frontend,5e8eeec48b08e26882aba313eb08f0a4,82aba313eb08f0a4,true] 97192 --- [nio-8081-exec-2] o.s.c.s.i.web.ExceptionLoggingFilter : Uncaught exception thrown
----
Above, you'll notice the trace ID is `5e8eeec48b08e26882aba313eb08f0a4`, for
example. This log configuration was automatically setup by Sleuth.

View File

@@ -13,8 +13,8 @@ If you want both Sleuth and Zipkin, add the `spring-cloud-starter-zipkin` depend
The following example shows how to do so for Maven:
[source,xml,indent=0,subs="verbatim,attributes",role="primary"]
.Maven
[source,xml,indent=0,subs="verbatim,attributes",role="primary"]
----
<dependencyManagement> <1>
<dependencies>
@@ -38,8 +38,8 @@ The following example shows how to do so for Maven:
The following example shows how to do so for Gradle:
[source,groovy,indent=0,subs="verbatim,attributes",role="secondary"]
.Gradle
[source,groovy,indent=0,subs="verbatim,attributes",role="secondary"]
----
dependencyManagement { <1>
imports {
@@ -73,8 +73,8 @@ dependencies.
The following example shows how to do so for Gradle:
[source,xml,indent=0,subs="verbatim,attributes",role="primary"]
.Maven
[source,xml,indent=0,subs="verbatim,attributes",role="primary"]
----
<dependencyManagement> <1>
<dependencies>
@@ -101,8 +101,8 @@ The following example shows how to do so for Gradle:
<2> Add the dependency to `spring-cloud-starter-zipkin`. That way, all nested dependencies get downloaded.
<3> To automatically configure RabbitMQ, add the `spring-rabbit` dependency.
[source,groovy,indent=0,subs="verbatim,attributes",role="secondary"]
.Gradle
[source,groovy,indent=0,subs="verbatim,attributes",role="secondary"]
----
dependencyManagement { <1>
imports {
@@ -162,8 +162,8 @@ The following example shows how to add Sleuth with Maven:
The following example shows how to add Sleuth with Gradle:
[source,groovy,indent=0,subs="verbatim,attributes",role="secondary"]
.Gradle
[source,groovy,indent=0,subs="verbatim,attributes",role="secondary"]
----
dependencyManagement { <1>
imports {

View File

@@ -1016,6 +1016,7 @@ image::https://raw.githubusercontent.com/spring-cloud/spring-cloud-sleuth/{branc
If you want to use https://www.elastic.co/guide/en/logstash/current/index.html[Logstash], the following listing shows the Grok pattern for Logstash:
[source]
----
filter {
# pattern matching logback pattern
grok {
@@ -1028,9 +1029,11 @@ filter {
remove_field => ["timestamp"]
}
}
----
NOTE: If you want to use Grok together with the logs from Cloud Foundry, you have to use the following pattern:
[source]
----
filter {
# pattern matching logback pattern
grok {
@@ -1043,6 +1046,7 @@ filter {
remove_field => ["timestamp"]
}
}
----
=== JSON Logback with Logstash