Trace Search and Analytics gives you the ability to search all ingested or Indexed Spans using any tag on any span. The spans searched by your query will change depending on whether you are searching Live (all spans ingested in the last 15 minutes, rolling) or Indexed Spans (spans retained for 15 days by your custom filters).
The Datadog app shows a Live indicator next to the time selector whenever you are in Live mode:
All ingested traces are passed through custom retention filters that you can create to determine which spans to index, along with the default intelligent retention filter that retains a diverse set of traces.
Once indexed through a custom retention filter, traces are available for use in Search and Analytics, and they are retained for 15 days.
When indexed through the intelligent retention filter, traces are available for use in Search (not Analytics), and they are retained for 30 days.
The Datadog app shows a ‘Retained traces’ indicator beside the time selector whenever you search indexed spans:
You can customize settings for both Retention and Ingestion to send and keep exactly what data is most relevant to you.
Fine-grained ingestion controls can be set per service instrumented with Datadog APM. See the Ingestion Controls documentation for details. Services that send up to 50 traces per second will send all traces by default. To configure all services to send all of their traffic, set the following environment variable:
After you have instrumented your services and ingested traces, set tag-based Retention filters within the Datadog app so that Datadog retains spans that are relevant to you.
Note: Both ingested and indexed spans may impact your bill. For more information, see the APM Billing page.
When you use Live Search, Datadog displays spans as soon as they are sent by the Datadog Agent and before they have been indexed by your retention filters. All ingested spans are available for the last 15 minutes (rolling window). All spans ingested by Datadog are displayed without any sampling, and this is Tracing without Limits™.
With the APM Live Search you can:
version_idof all tags.
customer_idthat is associated with a problematic child span.
process_idand autocompleting the new process ID as a tag on child spans.
The number of received spans per second is displayed at the top of the traces table. Since a stream of thousands of spans per second is not human readable, high throughput span streams show spans for visual clarity but all spans are still searchable. Use the Live Search query bar filtering features to filter the spans stream and the Pause/Play button at the top right of the screen to pause or resume the stream.
Live Search is the default view on the Traces page, and when you’re viewing retained traces, you can choose the LIVE option in the time range selector to switch to using Live Search for the past 15 minutes of traces.
Note: Selecting any span pauses the stream and displays more details about the selected span in the trace side panel.
A valid query in the search bar displays traces that match your search criteria across all spans. The search syntax is the same in the Live Search views as in the other trace views, but here, your query is matched against all of the ingested traces across any span and any tag, and not just the indexed ones.
Note: You can select only the
top-level spans of the service by changing the selection to the box above the trace table. You can use this feature on high traffic applications to reduce the number of spans displayed and view only the entry point spans of the services. Selecting this box only visually filters the spans shown; they are all still present.
You can also filter on attributes that are not defined as facets. For example, to filter on the
customer.id attribute, there are two options:
Click on the attribute in the trace panel and add it to the search query:
Filter on all spans with a
customer.id attribute by typing “customer.id” in the search query bar:
You can search retained traces in the same way as you do a Live Search. To switch from searching live to retained data, change the time selector to any period of time greater than 15 minutes.
All spans that are indexed by retention filters or legacy App Analytics filters are accessible from search. These spans are kept by Datadog for 15 days after being indexed by a retention filter.
Note: As of October 20, 2020 Tracing without Limits replaced App Analytics as a more flexible way to ingest 100% of your traces and retain the ones important to your business.
For example, if you filter by a tag that appears only on spans that are not indexed by any retention filter, your search will return no results, unlike when using Live Search.
You can customize what spans are retained and at what retention rates. By default, Datadog Intelligent Retention will be applied. To learn more about the default span retention filter and how to create your own additional filters, see the Retention Filters documentation. Go to the Retention Filters page within the Datadog app to create or modify your own filters.
With Live Analytics, you can perform analytics on 100% of your ingested traces for the last 15 minutes, filtering and grouping by any tag on any span. Datadog displays spans as soon as they are sent by the Datadog Agent and before they have been indexed by your retention filters. All ingested spans are available for the last 15 minutes (rolling window). All spans ingested by Datadog are displayed without any sampling, and this is Tracing without Limits™.
Analytics is used to graph requests or errors that correspond to specified criteria, such as:
Errors for the
ShoppingCart##checkout service and endpoint, with a cart value of at least
$100, with the ability to drill directly into traces matching these criteria.
Monitor a canary deployment of a critical application update in real time.
Compare latency across geographic regions scoped to the latest version of your iOS application.
In addition to showing analytics for requests that match your queries, Live Analytics can also show a top list of the most impacted customers, availability zones, or any other tag during an outage or investigation.
With Live Analytics, every tag on every span ingested over the rolling 15 minute window is available for querying.
Note: Exporting to dashboards and monitors is only possible using retained spans.
Retained Analytics is available from the same page as Live Analytics. To switch from using Live data to retained data to perform analytics, change the time selector to any period of time greater than 15 minutes. After this selection, the data will no longer be based on a live feed but the fixed time range selected.
All spans indexed by custom retention filters (not the intelligent retention filter) are available to be searched when using trace analytics. These spans are kept by Datadog for 15 days after being indexed by a retention filter.
You can customize what spans are retained and at what retention rates. By default, Datadog Intelligent Retention will be applied which automatically retains traces with error and latency diversity as well as low-throughput resources. To learn more about the default span retention filter and how to create your own additional filters, see the Retention Filters documentation. Go to the Retention Filters page within the Datadog app to create or modify your own filters.