Package io.opentelemetry.sdk.metrics
Class View
java.lang.Object
io.opentelemetry.sdk.metrics.View
- Direct Known Subclasses:
AutoValue_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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewBuilder
builder()
(package private) static View
create
(String name, String description, Aggregation aggregation, AttributesProcessor attributesProcessor, int cardinalityLimit) abstract Aggregation
Returns the aggregation of the resulting metric.(package private) abstract AttributesProcessor
Returns the attribute processor used for this view.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()
-
Constructor Details
-
View
View()
-
-
Method Details
-
builder
-
create
static View create(@Nullable String name, @Nullable String description, Aggregation aggregation, AttributesProcessor attributesProcessor, int cardinalityLimit) -
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. -
getAttributesProcessor
Returns the attribute processor used for this view. -
getCardinalityLimit
public abstract int getCardinalityLimit()Returns the cardinality limit for this view.- Since:
- 1.44.0
-
toString
-