Observability Glossary

Span

Linkedin icon
Reddit icon

You can think of a span like a log with a start time and end time within a distributed trace.

For example, if a user makes a request to a web application that then calls a database and an external API, each of these interactions is captured as a separate span. Each span contains details about the operation (the url of the external API or the query ran on the database) as well as the start time and end time of each of the operations. This enables developers to understand the performance and behavior of each individual part of the system.

In modern applications, you'd use OpenTelemetry to instrument your application. With OpenTelemetry, you can automatically instrument common IO operations and add custom spans for your custom business logic. This enables you to visualize the flow of requests and pinpoint any areas that require attention, such as slow database queries or third-party service dependencies.

Explore related concepts
Start resolving issues today.
Without the hassle.