Builder

org.typelevel.otel4s.sdk.metrics.view.View.Builder
sealed trait Builder

Builder of a View.

Attributes

Source
View.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Adds an attribute filter which retains keys included in the retain.

Adds an attribute filter which retains keys included in the retain.

Value parameters

retain

the key to retain

Attributes

Source
View.scala

Adds an attribute filter which retains attributes that satisfy the filter.

Adds an attribute filter which retains attributes that satisfy the filter.

Value parameters

filter

the filter to use

Attributes

Source
View.scala
def build: View

Creates a View using the configuration of this builder.

Creates a View using the configuration of this builder.

Attributes

Source
View.scala
def withAggregation(aggregation: Aggregation): Builder

Sets the aggregation to use with the resulting metric.

Sets the aggregation to use with the resulting metric.

Value parameters

aggregation

the aggregation to use

Attributes

Source
View.scala

Sets the cardinality limit - the maximum number of series for a metric.

Sets the cardinality limit - the maximum number of series for a metric.

Value parameters

limit

the limit to use

Attributes

Source
View.scala
def withDescription(description: String): Builder

Sets the custom description of the resulting metric.

Sets the custom description of the resulting metric.

Value parameters

description

the description to use

Attributes

Source
View.scala
def withName(name: String): Builder

Sets the custom name of the resulting metric.

Sets the custom name of the resulting metric.

Value parameters

name

the name to use

Attributes

Source
View.scala