private static Scope CreateScope(object multiplexer, object message)
        {
            var config      = StackExchangeRedisHelper.GetConfiguration(multiplexer);
            var hostAndPort = StackExchangeRedisHelper.GetHostAndPort(config);
            var rawCommand  = StackExchangeRedisHelper.GetRawCommand(multiplexer, message);

            return(Integrations.RedisHelper.CreateScope(hostAndPort.Item1, hostAndPort.Item2, rawCommand));
        }
Esempio n. 2
0
        private static Scope CreateScope(object batch, object message)
        {
            var multiplexer = StackExchangeRedisHelper.GetMultiplexer(batch);
            var config      = StackExchangeRedisHelper.GetConfiguration(multiplexer);
            var hostAndPort = StackExchangeRedisHelper.GetHostAndPort(config);
            var cmd         = StackExchangeRedisHelper.GetRawCommand(batch, message);

            return(RedisHelper.CreateScope(Tracer.Instance, IntegrationName, RedisAssembly, hostAndPort.Item1, hostAndPort.Item2, cmd));
        }