Method TraceCommandsWith
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.dll
TraceCommandsWith(ClusterBuilder, TraceSource)
Configures the cluster to trace command events to the specified traceSource
.
public static ClusterBuilder TraceCommandsWith(this ClusterBuilder builder, TraceSource traceSource)
Parameters
builder
ClusterBuilderThe builder.
traceSource
TraceSourceThe trace source.
Returns
- ClusterBuilder
A reconfigured cluster builder.