将Hot Chocolate与.Net Core一起使用时,我正在创建这样的方案:
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// Here I register my services / repositories; omitted for brevity
services.AddGraphQL(sp => Schema.Create(c =>
{
// Here I register my schema types and so on; omitted for brevity
}));
}
// Code omitted for brevity
}
但是实际上如何为所有请求启用内置的Apollo Tracing呢?它是否以相同的方式与.Net Framework一起使用?