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

55 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.link
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.render
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.action
ui.action.click
ui.react
ui.react.mount
ui.react.render
ui.react.update
ui.vue
ui.svelte
ui.angular
ui.ember
ui.livewire

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

7 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

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

6 operations
OperationDescription
app
ui
navigation
file
serialize
http

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

19 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
view
template
function
function.remix
function.nextjs
serialize
console
file
app