Couchbase .NET SDK | 3.9.0
Search Results for

    Show / Hide Table of Contents

    Class CouchbaseMeterInstrumentationOptions

    Various options which affect how metrics are exported.

    Inheritance
    object
    CouchbaseMeterInstrumentationOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Couchbase.Extensions.Metrics.Otel
    Assembly: Couchbase.Extensions.OpenTelemetry.dll
    Syntax
    public sealed class CouchbaseMeterInstrumentationOptions

    Properties

    | Edit this page View Source

    DropLegacyRedundantCounters

    Set to true to drop legacy meter counters that are redundant with histogram data. Defaults to false.

    Declaration
    public bool DropLegacyRedundantCounters { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    When enabled, the following metrics are dropped via OTel Views:

    • db.couchbase.operations.count - redundant with histogram count
    • db.couchbase.operations.status - included in outcome tag on histogram
    • db.couchbase.timeouts - included in outcome tag on histogram

    This applies only to the legacy meter. The modern meter does not emit these redundant counters.

    | Edit this page View Source

    ExcludeLegacyMetrics

    Set to true to exclude some duplicative legacy metrics. Defaults to false.

    Declaration
    [Obsolete("Use DropLegacyRedundantCounters instead.")]
    public bool ExcludeLegacyMetrics { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    SemanticConvention

    The semantic convention to use for metrics. Determines which meter(s) to subscribe to. If not set, defaults to reading from the OTEL_SEMCONV_STABILITY_OPT_IN environment variable.

    Declaration
    public ObservabilitySemanticConvention? SemanticConvention { get; set; }
    Property Value
    Type Description
    ObservabilitySemanticConvention?
    • Edit this page
    • View Source
    In this article
    Back to top © 2026 Couchbase, Inc.