Skip to content

Commit

Permalink
feat(contrib/metrics): mark Deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Ccheers committed Mar 22, 2024
1 parent e666429 commit c0c0c90
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions contrib/metrics/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Deprecated: use otel metrcis instead.
1 change: 1 addition & 0 deletions contrib/metrics/datadog/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Deprecated: use otel metrcis instead.
1 change: 1 addition & 0 deletions contrib/metrics/datadog/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type counter struct {
lvs []string
}

// Deprecated: use otel metrcis instead.
// NewCounter new a DataDog counter and returns Counter.
// nolint:staticcheck
func NewCounter(name string, opts ...Option) metrics.Counter {
Expand Down
1 change: 1 addition & 0 deletions contrib/metrics/datadog/gauge.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type gauge struct {
lvs []string
}

// Deprecated: use otel metrcis instead.
// NewGauge new a DataDog gauge and returns Gauge.
// nolint:staticcheck
func NewGauge(name string, opts ...Option) metrics.Gauge {
Expand Down
1 change: 1 addition & 0 deletions contrib/metrics/datadog/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type timing struct {
lvs []string
}

// Deprecated: use otel metrcis instead.
// NewTiming new a DataDog timer and returns Observer.
// nolint:staticcheck
func NewTiming(name string, opts ...Option) metrics.Observer {
Expand Down
3 changes: 1 addition & 2 deletions contrib/metrics/prometheus/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# prometheus
Monitor Prometheus metrics.
# Deprecated: use otel metrcis instead.
1 change: 1 addition & 0 deletions contrib/metrics/prometheus/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type counter struct {
lvs []string
}

// Deprecated: use otel metrcis instead.
// NewCounter new a prometheus counter and returns Counter.
// nolint:staticcheck
func NewCounter(cv *prometheus.CounterVec) metrics.Counter {
Expand Down
1 change: 1 addition & 0 deletions contrib/metrics/prometheus/gauge.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type gauge struct {
lvs []string
}

// Deprecated: use otel metrcis instead.
// NewGauge new a prometheus gauge and returns Gauge.
// nolint:staticcheck
func NewGauge(gv *prometheus.GaugeVec) metrics.Gauge {
Expand Down
1 change: 1 addition & 0 deletions contrib/metrics/prometheus/histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type histogram struct {
lvs []string
}

// Deprecated: use otel metrcis instead.
// NewHistogram new a prometheus histogram and returns Histogram.
// nolint:staticcheck
func NewHistogram(hv *prometheus.HistogramVec) metrics.Observer {
Expand Down
1 change: 1 addition & 0 deletions contrib/metrics/prometheus/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type summary struct {
lvs []string
}

// Deprecated: use otel metrcis instead.
// NewSummary new a prometheus summary and returns Histogram.
// nolint:staticcheck
func NewSummary(sv *prometheus.SummaryVec) metrics.Observer {
Expand Down

0 comments on commit c0c0c90

Please sign in to comment.