Class TracingOptions
- Namespace
- MongoDB.Driver.Core.Configuration
- Assembly
- MongoDB.Driver.dll
Tracing-related settings for MongoDB operations.
public sealed class TracingOptions : IEquatable<TracingOptions>
- Inheritance
-
TracingOptions
- Implements
- Inherited Members
Properties
- Disabled
Gets or sets whether tracing is disabled for this client. When set to true, no OpenTelemetry activities will be created for this client's operations. Default is false (tracing enabled if configured via TracerProvider).
- QueryTextMaxLength
Gets or sets the maximum length of the db.query.text attribute. Default is 0 (attribute not added).
Methods
- Equals(TracingOptions)
Determines whether the specified TracingOptions is equal to this instance.
- Equals(object)
Determines whether the specified object is equal to the current object.
- GetHashCode()
Serves as the default hash function.
Operators
- operator ==(TracingOptions, TracingOptions)
Determines whether two TracingOptions instances are equal.
- operator !=(TracingOptions, TracingOptions)
Determines whether two TracingOptions instances are not equal.