# APM K-Lens

K-Lens is a proprietary APM data analysis tool that provides clues into “what went wrong” by comparing thousands of attributes across span events.

The K-Lens data analysis algorithm checks every attribute of the events in the Heatmap, and then figures out if there are major differences in the values for these attributes between the selection area and baseline. The resulting attribute charts are ranked and charts of higher significance are presented at the top.

## Spotlight: Kloudfuse K-Lens for deep data insights

Watch our feature overview for K-Lens.

AI/ML Features - YouTube

[AI/ML Features](https://www.youtube.com/watch?v=SqaadajUb6s)

Kloudfuse24 subscribers

## Using K-Lens

1. Select a region on the Trace Heatmap that you plan to compare against the baseline (all other events in the Heatmap).

Click your device pointer onto one corner of the region, and drag to the opposite corner before de-selecting.

After you select the region to examine, you get the following options in the menu for selecting further analysis.

- Click **Analyze with K-Lens** to see the comparisons. See [Analyze with K-Lens](https://docs.kloudfuse.com/platform/3.3.6/apm-k-lens/#k-lens).
   - Click **View spans** to see the spans that contribute to the data highlighted on the heatmap. See [View Spans](https://docs.kloudfuse.com/platform/3.3.6/apm-k-lens/#spans).
   - Click **Cancel** to cancel the selection.

## Analyze with K-Lens

After you click [Analyze with K-Lens](https://docs.kloudfuse.com/platform/3.3.6/apm-k-lens/#analyze), Kloudfuse displays the analysis.

It consists of several horizontal bar charts that compare the data selected with the baseline metrics, based on filtered values.

For example, the following K-Lens report highlights the differences for _kf database service hash_, _kf database service name_, _span name_, _service hash_, _service name_, _span type_, _kf platform_, _span status code_, _availability zone_, _db system_, _db name_, _service version_, _peer service_, _server address_, _span kind_, _error_, _kube namespace_, and _sample rate_.

## View Spans

After you click [View Spans](https://docs.kloudfuse.com/platform/3.3.6/apm-k-lens/#view), Kloudfuse displays the spans that contribute to the selected data, as Traces List. See [APM Traces](https://docs.kloudfuse.com/platform/3.3.6/apm-traces/) for information on how to use that interface.

Note that you can change the views with this selection to [Time Series](https://docs.kloudfuse.com/platform/3.3.6/apm-trace-time-series-view/), [Top List](https://docs.kloudfuse.com/platform/3.3.6/apm-trace-top-list-view/), [Table](https://docs.kloudfuse.com/platform/3.3.6/apm-trace-table-view/), [Pie Chart](https://docs.kloudfuse.com/platform/3.3.6/apm-trace-pie-chart-view/), and even [Heatmap](https://docs.kloudfuse.com/platform/3.3.6/apm-trace-heatmap-view/).
