NAME

Sentry::Integration::CacheMemcached - Spans and breadcrumbs for Cache::Memcached

DESCRIPTION

Enabled by default. Records the operations of Cache::Memcached as spans for Sentry's Caches insight and breadcrumbs (category memcached):

cache.get

get and get_multi (one span for all keys), with cache.hit (any key found) and cache.item_size.

cache.put

set, add, replace, append, prepend, incr and decr, with cache.write (whether the server stored it) and, if a value is given, cache.item_size.

cache.remove

delete (and its alias remove), with cache.write.

cache.flush

flush_all, with cache.write.

The description and cache.key are the keys, without the client's namespace; values are never recorded. Without "send_default_pii" in Sentry::SDK, the parts of keys that look like ids or tokens (e.g. session ids) are replaced by *. Failed operations (the client died) get status internal_error and neither cache.hit nor cache.write. cache.item_size is the size in bytes of plain values; references, which the client serializes itself, have no size. With a single server, spans carry its network.peer.address and network.peer.port.

ATTRIBUTES

See "ATTRIBUTES" in Sentry::Integration::Base.

METHODS

install

See "install" in Sentry::Integration::Base.

SPAN ORIGIN

origin

The spans of this integration have the origin auto.cache.memcached (see "origin" in Sentry::Integration::Base).