mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
docs: update timeline (#65182)
This commit is contained in:
parent
ecd16dcc71
commit
f5e8f3d3c2
3 changed files with 26 additions and 33 deletions
|
@ -1,38 +1,53 @@
|
|||
[role="xpack"]
|
||||
[[spans]]
|
||||
=== Span timeline
|
||||
=== Trace sample timeline
|
||||
|
||||
TIP: A {apm-overview-ref-v}/transaction-spans.html[span] is the duration of a single event.
|
||||
Spans are automatically captured by APM agents, and you can also define custom spans.
|
||||
Each span has a type and is defined by a different color in the timeline/waterfall visualization.
|
||||
|
||||
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.
|
||||
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.
|
||||
This makes it useful for visualizing where the selected transaction spent most of its time.
|
||||
|
||||
[role="screenshot"]
|
||||
image::apm/images/apm-transaction-sample.png[Example of distributed trace colors in the APM app in Kibana]
|
||||
|
||||
View a span in detail by clicking on it in the timeline waterfall.
|
||||
When you click on an SQL Select database query,
|
||||
For example, when you click on an SQL Select database query,
|
||||
the information displayed includes the actual SQL that was executed, how long it took,
|
||||
and the percentage of the trace's total time.
|
||||
You also get a stack trace, which shows the SQL query in your code.
|
||||
Finally, APM knows which files are your code and which are just modules or libraries that you've installed.
|
||||
These library frames will be minimized by default in order to show you the most relevant stack trace.
|
||||
|
||||
TIP: A {apm-overview-ref-v}/transaction-spans.html[span] is the duration of a single event.
|
||||
Spans are automatically captured by APM agents, and you can also define custom spans.
|
||||
Each span has a type and is defined by a different color in the timeline/waterfall visualization.
|
||||
|
||||
[role="screenshot"]
|
||||
image::apm/images/apm-span-detail.png[Example view of a span detail in the APM app in Kibana]
|
||||
|
||||
If your span timeline is colorful, it's indicative of a <<distributed-tracing,distributed trace>>.
|
||||
[float]
|
||||
[[distributed-tracing]]
|
||||
==== Distributed tracing
|
||||
|
||||
If your trace sample timeline is colorful, it's indicative of a distributed trace.
|
||||
Services in a distributed trace are separated by color and listed in the order they occur.
|
||||
|
||||
[role="screenshot"]
|
||||
image::apm/images/apm-services-trace.png[Example of distributed trace colors in the APM app in Kibana]
|
||||
|
||||
Don't forget; a distributed trace includes more than one transaction.
|
||||
As application architectures are shifting from monolithic to more distributed, service-based architectures,
|
||||
distributed tracing has become a crucial feature of modern application performance monitoring.
|
||||
It allows you to trace requests through your service architecture automatically, and visualize those traces in one single view in the APM app.
|
||||
From initial web requests to your front-end service, to queries made to your back-end services,
|
||||
this makes finding possible bottlenecks throughout your application much easier and faster.
|
||||
|
||||
[role="screenshot"]
|
||||
image::apm/images/apm-distributed-tracing.png[Example view of the distributed tracing in APM app in Kibana]
|
||||
|
||||
Don't forget; by definition, a distributed trace includes more than one transaction.
|
||||
When viewing these distributed traces in the timeline waterfall, you'll see this image:apm/images/transaction-icon.png[APM icon] icon,
|
||||
which indicates the next transaction in the trace.
|
||||
These transactions can be expanded and viewed in detail by clicking on them.
|
||||
|
||||
After exploring these traces,
|
||||
you can return to the full trace by clicking *View full trace*.
|
||||
|
||||
TIP: Distributed tracing is supported by all APM agents, and there's no additional configuration needed.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
TIP: Traces link together related transactions to show an end-to-end performance of how a request was served
|
||||
and which services were part of it.
|
||||
In addition to the Traces overview, you can view your application traces in the <<spans,span timeline waterfall>>.
|
||||
In addition to the Traces overview, you can view your application traces in the <<spans,trace sample timeline waterfall>>.
|
||||
|
||||
The *Traces* overview displays the entry transaction for all traces in your application.
|
||||
If you're using <<distributed-tracing>>, this view is key to finding the critical paths within your application.
|
||||
|
@ -17,25 +17,3 @@ If there's a particular endpoint you're worried about, you can click on it to vi
|
|||
|
||||
[role="screenshot"]
|
||||
image::apm/images/apm-traces.png[Example view of the Traces overview in APM app in Kibana]
|
||||
|
||||
[float]
|
||||
[[distributed-tracing]]
|
||||
==== Distributed tracing
|
||||
|
||||
Elastic APM supports distributed tracing.
|
||||
Distributed tracing is a key feature of modern application performance monitoring as application architectures are shifting from monolithic to more distributed,
|
||||
service-based architectures.
|
||||
|
||||
Distributed tracing allows APM users to automatically trace requests all the way through the service architecture,
|
||||
and visualize those traces in one single view in the APM app.
|
||||
This is accomplished by tracing all of the requests, from the initial web request to your front-end service,
|
||||
to queries made to your back-end services.
|
||||
This makes finding possible bottlenecks throughout your application much easier and faster.
|
||||
|
||||
By definition, a distributed trace includes more than one transaction.
|
||||
You can use the <<spans,span timeline visualization>> to view a waterfall display of all of the transactions from individual services that are connected in a trace.
|
||||
|
||||
[role="screenshot"]
|
||||
image::apm/images/apm-distributed-tracing.png[Example view of the distributed tracing in APM app in Kibana]
|
||||
|
||||
TIP: Distributed tracing is supported by all APM agents, and there's no additional configuration needed.
|
|
@ -95,7 +95,7 @@ It's the requests on the right, the ones taking longer than average, that we pro
|
|||
|
||||
When you select one of these buckets,
|
||||
you're presented with up to ten trace samples.
|
||||
Each sample has a span timeline waterfall that shows what a typical request in that bucket was doing.
|
||||
Each sample has a trace timeline waterfall that shows what a typical request in that bucket was doing.
|
||||
By investigating this timeline waterfall, we can hopefully determine _why_ this request was slow and then implement a fix.
|
||||
|
||||
[role="screenshot"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue