Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed Dec 11, 2023
1 parent 6818b46 commit 9a51099
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions integration-tests/configs/prom-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ func main() {
go func() { log.Fatal(server.ListenAndServe()) }()

labels := map[string]string{
"address": address,
"port": port,
"otel_scope_name": "go.opentelemetry.io.contrib.instrumentation.net.http.otelhttp",
"otel_scope_version": "v0.24.0",
"address": address,
"port": port,
}

go handleCounter(setupCounter(labels))
Expand Down Expand Up @@ -84,7 +82,8 @@ func getAddressAndPort(listenAddress string) (string, string) {
func setupGauge(labels map[string]string) prometheus.Gauge {
gauge := prometheus.NewGauge(
prometheus.GaugeOpts{
Name: "otel_scope_info",
Namespace: "golang",
Name: "gauge",
ConstLabels: labels,
})
prometheus.MustRegister(gauge)
Expand Down

0 comments on commit 9a51099

Please sign in to comment.