ASP.Net Web Api 2 中内置的跟踪是否仅适用于非生产环境?

Is the tracing built in to ASP.Net Web Api 2 only meant for a non-production environment?

我阅读了 Global Error Handling recommendations and the Tracing in Web API 2 篇文章,并且了解如何设置这些内容。但是,我在错误处理部分注意到,它指出:

While Web API does have tracing infrastructure that captures error conditions the tracing infrastructure is for diagnostics purposes and is not designed or suited for running in production environments. Global exception handling and logging should be services that can run during production and be plugged into existing monitoring solutions

我正在寻求对此的澄清。此声明是说仅在不生产时才应将错误记录为跟踪的一部分,还是说 ITraceWriter 的自定义实现仅应在不生产时向 HttpConfiguration 注册?

我假设文章说的是

not designed or suited for running in production environments

只是为了性能影响,但是否有一些不同的上下文信息,我可以通过查看 TraceRecordException 上的 Exception 来查看特定错误被传递到 IExceptionLogger?

按照所写的内容,它是一种基本的跟踪和日志记录形式,但由于性能和功能原因,它虽然适用于开发人员和诊断环境,但不适用于生产环境。

为了尽职调查,它建议使用进程外服务(例如,在单独的进程中使用 log4net 或从 Azure 中选择),以减少由于核心故障导致日志记录失败的可能性过程;扩展性能的空间;以及默认设计中未提供的功能更丰富的日志系统的潜力。