Skip to content

Implement the sdk/metric/view package #2837

Closed
@MrAlias

Description

@MrAlias

Blocked by #2816
Blocked by #2817
Blocked by #2813

  • Add view match option functions
    • func MatchInstrumentName(name string) Option
    • func MatchInstrumentNameRegexp(re *regexp.Regexp) Option
    • func MatchInstrumentKind(k sdkinstrument.Kind) Option
    • func MatchNumberKind(k number.Kind) Option
    • func MatchInstrumentationLibrary(lib instrumentation.Library) Option
  • Add instrument view option functions
    • func WithKeys(keys ...attribute.Key) Option
    • func WithName(name string) Option
    • func WithDescription(desc string) Option
    • func WithAggregation(kind aggregation.Kind) Option
    • func WithTemporality(tempo aggregation.Temporality) Option
    • func WithAggregatorConfig(acfg aggregator.Config) Option
  • Add getter functions for the Config type
    • func (Config) Name() string
    • func (Config) Keys() []attribute.Key
    • func (Config) Description() string
    • func (Config) Aggregation() aggregation.Kind
    • func (Config) Temporality() aggregation.Temporality
    • func (Config) AggregatorConfig() aggregator.Config
  • Add helper functions for the `Config type
    • func (Config) IsSingleInstrument() bool
    • func (Config) HasName() bool
    • func (Config) Matches(lib instrumentation.Library, desc sdkinstrument.Descriptor) bool

Metadata

Metadata

Assignees

Labels

area:metricsPart of OpenTelemetry Metricspkg:SDKRelated to an SDK package

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions