Tracing

Tracing is implemented according to Apollo Tracing spec.

Add Tracing extension


        [Fact]
        public void Add_Extension()
        {
            /* When */
            Services.AddTankaGraphQL()
                .ConfigureSchema(() => default)
                // add trace execution extension
                .AddExtension<TraceExtension>();

            /* Then */
            var provider = Services.BuildServiceProvider();
            var executorExtensions = provider.GetService<IEnumerable<IExecutorExtension>>();
            Assert.Contains(executorExtensions, extension => extension is TraceExtension);
        }