Skip to main content

Type Alias: SpanOperationType

@arolariu/website


@arolariu/website / instrumentation.server / SpanOperationType

Type Alias: SpanOperationType

SpanOperationType = `http.server.${string}` | `http.client.${string}` | `db.${string}` | `cache.${string}` | `api.${string}` | `component.${string}` | `page.${string}` | `auth.${string}` | `validation.${string}` | `business.${string}`

Defined in: instrumentation.server.ts:104

Operation types for span naming.

Remarks

Use these prefixes for consistent span naming:

  • http.server.*: Incoming HTTP requests
  • http.client.*: Outgoing HTTP requests
  • db.*: Database operations
  • cache.*: Cache operations
  • api.*: API route handlers
  • component.*: React component rendering
  • page.*: Page rendering operations
  • auth.*: Authentication operations
  • validation.*: Data validation
  • business.*: Business logic operations
// was this page useful?