public void SimpleWrite()
        {
            var x = new ElasticSearchTraceListener("tester");
            x.ElasticSearchUri = "http://192.168.2.50:9200";
            x.ElasticSearchTraceIndex = "trace";

            x.Write(4);
        }
Пример #2
0
        public async Task SimpleWrite()
        {
            var x = new ElasticSearchTraceListener("tester");

            x.ElasticSearchUri        = _fixture.Elasticsearch.Url.ToString();
            x.ElasticSearchTraceIndex = "trace";

            x.Write(4);
        }
        public void SimpleWrite()
        {
            var x = new ElasticSearchTraceListener("tester");

            x.ElasticSearchUri        = "http://192.168.204.198:9200";
            x.ElasticSearchTraceIndex = "trace";

            x.Write(4);
        }
        public void WriteManySimpleStringsTest()
        {
            var x = new ElasticSearchTraceListener("tester");

            x.ElasticSearchUri        = "http://192.168.204.198:9200";
            x.ElasticSearchTraceIndex = "trace";

            for (int i = 0; i < 10; i++)
            {
                x.Write("xxxxx" + i);
            }
            x.Flush();
        }
Пример #5
0
        public async Task WriteManySimpleStringsTest()
        {
            var x = new ElasticSearchTraceListener("tester");

            x.ElasticSearchUri        = _fixture.Elasticsearch.Url.ToString();
            x.ElasticSearchTraceIndex = "trace";

            for (int i = 0; i < 10; i++)
            {
                x.Write("xxxxx" + i);
            }
            x.Flush();
        }
        public void WriteObjectTest()
        {
            var x = new ElasticSearchTraceListener("tester");
            x.ElasticSearchUri = "http://192.168.2.50:9200";
            x.ElasticSearchTraceIndex = "trace";


            x.Write(new
            {
                thing = "ggg",
                morethings = 11111,
                anotherthing = "yyyy"
            });
        }
        public void ALOTofExmsgs()
        {
            var x = new ElasticSearchTraceListener("tester");

            x.ElasticSearchUri        = "http://192.168.204.198:9200";
            x.ElasticSearchTraceIndex = "trace";

            for (int i = 0; i < 100; i++)
            {
                x.Write(new Exception());
            }

            x.Flush();
        }
Пример #8
0
        public async Task ALOTofExmsgs()
        {
            var x = new ElasticSearchTraceListener("tester");

            x.ElasticSearchUri        = _fixture.Elasticsearch.Url.ToString();
            x.ElasticSearchTraceIndex = "trace";

            for (int i = 0; i < 100; i++)
            {
                x.Write(new Exception());
            }

            x.Flush();
        }
        public void WriteObjectTest()
        {
            var x = new ElasticSearchTraceListener("tester");

            x.ElasticSearchUri        = "http://192.168.204.198:9200";
            x.ElasticSearchTraceIndex = "trace";


            x.Write(new
            {
                thing        = "ggg",
                morethings   = 11111,
                anotherthing = "yyyy"
            });
        }
Пример #10
0
        public async Task WriteObjectTest()
        {
            var x = new ElasticSearchTraceListener("tester");

            x.ElasticSearchUri        = _fixture.Elasticsearch.Url.ToString();
            x.ElasticSearchTraceIndex = "trace";


            x.Write(new
            {
                thing        = "ggg",
                morethings   = 11111,
                anotherthing = "yyyy"
            });
        }
        public void WriteExceptionest()
        {
            var x = new ElasticSearchTraceListener("tester");

            x.ElasticSearchUri        = "http://192.168.204.198:9200";
            x.ElasticSearchTraceIndex = "trace";

            try
            {
                var n = 0;
                var y = 100000 / n;
            }
            catch (Exception ex)
            {
                x.Write(ex);
                //throw;
            }
        }
Пример #12
0
        public async Task WriteExceptionest()
        {
            var x = new ElasticSearchTraceListener("tester");

            x.ElasticSearchUri        = _fixture.Elasticsearch.Url.ToString();
            x.ElasticSearchTraceIndex = "trace";

            try
            {
                var n = 0;
                var y = 100000 / n;
            }
            catch (Exception ex)
            {
                x.Write(ex);
                //dont throw we want to see that the exception got writ
                //throw;
            }
        }
        public void ALOTofExmsgs()
        {
            var x = new ElasticSearchTraceListener("tester");
            x.ElasticSearchUri = "http://192.168.2.50:9200";
            x.ElasticSearchTraceIndex = "trace";

            for (int i = 0; i < 100; i++)
            {
                x.Write(new Exception());
            }

            x.Flush();
        }
        public void WriteExceptionest()
        {
            var x = new ElasticSearchTraceListener("tester");
            x.ElasticSearchUri = "http://192.168.2.50:9200";
            x.ElasticSearchTraceIndex = "trace";

            try
            {
                var n = 0;
                var y = 100000 / n;
            }
            catch (Exception ex)
            {
                x.Write(ex);
                //throw;
            }

        }
        public void WriteManySimpleStringsTest()
        {
            var x = new ElasticSearchTraceListener("tester");
            x.ElasticSearchUri = "http://192.168.2.50:9200";
            x.ElasticSearchTraceIndex = "trace";

            for (int i = 0; i < 10; i++)
            {
                x.Write("xxxxx" + i);
            }
            x.Flush();
        }