This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
StackExchange.Redis
editStackExchange.Redis
editQuick start
editInstrumentation can be enabled for StackExchange.Redis
by referencing Elastic.Apm.StackExchange.Redis
package
and calling the UseElasticApm()
extension method defined in Elastic.Apm.StackExchange.Redis
, on IConnectionMultiplexer
// using Elastic.Apm.StackExchange.Redis; var connection = await ConnectionMultiplexer.ConnectAsync("<redis connection>"); connection.UseElasticApm();
A callback is registered with the IConnectionMultiplexer
to provide a profiling session for each transaction and span that captures redis commands
sent with IConnectionMultiplexer
.