Cache Attributes

6 attributes in this category.6 stable

6 attributes

Stable Attributes

cache.hit

booleanScrub: ManualVisibility: PublicOTel: False

If the cache was hit during this span.

Exampletrue
Changelog
v0.0.0
Raw JSON
{
  "key": "cache.hit",
  "brief": "If the cache was hit during this span.",
  "type": "boolean",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": true,
  "changelog": [
    {
      "version": "0.0.0"
    }
  ]
}

cache.item_size

integerScrub: ManualVisibility: PublicOTel: False

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

Example58
Search AliasHow this attribute is exposed in Sentry search. Query it by this name instead of the attribute key.
Namecache.item_size
Typebyte
Changelog
v0.4.0#228
v0.0.0
Raw JSON
{
  "key": "cache.item_size",
  "brief": "The size of the requested item in the cache. In bytes.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 58,
  "search_alias": {
    "name": "cache.item_size",
    "type": "byte"
  },
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

cache.key

string[]Scrub: ManualVisibility: PublicOTel: False

The key of the cache accessed.

Example["my-cache-key","my-other-cache-key"]
Changelog
v0.0.0
Raw JSON
{
  "key": "cache.key",
  "brief": "The key of the cache accessed.",
  "type": "string[]",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": [
    "my-cache-key",
    "my-other-cache-key"
  ],
  "changelog": [
    {
      "version": "0.0.0"
    }
  ]
}

cache.operation

stringScrub: ManualVisibility: PublicOTel: False

The operation being performed on the cache.

Exampleget
Changelog
v0.1.0#127
v0.0.0
Raw JSON
{
  "key": "cache.operation",
  "brief": "The operation being performed on the cache.",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "get",
  "changelog": [
    {
      "version": "0.1.0",
      "prs": [
        127
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

cache.ttl

integerScrub: ManualVisibility: PublicOTel: False

The ttl of the cache in seconds

Example120
Changelog
v0.4.0#228
v0.0.0
Raw JSON
{
  "key": "cache.ttl",
  "brief": "The ttl of the cache in seconds",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 120,
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

cache.write

booleanScrub: ManualVisibility: PublicOTel: False

If the cache operation resulted in a write to the cache.

Exampletrue
Changelog
v0.5.0
Raw JSON
{
  "key": "cache.write",
  "brief": "If the cache operation resulted in a write to the cache.",
  "type": "boolean",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": true,
  "changelog": [
    {
      "version": "0.5.0"
    }
  ]
}