Table of Contents

Method TraceCommandsWith

Namespace
MongoDB.Driver.Core.Configuration
Assembly
MongoDB.Driver.Core.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 ClusterBuilder

The builder.

traceSource TraceSource

The trace source.

Returns

ClusterBuilder

A reconfigured cluster builder.