René's URL Explorer Experiment


Title: Clean up span operations · Issue #22446 · getsentry/sentry-javascript · GitHub

Open Graph Title: Clean up span operations · Issue #22446 · getsentry/sentry-javascript

X Title: Clean up span operations · Issue #22446 · getsentry/sentry-javascript

Description: Description Currently, many of our instrumentations send span ops that are not defined in conventions. This has two reasons: The span op is simply still missing in conventions and needs to be added SDKs sent suboptimal, maybe, too fragme...

Open Graph Description: Description Currently, many of our instrumentations send span ops that are not defined in conventions. This has two reasons: The span op is simply still missing in conventions and needs to be added...

X Description: Description Currently, many of our instrumentations send span ops that are not defined in conventions. This has two reasons: The span op is simply still missing in conventions and needs to be added...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/22446

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clean up span operations","articleBody":"### Description\n\nCurrently, many of our instrumentations send span ops that are not defined in conventions. This has two reasons:\n\n1. The span op is simply still missing in conventions and needs to be added\n2. SDKs sent suboptimal, maybe, too fragmented ops. For example, ops that include the framework or library name (e.g. `middleware.express` or `function.sveltekit`). Ops should be a bit more general than that.\n\nI (okay, mostly my clanker, followed by a manual review) audited our instrumentations and these are the places we should make changes to:\n\n## Add to conventions\n\n\u003c!-- linear:table-colwidths:144,88,88,88,88,88,88,88,88 -->\n| Effort | Priority | Category | Current op(s) | Replacement or conventions action | Registry status | Rationale / other findings | Preserve detail in | Production locations |\n| -- | -- | -- | -- | -- | -- | -- | -- | -- |\n| XS | High | Routing | `router` | Add generic `router` to conventions | Missing | This is the common framework-neutral replacement target for frontend and backend router spans. Router work is distinct from both navigation roots and generic middleware. | `ui.framework`; `navigation.phase`; `code.namespace` or framework; `router.name`; route attributes | `packages/angular/src/tracing.ts`  \u003cbr>`packages/sveltekit/src/client/svelte4BrowserTracing.ts`  \u003cbr>`packages/sveltekit/src/client/svelte5BrowserTracing.ts`  \u003cbr>`packages/ember/addon/utils/instrumentEmberAppInstanceForPerformance.ts`  \u003cbr>`packages/core/src/integrations/express/patch-layer.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/express/instrumentation.ts`  \u003cbr>`packages/node/src/integrations/tracing/koa/vendored/instrumentation.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/koa.ts`  \u003cbr>`packages/node/src/integrations/tracing/hapi/vendored/instrumentation.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/hapi-utils.ts` |\n| XS | High | UI | `ui.interaction.click\\|hover\\|drag\\|press` | Keep `ui.interaction.*` and add all four leaves to conventions | Missing | Event Timing and INP interaction spans remain distinct from `ui.action` roots. Register click, hover, drag, and press as the finite interaction taxonomy. | Keep DOM event type and INP metric identity as attributes | `packages/browser-utils/src/metrics/browserMetrics.ts`  \u003cbr>`packages/browser-utils/src/metrics/inp.ts`  \u003cbr>`packages/browser-utils/src/metrics/webVitalSpans.ts`  \u003cbr>`packages/browser/src/tracing/browserTracingIntegration.ts` |\n| XS | High | UI | `ui.long-task / ui.long-animation-frame` | Keep both operations and add them to conventions | Missing; `ui.task` is not equivalent | Long Task and Long Animation Frame are distinct browser performance APIs. The generic `ui.task` operation is not a semantic replacement. | `browser.performance.entry_type=long-task\\|long-animation-frame` | `packages/browser-utils/src/metrics/browserMetrics.ts` |\n| XS | Medium | Browser | `browser.${timingPhase}` | Keep the browser timing-phase ops and add them to conventions | Only `browser` is currently registered | Current finite values include `browser.unloadEvent`, `redirect`, `domContentLoadedEvent`, `loadEvent`, `connect`, `TLS/SSL`, `cache`, `DNS`, `request`, and `response`. These phases remain useful as distinct operations. | Keep `browser.performance.phase` as complementary detail | `packages/browser-utils/src/metrics/browserMetrics.ts` |\n| XS | Medium | Browser | `measure` | Keep `measure` and add it to conventions | Missing | `PerformanceMeasure` is a distinct, fixed, useful category. | Keep the `PerformanceEntry` name in the span name | `packages/browser-utils/src/metrics/browserMetrics.ts` |\n| XS | Medium | Browser | `resource.${initiatorType}` | Keep initiator-type leaves, add them to conventions, and retain `resource.other` as fallback | Partially registered | Register the browser-standard initiator types, including currently undocumented values such as `worker`, `icon`, `frame`, `object`, `ping`, or `track`. Values outside the recognized browser set must still map to `resource.other`. | `resource.initiator_type` | `packages/browser-utils/src/metrics/browserMetrics.ts` |\n| XS | Medium | HTTP | `navigation.redirect` | Keep `navigation.redirect` and add it to conventions | Missing | Redirect timing is a stable navigation category worth retaining as its own operation. | `navigation.type=redirect` | `packages/browser/src/tracing/browserTracingIntegration.ts` |\n| XS | Medium | Storage | `object.get\\|head\\|put\\|delete\\|list\\|upload_part\\|multipart_upload.abort\\|create\\|complete` | Keep `object.*` and add an object-storage category to conventions | Missing | Unlike framework suffixes, these are a finite, provider-neutral API taxonomy for a domain not represented by current conventions. If a smaller taxonomy is preferred, normalize to `object.read/write/delete` before registration. | cloud provider and bucket/object identity remain attributes | `packages/cloudflare/src/instrumentations/worker/instrumentR2.ts` |\n| XS | Medium | UI | `ui.mount / ui.update / ui.unmount` | Add `ui.mount`, `ui.update`, and `ui.unmount` to conventions; `ui.render` already exists | Generic lifecycle leaves are incomplete | These are framework-neutral replacement targets for equivalent React, Vue, and Svelte lifecycle work. | `ui.framework`; `ui.component_name`; `ui.lifecycle_phase` | `packages/react/src/profiler.tsx`  \u003cbr>`packages/vue/src/tracing.ts`  \u003cbr>`packages/svelte/src/performance.ts` |\n| XS | Medium | UI | `ui.webvital.lcp / ui.webvital.cls` | Keep and add both to conventions | Missing | These are fixed, cross-framework browser concepts. They are better convention candidates than framework-specific lifecycle leaves. | `web_vital.name` and measurement value remain authoritative | `packages/browser-utils/src/metrics/lcp.ts`  \u003cbr>`packages/browser-utils/src/metrics/cls.ts`  \u003cbr>`packages/browser-utils/src/metrics/webVitalSpans.ts` |\n| XL | High | Gen AI | `gen_ai.embeddings / gen_ai.generate_content / gen_ai.rerank` | `embeddings / generate_content / rerank` | Missing | These are fixed, provider-neutral, semantically distinct model operations. Add their unprefixed forms to conventions, then migrate SDK emission consistently. | `gen_ai.operation.name` and `gen_ai.operation.type` | `packages/core/src/tracing/langchain/embeddings.ts`  \u003cbr>`packages/core/src/tracing/openai/index.ts`  \u003cbr>`packages/core/src/tracing/google-genai/index.ts`  \u003cbr>`packages/core/src/tracing/workers-ai/index.ts`  \u003cbr>`packages/core/src/tracing/vercel-ai/index.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/openai.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/google-genai.ts`  \u003cbr>`packages/server-utils/src/vercel-ai/vercel-ai-dc-subscriber.ts` |\n\n## Replace with another op\n\n> **Note:** The additive \"gap\" rows — adding a `sentry.op` to spans that currently emit none, which is **not breaking** — were split out into getsentry/sentry-javascript#23138 (rate-limit, DO WebSocket, DataLoader `prime`/`clear`/`clearAll`, GraphQL, generic-pool, Effect). The row numbering below therefore skips 21–23.\n\n\u003c!-- linear:table-colwidths:200,200,200,200,200,200,200,200,200,200 -->\n| Row # | Effort | Priority | Category | Current op(s) | Replacement or conventions action | Registry status | Rationale / other findings | Preserve detail in | Production locations |\n| -- | -- | -- | -- | -- | -- | -- | -- | -- | -- |\n| 1 | S | High | FaaS | `http.request (Firebase Functions)` | `function.gcp` | `http.request` missing | The wrapper instruments all Firebase function trigger types, not only HTTP. A fixed `http.request` op is semantically wrong. | `faas.trigger` already exists; keep `faas.provider=firebase` | `packages/node/src/integrations/tracing/firebase/otel/patches/functions.ts` |\n| 2 | S | High | HTTP | `http.client.${serviceIdentifier}` | `http.client` | Dynamic suffix missing | Service identity belongs in attributes; endpoint-derived suffixes fragment grouping and can be high-cardinality. | `rpc.service` or `server.address / cloud.service.name` | `packages/google-cloud-serverless/src/integrations/google-cloud-http.ts` |\n| 3 | S | High | HTTP | `http.client.prefetch / http.server.prefetch` | `http.client / http.server` | Missing; base ops exist | OTel inference fabricates unregistered suffixes. Preserve direction and move prefetch to data. | `sentry.http.prefetch=true` | `packages/opentelemetry/src/utils/parseSpanDescription.ts` |\n| 4 | S | High | Messaging | `faas.queue` plus `sentry.op=queue.process` on one span | `queue.process` only | `queue.process` exact; `faas.queue` missing | Cloudflare passes conflicting values. The `sentry.op` attribute wins, so `faas.queue` is effectively dead and should be removed. | — | `packages/cloudflare/src/instrumentations/worker/instrumentQueue.ts` |\n| 5 | S | High | RPC | `grpc.${serviceIdentifier}` | `grpc` | Dynamic suffix missing | Service identity can be high-cardinality and already has standard RPC attributes. | `rpc.service`; `rpc.method` | `packages/google-cloud-serverless/src/integrations/google-cloud-grpc.ts` |\n| 6 | S | High | UI | `ui.angular.init / ui.angular.${methodKey}` | `ui.mount` for init; `function` for `TraceMethod` | Parent `ui.angular` exists | The method-key suffix is user-controlled and unbounded. Component initialization is a mount; arbitrary decorated methods are functions. | `ui.framework=angular`; `code.function.name` | `packages/angular/src/tracing.ts` |\n| 7 | S | High | UI | `ui.ember.route.before_model\\|model\\|after_model\\|setup_controller` | `function` | Missing | These are route-hook functions. The hook name is already available and should not be encoded in `sentry.op`. | `code.function.name`; `ember.route.hook` | `packages/ember/addon/index.ts` |\n| 8 | S | High | UI | `ui.ember.runloop.${queue}` | `ui.task` | Missing; `ui.task` exists | Queue values are phase details and Ember can be configured with custom queues. | `ui.framework=ember`; `ember.runloop.queue` | `packages/ember/addon/utils/instrumentEmberGlobals.ts` |\n| 9 | S | Medium | Browser | `paint` | `browser.paint` | `browser.paint` exists | Rename the raw `paint` operation to the registered browser-specific operation. | Keep the `PerformanceEntry` name in the span name | `packages/browser-utils/src/metrics/browserMetrics.ts` |\n| 10 | S | Medium | FaaS | `function.aws.lambda` | `function.aws` | `function.aws` exists | Lambda is already implied by provider/runtime attributes; use the registered provider-level operation. | `faas.name`; `cloud.provider=aws`; `cloud.platform=aws_lambda` | `packages/aws-serverless/src/requestSpanOptions.ts` |\n| 11 | S | Medium | HTTP | `http.client.stream` | `http.client` | Missing; parent exists | Streaming changes response behavior but not the HTTP operation category. | `http.response.body.streaming=true` | `packages/browser/src/integrations/fetchStreamPerformance.ts` |\n| 12 | S | Medium | UI | `ui.ember.component.render / component.definition / init` | `ui.render / function / ui.mount` | Only parent `ui.ember` exists | Map render and initialization to cross-framework lifecycle ops. Component definition lookup is generic function work. | `ui.framework=ember`; `ui.component_name`; `code.function.name` | `packages/ember/addon/utils/instrumentEmberGlobals.ts` |\n| 13 | M | High | Cache | `cache.has_item\\|get_item\\|get_item_raw\\|get_items\\|get_keys\\|set_item\\|set_item_raw\\|set_items\\|remove_item\\|clear` | `cache.get / cache.put / cache.remove` | Only target ops exist | This is the exact over-granularity the cache conventions avoid. Map has/get/list to get; set variants to put; remove/clear to remove. | `db.operation.name` already preserves the unstorage method | `packages/nuxt/src/runtime/utils/instrumentStorage.ts`  \u003cbr>`packages/nitro/src/runtime/hooks/captureStorageEvents.ts` |\n| 14 | M | High | Database | `db.redis / db.redis.connect` | `db.query` for commands; `db` for connect | Missing; `db` and `db.query` exist | The datastore belongs in `db.system.name`. Library/system-specific op leaves are redundant. | `db.system.name=redis`; `db.operation.name` | `packages/server-utils/src/redis/redis-dc-subscriber.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/redis.ts` |\n| 15 | M | High | FaaS | `faas.cron / faas.email / function.step.do` | `function` | Missing | Cloudflare trigger/workflow phase belongs in attributes. Do not add a new op per trigger. | `faas.trigger=timer\\|email`; `code.function.name`; `workflow.step.name` | `packages/cloudflare/src/instrumentations/worker/instrumentScheduled.ts`  \u003cbr>`packages/cloudflare/src/instrumentations/worker/instrumentEmail.ts`  \u003cbr>`packages/cloudflare/src/workflows.ts` |\n| 16 | M | High | FaaS | `faas.trigger.toString() inferred as op` | Infer `function.\u003cprovider>`, `http.server`, or `queue.process` from semantic evidence | Arbitrary values | OTel inference currently promotes an attribute value directly into `sentry.op`. Custom trigger strings can create unbounded ops. | Retain `faas.trigger` as data; never use it verbatim as op | `packages/opentelemetry/src/utils/parseSpanDescription.ts` |\n| 17 | M | High | Gen AI | `rpc on AWS Bedrock inference spans` | `chat` or `generate_content` | `rpc` exists but is semantically wrong here | Bedrock adds GenAI attributes but inherits the generic AWS SDK `rpc` op. Select the GenAI operation from the Bedrock request type. | — | `packages/server-utils/src/integrations/tracing-channel/aws-sdk/index.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/aws-sdk/services/bedrock-runtime.ts` |\n| 18 | M | High | Middleware | `app_creation.nestjs / request_context.nestjs / event.nestjs / plugin.hapi` | `function` | Missing | These represent executable functions or setup work. Keep lifecycle/event/plugin identity in attributes. | `code.function.name`; `nestjs.type`; `hapi.type`; `event.name` | `packages/nestjs/src/integrations/wrap-route.ts`  \u003cbr>`packages/nestjs/src/integrations/helpers.ts`  \u003cbr>`packages/node/src/integrations/tracing/hapi/vendored/instrumentation.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/hapi-utils.ts` |\n| 19 | M | High | RPC | `rpc.server / mcp.server / mcp.notification.client_to_server\\|server_to_client` | `rpc` | Only `rpc` exists | MCP is JSON-RPC and tRPC is RPC. Direction, method, notification kind, and protocol belong in attributes rather than op suffixes. | `rpc.system=mcp\\|trpc`; `rpc.method`; `jsonrpc.*`; messaging direction | `packages/core/src/trpc.ts`  \u003cbr>`packages/core/src/integrations/mcp-server/spans.ts`  \u003cbr>`packages/core/src/integrations/mcp-server/attributes.ts` |\n| 20 | M | Medium | FaaS | `function.gcp.http / event / cloud_event` | `function.gcp` | `function.gcp` exists | Trigger type belongs in `faas.trigger`. The existing suffixes split one provider category. | `faas.trigger` | `packages/google-cloud-serverless/src/gcpfunction/http.ts`  \u003cbr>`packages/google-cloud-serverless/src/gcpfunction/events.ts`  \u003cbr>`packages/google-cloud-serverless/src/gcpfunction/cloud_events.ts` |\n| 24 | L | High | Gen AI | `gen_ai.create_agent / gen_ai.models / gen_ai.unknown / ai.run` | `function` for create/models/unknown fallback; map `ai.run` to a known AI op when evidence exists | Missing | Agent compilation and model metadata calls are not inference operations. Unknown strings should not become conventions. Vercel AI's fallback should use an explicit mapping or a generic `function` op. | `gen_ai.operation.name`; `code.function.name`; retain provider SDK method | `packages/core/src/tracing/langgraph/index.ts`  \u003cbr>`packages/core/src/tracing/anthropic-ai/index.ts`  \u003cbr>`packages/core/src/tracing/openai/index.ts`  \u003cbr>`packages/core/src/tracing/vercel-ai/index.ts` |\n| 25 | L | High | Messaging | `message / message.produce / message.consume` | `queue.publish / queue.receive / queue.process` | `message*` missing; `queue.*` exists | Kafka, AMQP, and Deno use a parallel non-convention taxonomy. Use `messaging.operation.type` to distinguish publish, receive, and process. Deno must not infer all ops from `SpanKind` alone. | `messaging.system`; `messaging.operation.type` | `packages/server-utils/src/integrations/tracing-channel/kafkajs/spans.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/amqplib.ts`  \u003cbr>`packages/opentelemetry/src/utils/parseSpanDescription.ts`  \u003cbr>`packages/deno/src/opentelemetry/tracer.ts` |\n| 26 | L | High | Middleware | `request_handler.\u003clibrary> / handler.nestjs / hono.request` | `function`; use `http.server` only for a true inbound/internal HTTP boundary | Missing | Terminal framework handlers are functions, not new op categories. Hono `app.request()` is an in-process HTTP dispatch and should use `http.server` with HTTP attributes. | `code.function.name`; framework handler type; HTTP attributes for Hono dispatch | `packages/core/src/integrations/express/patch-layer.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/express/instrumentation.ts`  \u003cbr>`packages/node/src/integrations/tracing/connect/vendored/instrumentation.ts`  \u003cbr>`packages/node/src/integrations/tracing/hono/index.ts`  \u003cbr>`packages/node/src/integrations/tracing/fastify/v3/instrumentation.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/fastify/instrumentation.ts`  \u003cbr>`packages/elysia/src/withElysia.ts`  \u003cbr>`packages/nestjs/src/integrations/wrap-route.ts`  \u003cbr>`packages/hono/src/shared/patchAppRequest.ts` |\n| 27 | L | High | Middleware | `router.express / router.koa / router.hapi` | `router` (conventions addition tracked in the first table) | `router` is currently missing | Backend router layers should share one framework-neutral operation. They are semantically distinct from generic middleware. | `code.namespace` or framework; `router.name`; route attributes | `packages/core/src/integrations/express/patch-layer.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/express/instrumentation.ts`  \u003cbr>`packages/node/src/integrations/tracing/koa/vendored/instrumentation.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/koa.ts`  \u003cbr>`packages/node/src/integrations/tracing/hapi/vendored/instrumentation.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/hapi-utils.ts` |\n| 28 | L | Medium | UI | `ui.angular.routing / ui.sveltekit.routing / ui.ember.transition` | `router` (conventions addition tracked in the first table) | `router` must be added to conventions | All three measure router execution. Collapse framework identity while keeping router work distinct from the broader `navigation` root. | `ui.framework`; `navigation.phase` | `packages/angular/src/tracing.ts`  \u003cbr>`packages/sveltekit/src/client/svelte4BrowserTracing.ts`  \u003cbr>`packages/sveltekit/src/client/svelte5BrowserTracing.ts`  \u003cbr>`packages/ember/addon/utils/instrumentEmberAppInstanceForPerformance.ts` |\n| 29 | L | Medium | UI | `ui.react.* / ui.vue.* / ui.svelte.* lifecycle ops` | `ui.mount / ui.render / ui.update / ui.unmount` (missing generic leaves tracked in the first table) | React leaves exist; generic leaves are incomplete | Preferred cleanup: normalize equivalent lifecycle work across frameworks. Current values include React mount/render/update; Vue render/activate/create/unmount/destroy/mount/update; Svelte init/update. Keeping React-specific leaves while collapsing other frameworks would preserve an arbitrary asymmetry. | `ui.framework`; `ui.component_name`; `ui.lifecycle_phase` | `packages/react/src/profiler.tsx`  \u003cbr>`packages/vue/src/tracing.ts`  \u003cbr>`packages/svelte/src/performance.ts` |\n| 30 | XL | High | Framework functions | `function.\u003cframework>(.\u003cphase>) and loader.remix / action.remix` | `function` | `function` exists; `function.nextjs/remix` are legacy leaves | Collapse all framework and phase suffixes. This also resolves Remix's three competing loader/action taxonomies. Includes Next.js, Remix, React Router client/server, SvelteKit client/server, SolidStart, TanStack Start, and Cloudflare workflow steps. | `code.function.name`; `code.namespace`; framework-specific phase/type attributes | `packages/nextjs/src/common/utils/tracingUtils.ts`  \u003cbr>`packages/nextjs/src/common/withServerActionInstrumentation.ts`  \u003cbr>`packages/remix/src/server/instrumentServer.ts`  \u003cbr>`packages/remix/src/server/integrations/tracing-channel.ts`  \u003cbr>`packages/remix/src/server/integrations/opentelemetry.ts`  \u003cbr>`packages/react-router/src/server/createServerInstrumentation.ts`  \u003cbr>`packages/react-router/src/server/wrapServerLoader.ts`  \u003cbr>`packages/react-router/src/server/wrapServerAction.ts`  \u003cbr>`packages/react-router/src/server/instrumentation/reactRouter.ts`  \u003cbr>`packages/react-router/src/server/instrumentation/util.ts`  \u003cbr>`packages/react-router/src/client/createClientInstrumentation.ts`  \u003cbr>`packages/react-router/src/client/hydratedRouter.ts`  \u003cbr>`packages/sveltekit/src/client/load.ts`  \u003cbr>`packages/sveltekit/src/server-common/load.ts`  \u003cbr>`packages/sveltekit/src/server-common/serverRoute.ts`  \u003cbr>`packages/sveltekit/src/server-common/integrations/svelteKitSpans.ts`  \u003cbr>`packages/solidstart/src/server/withServerActionInstrumentation.ts`  \u003cbr>`packages/tanstackstart-react/src/server/wrapFetchWithSentry.ts`  \u003cbr>`packages/cloudflare/src/workflows.ts` |\n| 31 | XL | High | Gen AI | `gen_ai.chat / gen_ai.execute_tool / gen_ai.invoke_agent` | `chat / execute_tool / invoke_agent` | Registry values are unprefixed | The SDK and source-of-truth registry disagree. Migrate to the exact convention values, or explicitly change the registry—but do not leave both. Before migration, replace SDK internals which identify AI spans via `op.startsWith('gen_ai.')` with `gen_ai.operation.type/name`. | `gen_ai.operation.name` and `gen_ai.operation.type` | `packages/core/src/tracing/langchain/index.ts`  \u003cbr>`packages/core/src/tracing/langgraph/index.ts`  \u003cbr>`packages/core/src/tracing/langgraph/utils.ts`  \u003cbr>`packages/core/src/tracing/openai/index.ts`  \u003cbr>`packages/core/src/tracing/anthropic-ai/index.ts`  \u003cbr>`packages/core/src/tracing/google-genai/index.ts`  \u003cbr>`packages/core/src/tracing/workers-ai/index.ts`  \u003cbr>`packages/core/src/tracing/vercel-ai/index.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/openai.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/anthropic.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/google-genai.ts`  \u003cbr>`packages/server-utils/src/vercel-ai/vercel-ai-dc-subscriber.ts` |\n| 32 | XL | High | Middleware | `middleware.\u003clibrary> / hook.fastify / http.server.middleware` | `middleware` | `middleware` exists | Collapse framework identity for middleware and request-pipeline hooks. Router layers are handled separately as `router`. | `code.namespace` or framework; `middleware.type`; `middleware.name` | `packages/core/src/integrations/express/patch-layer.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/express/instrumentation.ts`  \u003cbr>`packages/node/src/integrations/tracing/connect/vendored/instrumentation.ts`  \u003cbr>`packages/node/src/integrations/tracing/koa/vendored/instrumentation.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/koa.ts`  \u003cbr>`packages/node/src/integrations/tracing/hapi/vendored/instrumentation.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/hapi-utils.ts`  \u003cbr>`packages/node/src/integrations/tracing/fastify/v3/instrumentation.ts`  \u003cbr>`packages/server-utils/src/integrations/tracing-channel/fastify/instrumentation.ts`  \u003cbr>`packages/node/src/integrations/tracing/hono/index.ts`  \u003cbr>`packages/hono/src/shared/wrapMiddlewareSpan.ts`  \u003cbr>`packages/elysia/src/withElysia.ts`  \u003cbr>`packages/nestjs/src/integrations/helpers.ts`  \u003cbr>`packages/nuxt/src/runtime/hooks/wrapMiddlewareHandler.ts`  \u003cbr>`packages/nitro/src/runtime/hooks/captureTracingEvents.ts`  \u003cbr>`packages/tanstackstart-react/src/server/utils.ts`  \u003cbr>`packages/nextjs/src/common/wrapMiddlewareWithSentry.ts`  \u003cbr>`packages/nextjs/src/common/enhanceMiddlewareRootSpan.ts`  \u003cbr>`packages/nextjs/src/server/enhanceHandleRequestRootSpan.ts`  \u003cbr>`packages/nextjs/src/edge/index.ts` |\n","author":{"url":"https://github.com/Lms24","@type":"Person","name":"Lms24"},"datePublished":"2026-07-21T16:25:23Z","url":"https://github.com/getsentry/sentry-javascript/issues/22446"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:04005ce8-f398-c209-f04b-c2b8b1cbb297
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBBDE:2A3275:7132E7:9F1A9C:6B044C8F
html-safe-nonce6600ce36b93b58df0bd568a246c2da0947379833b1b8b643ba52d1631523a096
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkRFOjJBMzI3NTo3MTMyRTc6OUYxQTlDOjZCMDQ0QzhGIiwidmlzaXRvcl9pZCI6IjU1NTExOTYwMDcyNTUyNjQzOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdcc4091ae2a727f1109b9f2154088921e3a18dc9894fbe783d13724f717cb083
hovercard-subject-tagissue:4940966586
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/22446/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3c30a5ce795447f5e8a6ade34345801a8c19ace82f6f9aa6f883f71851c24b47/getsentry/sentry-javascript/issues/22446
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c30a5ce795447f5e8a6ade34345801a8c19ace82f6f9aa6f883f71851c24b47/getsentry/sentry-javascript/issues/22446
og:image:altDescription Currently, many of our instrumentations send span ops that are not defined in conventions. This has two reasons: The span op is simply still missing in conventions and needs to be added...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLms24
hostnamegithub.com
expected-hostnamegithub.com
None002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release059f24c781e3a0d7df3f27a97da0e93fab06ae39
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/22446#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F22446
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F22446
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/22446
Reloadhttps://github.com/getsentry/sentry-javascript/issues/22446
Reloadhttps://github.com/getsentry/sentry-javascript/issues/22446
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests54 (54)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/22446
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/22446
#23137https://github.com/getsentry/sentry-javascript/pull/23137
Clean up span operationshttps://github.com/getsentry/sentry-javascript/issues/22446#top
#23137https://github.com/getsentry/sentry-javascript/pull/23137
https://github.com/msonnb
Meta: Breakinghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Breaking%22
Spanshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Spans%22
Tech Debthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Tech%20Debt%22
Tracking Issuehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Tracking%20Issue%22
https://github.com/Lms24
Lms24https://github.com/Lms24
on Jul 21, 2026https://github.com/getsentry/sentry-javascript/issues/22446#issue-4940966586
#23138https://github.com/getsentry/sentry-javascript/issues/23138
Nexthttps://github.com/getsentry/sentry-javascript/issues/22446?timeline_page=1
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Jul 21, 2026https://github.com/getsentry/sentry-javascript/issues/22446#issuecomment-5036456448
Linear Codehttps://linear.app
JS-3105https://linear.app/getsentry/issue/JS-3105
sentry-pierrehttps://github.com/apps/sentry-pierre
Spanshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Spans%22
Tracking Issuehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Tracking%20Issue%22
Tech Debthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Tech%20Debt%22
on Jul 21, 2026https://github.com/getsentry/sentry-javascript/issues/22446#event-28280538764
Lms24https://github.com/Lms24
Meta: Breakinghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Breaking%22
on Jul 21, 2026https://github.com/getsentry/sentry-javascript/issues/22446#event-28280822556
msonnbhttps://github.com/msonnb
on Jul 27, 2026https://github.com/getsentry/sentry-javascript/issues/22446#event-28524920121
msonnbhttps://github.com/msonnb
on Jul 28, 2026https://github.com/getsentry/sentry-javascript/issues/22446#event-28602117861
feat(google-cloud-serverless)!: Use `grpc` span op for GCP gRPC calls (…https://github.com/getsentry/sentry-javascript/commit/c735661a7b1a5f160787e331c74705c8b8a3ad2e
…https://github.com/getsentry/sentry-javascript/pull/22666
c735661https://github.com/getsentry/sentry-javascript/commit/c735661a7b1a5f160787e331c74705c8b8a3ad2e
fix(cloudflare): Remove conflicting `faas.queue` op on queue consumer…https://github.com/getsentry/sentry-javascript/commit/988386e1e399ec37d9f5b5448dd49fa9adae05a7
988386ehttps://github.com/getsentry/sentry-javascript/commit/988386e1e399ec37d9f5b5448dd49fa9adae05a7
feat(angular)!: Use `ui.mount` and `function` span ops for tracing de…https://github.com/getsentry/sentry-javascript/commit/a7c8b864d493640b2e937b5c3ce624849f11eede
a7c8b86https://github.com/getsentry/sentry-javascript/commit/a7c8b864d493640b2e937b5c3ce624849f11eede
feat(google-cloud-serverless)!: Use `http.client` span op for GCP HTT…https://github.com/getsentry/sentry-javascript/commit/d7eae37a02304ce4c965bcd092899a56e1dd1ecc
d7eae37https://github.com/getsentry/sentry-javascript/commit/d7eae37a02304ce4c965bcd092899a56e1dd1ecc
feat(aws-serverless)!: Use `function.aws` span op for Lambda invocati…https://github.com/getsentry/sentry-javascript/commit/3c502297d3653cbe755542718f07e62014f33289
3c50229https://github.com/getsentry/sentry-javascript/commit/3c502297d3653cbe755542718f07e62014f33289
feat(cloudflare)!: Use `function` span op for cron, email and workflo…https://github.com/getsentry/sentry-javascript/commit/7269484b2527c8559d9fbf80ca749494af6d50cd
7269484https://github.com/getsentry/sentry-javascript/commit/7269484b2527c8559d9fbf80ca749494af6d50cd
feat(node)!: Use `db.query` and `db` span ops for Redis (#22690)https://github.com/getsentry/sentry-javascript/commit/862c9358c403bf2b6d1caa4cfc226b48ee946302
#22690https://github.com/getsentry/sentry-javascript/pull/22690
862c935https://github.com/getsentry/sentry-javascript/commit/862c9358c403bf2b6d1caa4cfc226b48ee946302
feat(nuxt, nitro)!: Use convention cache ops for storage spans (#22689)https://github.com/getsentry/sentry-javascript/commit/57a4e4e681e63d70a7308f703f04c8a768bfa0f1
#22689https://github.com/getsentry/sentry-javascript/pull/22689
57a4e4ehttps://github.com/getsentry/sentry-javascript/commit/57a4e4e681e63d70a7308f703f04c8a768bfa0f1
feat!: Use `middleware` span op for web-server middleware (#22852)https://github.com/getsentry/sentry-javascript/commit/29266eba4ee6643420df13c1044333091a3623fe
#22852https://github.com/getsentry/sentry-javascript/pull/22852
29266ebhttps://github.com/getsentry/sentry-javascript/commit/29266eba4ee6643420df13c1044333091a3623fe
msonnbhttps://github.com/msonnb
on Aug 6, 2026https://github.com/getsentry/sentry-javascript/issues/22446#event-29064802298
feat(angular,ember,sveltekit)!: Use `router` span op for frontend rou…https://github.com/getsentry/sentry-javascript/commit/7a18fe8da30107ac960f1eaebe368a00ea87bd34
7a18fe8https://github.com/getsentry/sentry-javascript/commit/7a18fe8da30107ac960f1eaebe368a00ea87bd34
msonnbhttps://github.com/msonnb
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 6, 2026https://github.com/getsentry/sentry-javascript/issues/22446#event-29065128860
msonnbhttps://github.com/msonnb
on Aug 6, 2026https://github.com/getsentry/sentry-javascript/issues/22446#event-29065129641
feat!: Use `handler` span op for terminal request handlers (#22871)https://github.com/getsentry/sentry-javascript/commit/868c7fca782f1f1dca260ef65c349ef29302e24b
#22871https://github.com/getsentry/sentry-javascript/pull/22871
868c7fchttps://github.com/getsentry/sentry-javascript/commit/868c7fca782f1f1dca260ef65c349ef29302e24b
feat(nestjs)!: Use `function` span op for setup & lifecycle handlers (#…https://github.com/getsentry/sentry-javascript/commit/32b77616172cddfdd904bfe73fadcc4538ec7268
#…https://github.com/getsentry/sentry-javascript/pull/22897
32b7761https://github.com/getsentry/sentry-javascript/commit/32b77616172cddfdd904bfe73fadcc4538ec7268
feat(server-utils)!: Clean up gen ai opshttps://github.com/getsentry/sentry-javascript/commit/531ee7be894a885539482f5d227c8aa430676f73
531ee7bhttps://github.com/getsentry/sentry-javascript/commit/531ee7be894a885539482f5d227c8aa430676f73
msonnbhttps://github.com/msonnb
on Aug 6, 2026https://github.com/getsentry/sentry-javascript/issues/22446#event-29067439495
msonnbhttps://github.com/msonnb
on Aug 6, 2026https://github.com/getsentry/sentry-javascript/issues/22446#event-29067700631
feat(server-utils,core)!: Use `router` span op for backend router lay…https://github.com/getsentry/sentry-javascript/commit/4436a00c7d45bed708c5f87e09bc0790c5b717fb
4436a00https://github.com/getsentry/sentry-javascript/commit/4436a00c7d45bed708c5f87e09bc0790c5b717fb
feat(opentelemetry)!: Drop `.prefetch` suffix from inferred HTTP span…https://github.com/getsentry/sentry-javascript/commit/daae78370ad37e9a7b7b41a253611c869808b903
daae783https://github.com/getsentry/sentry-javascript/commit/daae78370ad37e9a7b7b41a253611c869808b903
feat(server-utils)!: Clean up gen ai opshttps://github.com/getsentry/sentry-javascript/commit/449c4119de5f3f6d0d81713518ef44b3b3ec2296
449c411https://github.com/getsentry/sentry-javascript/commit/449c4119de5f3f6d0d81713518ef44b3b3ec2296
feat(server-utils)!: Clean up gen ai ops (#23076)https://github.com/getsentry/sentry-javascript/commit/2708d080f5269f71b52d3e7c2d7023451af67928
#23076https://github.com/getsentry/sentry-javascript/pull/23076
2708d08https://github.com/getsentry/sentry-javascript/commit/2708d080f5269f71b52d3e7c2d7023451af67928
feat(opentelemetry)!: Drop `.prefetch` suffix from inferred HTTP span…https://github.com/getsentry/sentry-javascript/commit/a1186151d2d8f3a84393df5795501b3345f5d761
a118615https://github.com/getsentry/sentry-javascript/commit/a1186151d2d8f3a84393df5795501b3345f5d761
feat(frameworks)!: Use `function` op for framework functions (#23047)https://github.com/getsentry/sentry-javascript/commit/6a35f855d4112b39c4aeef812c897c71e1b99085
#23047https://github.com/getsentry/sentry-javascript/pull/23047
6a35f85https://github.com/getsentry/sentry-javascript/commit/6a35f855d4112b39c4aeef812c897c71e1b99085
chore: Update migration guide with span op breaking changes (#23137)https://github.com/getsentry/sentry-javascript/commit/29b22e5de347444efd7f75311b954d105878a583
#23137https://github.com/getsentry/sentry-javascript/pull/23137
29b22e5https://github.com/getsentry/sentry-javascript/commit/29b22e5de347444efd7f75311b954d105878a583
msonnbhttps://github.com/msonnb
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#23137https://github.com/getsentry/sentry-javascript/pull/23137
on Aug 7, 2026https://github.com/getsentry/sentry-javascript/issues/22446#event-29109951913
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Sep 23, 2026https://github.com/getsentry/sentry-javascript/issues/22446#issuecomment-5795106848
GitHub Actionshttps://help.github.com/en/actions
#23137https://github.com/getsentry/sentry-javascript/pull/23137
11.0.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/11.0.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/22446
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/22446
msonnbhttps://github.com/msonnb
Meta: Breakinghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Breaking%22
Spanshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Spans%22
Tech Debthttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Tech%20Debt%22
Tracking Issuehttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Tracking%20Issue%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.