Loading
StackExchange.Redis
Instrumentation can be enabled forStackExchange.Redis
by referencingElastic.Apm.StackExchange.Redis
package and calling theUseElasticApm()
extension method defined inElastic.Apm.StackExchange.Redis
, onIConnectionMultiplexer
// using Elastic.Apm.StackExchange.Redis;var connection = await ConnectionMultiplexer.ConnectAsync("<redis connection>");connection.UseElasticApm();
A callback is registered with theIConnectionMultiplexer
to provide a profiling session for each transaction and span that captures redis commands sent withIConnectionMultiplexer
.