Class CouchbaseMeterInstrumentationOptions
Various options which affect how metrics are exported.
Inherited Members
Namespace: Couchbase.Extensions.Metrics.Otel
Assembly: Couchbase.Extensions.OpenTelemetry.dll
Syntax
public sealed class CouchbaseMeterInstrumentationOptions
Properties
| Edit this page View SourceDropLegacyRedundantCounters
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.
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 |
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? |