internal Tracing()
        {
            IEventQueue eventQueue = new SimpleEventQueue();

            TraceConfig = new Config.TraceConfig();

            SpanExporter = Export.SpanExporter.Create();

            IStartEndHandler startEndHandler =
                new StartEndHandler(
                    SpanExporter,
                    eventQueue);

            tracer = new Tracer(startEndHandler, TraceConfig);
        }
Exemplo n.º 2
0
        internal Tracing()
        {
            IEventQueue eventQueue = new SimpleEventQueue();

            TraceConfig = new Config.TraceConfig();

            // TODO(bdrutu): Add a config/argument for supportInProcessStores.
            if (eventQueue is SimpleEventQueue)
            {
                ExportComponent = Export.ExportComponent.CreateWithoutInProcessStores(eventQueue);
            }
            else
            {
                ExportComponent = Export.ExportComponent.CreateWithInProcessStores(eventQueue);
            }

            IStartEndHandler startEndHandler =
                new StartEndHandler(
                    ExportComponent.SpanExporter,
                    eventQueue);

            tracer = new Tracer(startEndHandler, TraceConfig);
        }