Cache Attributes

5 attributes in this category. 5 stable

Stable Attributes

cache.hit

boolean PII: False OTel: False

If the cache was hit during this span.

Example true
SDKs php-laravel
Raw JSON
{
  "key": "cache.hit",
  "brief": "If the cache was hit during this span.",
  "type": "boolean",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": true,
  "sdks": [
    "php-laravel"
  ]
}

cache.item_size

integer PII: Maybe OTel: False

The size of the requested item in the cache. In bytes.

Example 58
Raw JSON
{
  "key": "cache.item_size",
  "brief": "The size of the requested item in the cache. In bytes.",
  "type": "integer",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": 58
}

cache.key

string[] PII: Maybe OTel: False

The key of the cache accessed.

Example ["my-cache-key","my-other-cache-key"]
SDKs php-laravel
Raw JSON
{
  "key": "cache.key",
  "brief": "The key of the cache accessed.",
  "type": "string[]",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": [
    "my-cache-key",
    "my-other-cache-key"
  ],
  "sdks": [
    "php-laravel"
  ]
}

cache.operation

string PII: Maybe OTel: False

The operation being performed on the cache.

Example get
SDKs php-laravel
Raw JSON
{
  "key": "cache.operation",
  "brief": "The operation being performed on the cache.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "get",
  "sdks": [
    "php-laravel"
  ]
}

cache.ttl

integer PII: Maybe OTel: False

The ttl of the cache in seconds

Example 120
SDKs php-laravel
Raw JSON
{
  "key": "cache.ttl",
  "brief": "The ttl of the cache in seconds",
  "type": "integer",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": 120,
  "sdks": [
    "php-laravel"
  ]
}