|
1 | 1 | [role="xpack"] |
2 | 2 | [[spans]] |
3 | | -=== Span timeline |
| 3 | +=== Trace sample timeline |
4 | 4 |
|
5 | | -TIP: A {apm-overview-ref-v}/transaction-spans.html[span] is the duration of a single event. |
6 | | -Spans are automatically captured by APM agents, and you can also define custom spans. |
7 | | -Each span has a type and is defined by a different color in the timeline/waterfall visualization. |
8 | | - |
9 | | -The span timeline visualization is a bird's-eye view of what your application was doing while it was trying to respond to the request that came in. |
| 5 | +The trace sample timeline visualization is a bird's-eye view of what your application was doing while it was trying to respond to a request. |
10 | 6 | This makes it useful for visualizing where the selected transaction spent most of its time. |
11 | 7 |
|
12 | 8 | [role="screenshot"] |
13 | 9 | image::apm/images/apm-transaction-sample.png[Example of distributed trace colors in the APM app in Kibana] |
14 | 10 |
|
15 | 11 | View a span in detail by clicking on it in the timeline waterfall. |
16 | | -When you click on an SQL Select database query, |
| 12 | +For example, when you click on an SQL Select database query, |
17 | 13 | the information displayed includes the actual SQL that was executed, how long it took, |
18 | 14 | and the percentage of the trace's total time. |
19 | 15 | You also get a stack trace, which shows the SQL query in your code. |
20 | 16 | Finally, APM knows which files are your code and which are just modules or libraries that you've installed. |
21 | 17 | These library frames will be minimized by default in order to show you the most relevant stack trace. |
22 | 18 |
|
| 19 | +TIP: A {apm-overview-ref-v}/transaction-spans.html[span] is the duration of a single event. |
| 20 | +Spans are automatically captured by APM agents, and you can also define custom spans. |
| 21 | +Each span has a type and is defined by a different color in the timeline/waterfall visualization. |
| 22 | + |
23 | 23 | [role="screenshot"] |
24 | 24 | image::apm/images/apm-span-detail.png[Example view of a span detail in the APM app in Kibana] |
25 | 25 |
|
26 | | -If your span timeline is colorful, it's indicative of a <<distributed-tracing,distributed trace>>. |
| 26 | +[float] |
| 27 | +[[distributed-tracing]] |
| 28 | +==== Distributed tracing |
| 29 | + |
| 30 | +If your trace sample timeline is colorful, it's indicative of a distributed trace. |
27 | 31 | Services in a distributed trace are separated by color and listed in the order they occur. |
28 | 32 |
|
29 | 33 | [role="screenshot"] |
30 | 34 | image::apm/images/apm-services-trace.png[Example of distributed trace colors in the APM app in Kibana] |
31 | 35 |
|
32 | | -Don't forget; a distributed trace includes more than one transaction. |
| 36 | +As application architectures are shifting from monolithic to more distributed, service-based architectures, |
| 37 | +distributed tracing has become a crucial feature of modern application performance monitoring. |
| 38 | +It allows you to trace requests through your service architecture automatically, and visualize those traces in one single view in the APM app. |
| 39 | +From initial web requests to your front-end service, to queries made to your back-end services, |
| 40 | +this makes finding possible bottlenecks throughout your application much easier and faster. |
| 41 | + |
| 42 | +[role="screenshot"] |
| 43 | +image::apm/images/apm-distributed-tracing.png[Example view of the distributed tracing in APM app in Kibana] |
| 44 | + |
| 45 | +Don't forget; by definition, a distributed trace includes more than one transaction. |
33 | 46 | When viewing these distributed traces in the timeline waterfall, you'll see this image:apm/images/transaction-icon.png[APM icon] icon, |
34 | 47 | which indicates the next transaction in the trace. |
35 | 48 | These transactions can be expanded and viewed in detail by clicking on them. |
36 | 49 |
|
37 | 50 | After exploring these traces, |
38 | 51 | you can return to the full trace by clicking *View full trace*. |
| 52 | + |
| 53 | +TIP: Distributed tracing is supported by all APM agents, and there's no additional configuration needed. |
0 commit comments