---
title: Application data types
description: Elastic APM agents capture different types of information from within their instrumented applications. These are known as events, and can be spans, transactions,...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4608/solutions/observability/apm/data-types
products:
  - APM
  - Elastic Cloud Serverless
  - Elastic Observability
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available in 9.0+
---

# Application data types
Elastic APM agents capture different types of information from within their instrumented applications. These are known as events, and can be spans, transactions, traces, errors, or metrics.
Elastic APM helps you see what happens from start to finish when a request is made to an application:
- [**Spans**](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4608/solutions/observability/apm/spans): A span contain information about the execution of a specific code path. They are the building blocks of *transactions* and *traces*.
- [**Transactions**](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4608/solutions/observability/apm/transactions): A transaction describes an event captured by an Elastic APM agent instrumenting a service. A transaction is technically a type of span that has additional attributes associated with it and often contains multiple child *spans*. You can think of transactions as the highest level of work you’re measuring within a service.
- [**Traces**](/elastic/docs-content/pull/4608/solutions/observability/apm/traces#apm-distributed-tracing): A trace is a group of *transactions* and *spans* with a common root. Each trace tracks the entirety of a single request. When a trace travels through multiple services, it is known as a *distributed trace*.

![Diagram illustrating the relationship between spans](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4608/solutions/images/observability-spans-transactions-and-traces.png)

In addition to the building blocks of traces, Elastic APM agents also capture:
- [**Errors**](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4608/solutions/observability/apm/errors): An error is created when something goes wrong with a request to an application. This event contains information to help you determine where and why an error occurred, often including in which *transaction* the error occurred.
- [**Metrics**](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4608/solutions/observability/apm/metrics): Metrics measure the state of a system by gathering information on a regular interval.

Events can contain additional [metadata](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4608/solutions/observability/apm/metadata) which further enriches your data.