App Analytics can be enabled per APM service and per host. A service on which it is enabled exposes all its Analyzed Spans to Datadog.
Downstream services like databases and cache layers aren’t in the list of available services (as they don’t generate traces on their own), but their information is picked up by the top level services that call them.
In the App Analytics view you can:
When a request hits a service (e.g. webserver, database), the Datadog Agent creates an Analyzed Span. It’s a record of the request including its duration, response code, and any custom metadata. An Analyzed Span is represented by a single span with attached metadata for the handled request. For each service that receives a request, the agent creates an Analyzed Span. If a request runs through a web service, listing service, and database service, the request will generate 3 Analyzed Spans. To reduce the amount of Analyzed Spans generated, explicitly turn on/off any Analyzed Span collection for a specific service.
To start collecting Analyzed Spans, enable App Analytics for your services.
Use the query to control what’s displayed in your App Analytics:
Select the aggregation function for the
Choose to display either the X top or bottom values according to the selected Facet or
Choose the Analytic Timesteps. Changing the global timeframe changes the list of available Timesteps values.
Select a App Analytics visualization type using the Analytic selector.
The following timeseries App Analytics shows: The evolution of the pc99 duration by steps of 5min for each Service
The following Top List App Analytics shows: The top pc99 duration of Service
Visualize the top values from a facet according to a chosen measure (the first measure you choose in the list), and display the value of additional measures for elements appearing in this top. Update search query or drill through logs corresponding to either dimension.
Note: A table visualisation used for one single measure and one single dimension is the same as a toplist, just with a different display.
The following Table Log Analytics shows the evolution of the top Status Codes according to their Throughput, along with the number of unique Client IPs, and over the last 15 minutes:
Select or click on a section of the graph to either zoom in the graph or see the list of traces corresponding to your selection:
Export your App Analytics:
Additional helpful documentation, links, and articles: