Package io.opentelemetry.sdk.metrics
Class View
java.lang.Object
io.opentelemetry.sdk.metrics.View
A view configures how measurements are aggregated and exported as metrics.
Views are registered with the SDK SdkMeterProviderBuilder.registerView(InstrumentSelector, View)
.
- Since:
- 1.14.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ViewBuilder
builder()
abstract Aggregation
Returns the aggregation of the resulting metric.abstract int
Returns the cardinality limit for this view.abstract String
Returns the description of the resulting metric, ornull
if the matched instrument description should be used.abstract String
getName()
Returns the name of the resulting metric, ornull
if the matched instrument name should be used.final String
toString()
-
Method Details
-
builder
-
getName
Returns the name of the resulting metric, ornull
if the matched instrument name should be used. -
getDescription
Returns the description of the resulting metric, ornull
if the matched instrument description should be used. -
getAggregation
Returns the aggregation of the resulting metric. -
getCardinalityLimit
public abstract int getCardinalityLimit()Returns the cardinality limit for this view.- Since:
- 1.44.0
-
toString
-