Skip to content

Commit

Permalink
Remove workloadMetricsPrefixFormatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscovalentecastro committed Mar 4, 2024
1 parent 0bd8a8d commit 1590aff
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions example/metric/exponential_histogram/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ package main

import (
"context"
"fmt"
"log"
"math/rand"
"os"
Expand All @@ -33,15 +32,10 @@ import (
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/metric"
sdkmetric "go.opentelemetry.io/otel/sdk/metric"
"go.opentelemetry.io/otel/sdk/metric/metricdata"
"go.opentelemetry.io/otel/sdk/resource"
semconv "go.opentelemetry.io/otel/semconv/v1.21.0"
)

func workloadMetricsPrefixFormatter(d metricdata.Metrics) string {
return fmt.Sprintf("workload.googleapis.com/%s", d.Name)
}

func main() {
ctx := context.Background()

Expand Down

0 comments on commit 1590aff

Please sign in to comment.