NAME
Sentry::Integration::CacheSpan - Internal: span data of cache and key-value store clients
DESCRIPTION
Internal helpers of Sentry::Integration::Redis and Sentry::Integration::CacheMemcached. Not meant to be used directly.
FUNCTIONS
cache_span_context
my $context = cache_span_context('cache.get', ['user:1', 'user:2'],
'network.peer.address' => 'cache.example.com');
The span context of a cache operation: the keys (see "key" in Sentry::DataScrubber) as description and cache.key, plus the given data.
byte_size
my $size = byte_size(@values);
The size of the values in bytes, undef if one is a reference.
host_and_port
my ($host, $port) = host_and_port('cache.example.com:11211');
The host and port of a server address, nothing for other addresses.