Hapi Attributes

3 attributes in this category.3 stable

3 attributes

Stable Attributes

hapi.ext.type

stringScrub: ManualVisibility: PublicOTel: False

The request lifecycle extension point where the Hapi extension function runs.

ExamplesonRequestonPreResponse
Changelog
v0.28.0#741Added hapi.ext.type attribute
Raw JSON
{
  "key": "hapi.ext.type",
  "brief": "The request lifecycle extension point where the Hapi extension function runs.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "onRequest",
    "onPreResponse"
  ],
  "alias": [
    "server.ext.type"
  ],
  "changelog": [
    {
      "version": "0.28.0",
      "prs": [
        741
      ],
      "description": "Added hapi.ext.type attribute"
    }
  ]
}

hapi.plugin.name

stringScrub: ManualVisibility: PublicOTel: False

The name of the Hapi plugin that registered the route.

Exampleshapi-swagger
Changelog
v0.28.0#741Added hapi.plugin.name attribute
Raw JSON
{
  "key": "hapi.plugin.name",
  "brief": "The name of the Hapi plugin that registered the route.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "hapi-swagger"
  ],
  "changelog": [
    {
      "version": "0.28.0",
      "prs": [
        741
      ],
      "description": "Added hapi.plugin.name attribute"
    }
  ]
}

hapi.type

stringScrub: ManualVisibility: PublicOTel: False

The type of the Hapi layer that the span describes: router, plugin, or server.ext.

Examplesrouterpluginserver.ext
Changelog
v0.28.0#741Added hapi.type attribute
Raw JSON
{
  "key": "hapi.type",
  "brief": "The type of the Hapi layer that the span describes: `router`, `plugin`, or `server.ext`.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "examples": [
    "router",
    "plugin",
    "server.ext"
  ],
  "changelog": [
    {
      "version": "0.28.0",
      "prs": [
        741
      ],
      "description": "Added hapi.type attribute"
    }
  ]
}