Skip to content

Commit

Permalink
Added missing value
Browse files Browse the repository at this point in the history
Signed-off-by: Wise-Wizard <[email protected]>
  • Loading branch information
Wise-Wizard committed Jun 26, 2024
1 parent f6fce72 commit a42e1fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/metrics/otelmetrics/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func newTestFactory(t *testing.T) metrics.Factory {
}

func TestCounter(t *testing.T) {
factory := newTestFactory()
factory := newTestFactory(t)
counter := factory.Counter(metrics.Options{
Name: "test_counter",
Tags: map[string]string{"tag1": "value1"},
Expand All @@ -34,7 +34,7 @@ func TestCounter(t *testing.T) {
}

func TestGauge(t *testing.T) {
factory := newTestFactory()
factory := newTestFactory(t)
gauge := factory.Gauge(metrics.Options{
Name: "test_gauge",
Tags: map[string]string{"tag1": "value1"},
Expand All @@ -44,7 +44,7 @@ func TestGauge(t *testing.T) {
}

func TestHistogram(t *testing.T) {
factory := newTestFactory()
factory := newTestFactory(t)
histogram := factory.Histogram(metrics.HistogramOptions{
Name: "test_histogram",
Tags: map[string]string{"tag1": "value1"},
Expand All @@ -54,7 +54,7 @@ func TestHistogram(t *testing.T) {
}

func TestTimer(t *testing.T) {
factory := newTestFactory()
factory := newTestFactory(t)
timer := factory.Timer(metrics.TimerOptions{
Name: "test_timer",
Tags: map[string]string{"tag1": "value1"},
Expand All @@ -64,7 +64,7 @@ func TestTimer(t *testing.T) {
}

func TestNamespace(t *testing.T) {
factory := newTestFactory()
factory := newTestFactory(t)
nsFactory := factory.Namespace(metrics.NSOptions{
Name: "namespace",
Tags: map[string]string{"ns_tag1": "ns_value1"},
Expand All @@ -79,7 +79,7 @@ func TestNamespace(t *testing.T) {
}

func TestNormalization(t *testing.T) {
factory := newTestFactory()
factory := newTestFactory(t)
normalizedFactory := factory.Namespace(metrics.NSOptions{
Name: "My Namespace",
})
Expand Down

0 comments on commit a42e1fe

Please sign in to comment.