Span Operation Documentation

This page lists known span operations. The operation is a low-cardinality string that describes the category of work a span represents, and is stored in the sentry.op attribute.

Choosing an Operation

Operations are grouped by category (for example database or browser). Within a category, more specific operations use a dotted hierarchy such asui.react.render, where each segment narrows down the kind of work being measured.

Use the most specific operation that accurately describes the span. When no specific operation fits, fall back to the closest broader operation in the same category.

Example

A span measuring a database query sets:

sentry.op = "db.query"

general

3 operations
OperationDescription
markA general point-in-time span indicating an event
functionThe time it took for a set of instructions to execute
measureA user-defined measurement of the duration between two points in time

browser

56 operations
OperationDescription
pageloadA full page load of a web application.
navigationClient-side browser history change in a web application.
navigation.redirectA client-side automatic redirect navigation (e.g. from framework router redirects) triggerign a browser history change.
resourceResource as per Performance Resource Timing. Defaults to resource.other if resource cannot be indentified.
resource.script—
resource.img—
resource.css—
resource.audio—
resource.video—
resource.iframe—
resource.other—
resource.workerLoading of a resource initiated by a worker (e.g. Web Worker or Service Worker).
resource.iconLoading of an icon resource.
resource.frameLoading of a resource initiated by a frame.
resource.objectLoading of a resource initiated by an <object> element.
resource.pingA hyperlink auditing ping request.
resource.trackLoading of a <track> element resource (e.g. subtitles or captions).
browserUsage of browser APIs or functionality
browser.paint—
browser.unload_eventThe unload event phase of a browser navigation.
browser.redirectThe redirect phase of a browser navigation.
browser.dom_content_loaded_eventThe DOMContentLoaded event phase of a browser navigation.
browser.load_eventThe load event phase of a browser navigation.
browser.connectThe connection phase of a browser navigation.
browser.tls_sslThe secure connection (TLS/SSL) phase of a browser navigation.
browser.cacheThe cache lookup / fetch start phase of a browser navigation.
browser.dnsThe DNS domain lookup phase of a browser navigation.
browser.requestThe request phase of a browser navigation.
browser.responseThe response phase of a browser navigation.
uiOperations related to browser UI
ui.taskA task that is taken on the main UI thread. Typically used to indicate to users about things like the Long Tasks API.
ui.resolveLooking up which component a name in a template refers to, before that component renders. Ember does this for every component it renders. The render itself is a separate ui.render span.
ui.renderRendering of a UI component.
ui.mountMounting of a UI component or application (e.g. initial render/bootstrap).
ui.updateUpdating of an already-mounted UI component.
ui.unmountUnmounting/teardown of a UI component.
ui.long_taskA long task on the main UI thread, as reported by the Long Tasks API.
ui.long_animation_frameA long animation frame, as reported by the Long Animation Frames API.
ui.interaction.clickA click interaction measured via Interaction to Next Paint (INP).
ui.interaction.hoverA hover interaction measured via Interaction to Next Paint (INP).
ui.interaction.dragA drag interaction measured via Interaction to Next Paint (INP).
ui.interaction.pressA key press interaction measured via Interaction to Next Paint (INP).
ui.webvital.lcpA Largest Contentful Paint (LCP) web vital measurement.
ui.webvital.clsA Cumulative Layout Shift (CLS) web vital measurement.
ui.actionA user interaction that starts a new trace segment and collects the work it triggers.
ui.action.clickA click that starts a new idle span, collecting work the interaction triggers.
ui.reactDeprecatedLegacy React UI operation. Prefer ui.mount, ui.render, and ui.update.
Use ui.mount, ui.render or ui.update instead, depending on the operation. Framework-specific UI ops are replaced by framework-agnostic ones.
ui.react.mountDeprecatedLegacy React component mount. Prefer ui.mount.
Use ui.mount instead. Framework-specific UI ops are replaced by framework-agnostic ones.
ui.react.renderDeprecatedLegacy React component render. Prefer ui.render.
Use ui.render instead. Framework-specific UI ops are replaced by framework-agnostic ones.
ui.react.updateDeprecatedLegacy React component update. Prefer ui.update.
Use ui.update instead. Framework-specific UI ops are replaced by framework-agnostic ones.
ui.vueDeprecatedLegacy Vue UI operation. Prefer ui.mount, ui.render, ui.update, and ui.unmount.
Use ui.mount, ui.render, ui.update or ui.unmount instead, depending on the operation. Framework-specific UI ops are replaced by framework-agnostic ones.
ui.svelteDeprecatedLegacy Svelte UI operation. Prefer ui.mount and ui.update.
Use ui.mount, ui.render or ui.update instead, depending on the operation. Framework-specific UI ops are replaced by framework-agnostic ones.
ui.angularDeprecatedLegacy Angular UI operation. Prefer general ui or function ops instead.
Use ui.mount instead. Use ui.mount, ui.update or function instead, depending on the operation. Framework-specific UI ops are replaced by framework-agnostic ones.
ui.emberDeprecatedLegacy Ember UI operation. Prefer ui.mount, ui.render, ui.task, and ui.resolve.
Use ui.mount, ui.render, ui.task or ui.resolve instead, depending on the operation. Framework-specific UI ops are replaced by framework-agnostic ones.
ui.livewireDeprecatedLegacy Livewire UI operation. Prefer ui.mount, ui.render, and ui.update.
Use ui.mount, ui.render or ui.update instead, depending on the operation. Framework-specific UI ops are replaced by framework-agnostic ones.

database

6 operations

Database related spans are expected to follow OpenTelemetry's Database semantic conventions when possible.

OperationDescription
db—
db.query—
cache—
cache.get—
cache.put—
cache.remove—

faas

5 operations

Serverless (FAAS)

OperationDescription
http—
grpc—
function.gcp—
function.aws—
function.azure—

gen_ai

12 operations

Operations related to Generative AI interactions

OperationDescription
gen_ai.chatA chat interaction with a generative AI model
gen_ai.execute_toolExecution of a tool or function by a generative AI model
gen_ai.handoffHandoff of control between different AI agents or components
gen_ai.invoke_agentInvocation of an AI agent to perform a task
gen_ai.embeddingsGeneration of embeddings by a generative AI model
gen_ai.generate_contentContent generation by a generative AI model
gen_ai.rerankReranking of documents or results by a generative AI model
gen_ai.evaluateEvaluation of typed questions (e.g., boolean, choice, or score) about a shared state by a generative AI model
gen_ai.create_agentCreation of an AI agent that can later be invoked to perform a task
gen_ai.responsesAn interaction with a generative AI model through a responses API
gen_ai.text_completionA text completion request to a generative AI model
gen_ai.memory.clientA memory store or memory record operation performed by a generative AI agent

mcp

3 operations

Operations related to Model Context Protocol (MCP) interactions

OperationDescription
mcp.serverA request handled by an MCP server (e.g. a tool call, resource read, or prompt request).
mcp.notification.client_to_serverA notification sent from an MCP client to an MCP server.
mcp.notification.server_to_clientA notification sent from an MCP server to an MCP client.

messaging

14 operations

Messaging related spans represent operations on topics in streaming data systems and queues, such as producing and consuming messages in Kafka, RabbitMQ.

OperationDescription
queueA general queue operation.
queue.publishPublishing a message to a queue.
queue.createCreating a queue or a message for later publishing.
queue.receiveReceiving a message from a queue.
queue.processProcessing a message from a queue.
queue.settleSettling a message, e.g. acknowledging or rejecting it.
queue.submit.arqPublishing a message to an arq queue.
queue.task.arqProcessing a message from an arq queue.
queue.submit.celeryPublishing a message to a Celery broker.
queue.task.celeryProcessing a message from a Celery queue.
queue.task.dramatiqProcessing a message from a Dramatiq queue.
queue.submit.hueyPublishing a message to a Huey instance.
queue.task.hueyProcessing a message from a Huey instance.
queue.task.rqProcessing a message from an RQ queue.

mobile

9 operations
OperationDescription
app—
app.update.checkThe time it takes to check for an available over-the-air (OTA) update.
app.update.downloadThe time it takes to download an over-the-air (OTA) update.
uiOperations related to mobile UI.
navigation—
file—
serialize—
http—
turbo_moduleA call from JavaScript into a React Native native module, or an aggregate of such calls.

object

9 operations

Object storage related spans represent operations on object storage systems such as Cloudflare R2, Amazon S3, and compatible services.

OperationDescription
object.getRetrieving an object from an object store.
object.headRetrieving the metadata of an object from an object store.
object.putStoring an object in an object store.
object.deleteDeleting an object from an object store.
object.listListing objects in an object store.
object.upload_partUploading a single part of a multipart upload to an object store.
object.multipart_upload.abortAborting a multipart upload to an object store.
object.multipart_upload.createCreating a multipart upload to an object store.
object.multipart_upload.completeCompleting a multipart upload to an object store.

routing

1 operations

Routing related spans represent work performed by frontend and backend application routers.

OperationDescription
routerA framework-neutral operation for work performed by an application router.

web_server

20 operations
OperationDescription
httpA general point-in-time span indicating an event
http.client—
http.client.streamConsumption of a streaming HTTP client response body
http.server—
websocket—
rpc—
grpc—
graphql—
subprocess—
middleware—
handlerHandling of an incoming request by a web server route handler
view—
template—
function—
function.remixDeprecated
Use function instead. Framework-specific function ops are replaced by framework-agnostic ones.
function.nextjsDeprecated
Use function instead. Framework-specific function ops are replaced by framework-agnostic ones.
serialize—
console—
file—
app—