static ElasticsearchBenchmark()
        {
            var settings = new TracerSettings
            {
                StartupDiagnosticLogEnabled = false
            };

            Tracer.Instance = new Tracer(settings, new DummyAgentWriter(), null, null, null);

            var methodInfo = typeof(RequestPipeline).GetMethod("CallElasticsearchAsync", System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance);

            MdToken = methodInfo.MetadataToken;
            var guid = typeof(RequestPipeline).Module.ModuleVersionId;

            GuidPtr = Marshal.AllocHGlobal(Marshal.SizeOf(guid));

            Marshal.StructureToPtr(guid, GuidPtr, false);

            var bench = new ElasticsearchBenchmark();

            bench.CallElasticsearch();
            bench.CallElasticsearchAsync();
            bench.CallTargetCallElasticsearch();
            bench.CallTargetCallElasticsearchAsync();
        }
        static ElasticsearchBenchmark()
        {
            var settings = new TracerSettings
            {
                StartupDiagnosticLogEnabled = false
            };

            Tracer.UnsafeSetTracerInstance(new Tracer(settings, new DummyAgentWriter(), null, null, null));

            var bench = new ElasticsearchBenchmark();

            bench.CallElasticsearch();
            bench.CallElasticsearchAsync();
        }