Koa Attributes

2 attributes in this category. 1 stable · 1 deprecated

2 attributes

Stable Attributes

koa.type

string Scrub: Manual Visibility: Public OTel: False

The type of the Koa layer that handled the request.

Example router
Changelog
v0.16.0 #471 Added koa.type attribute
Raw JSON
{
  "key": "koa.type",
  "brief": "The type of the Koa layer that handled the request.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "router",
  "changelog": [
    {
      "version": "0.16.0",
      "prs": [
        471
      ],
      "description": "Added koa.type attribute"
    }
  ]
}

Deprecated Attributes

These attributes are deprecated and should not be used in new code. See each attribute for migration guidance.

koa.name Deprecated

string Scrub: Manual Visibility: Public OTel: False

The name of the Koa middleware or matched route that handled the request.

Example /users/:id

No replacement available at this time.

No single replacement. SDKs should use http.route for router layers and code.function.name for middleware layers instead.

Changelog
v0.16.0 #490 Added koa.name attribute as deprecated
Raw JSON
{
  "key": "koa.name",
  "brief": "The name of the Koa middleware or matched route that handled the request.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "/users/:id",
  "deprecation": {
    "reason": "No single replacement. SDKs should use http.route for router layers and code.function.name for middleware layers instead.",
    "_status": null
  },
  "changelog": [
    {
      "version": "0.16.0",
      "prs": [
        490
      ],
      "description": "Added koa.name attribute as deprecated"
    }
  ]
}