From 10697b5068ae6626c5b2a0113b7d6e2fbc8eab2e Mon Sep 17 00:00:00 2001 From: Liu Ziming Date: Tue, 7 Jan 2025 19:03:07 +0800 Subject: [PATCH] polish metrics name (#277) polish metrics name --- pkg/inst-api/version/version.go | 2 +- pkg/rules/fasthttp/fasthttp_otel_instrumenter.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/inst-api/version/version.go b/pkg/inst-api/version/version.go index 887e840b..27a22128 100644 --- a/pkg/inst-api/version/version.go +++ b/pkg/inst-api/version/version.go @@ -15,4 +15,4 @@ package version // Tag specifies the current release tag. It needs to be manually updated. -var Tag = "v0.4.0" +var Tag = "v0.7.0" diff --git a/pkg/rules/fasthttp/fasthttp_otel_instrumenter.go b/pkg/rules/fasthttp/fasthttp_otel_instrumenter.go index adc10339..f8ea8d77 100644 --- a/pkg/rules/fasthttp/fasthttp_otel_instrumenter.go +++ b/pkg/rules/fasthttp/fasthttp_otel_instrumenter.go @@ -213,7 +213,7 @@ func BuildFastHttpServerOtelInstrumenter() *instrumenter.PropagatingFromUpstream urlExtractor := net.UrlAttrsExtractor[fastHttpRequest, fastHttpResponse, fastHttpServerAttrsGetter]{Getter: serverGetter} return builder.Init().SetSpanStatusExtractor(http.HttpServerSpanStatusExtractor[fastHttpRequest, fastHttpResponse]{Getter: serverGetter}).SetSpanNameExtractor(&http.HttpServerSpanNameExtractor[fastHttpRequest, fastHttpResponse]{Getter: serverGetter}). SetSpanKindExtractor(&instrumenter.AlwaysServerExtractor[fastHttpRequest]{}). - AddOperationListeners(http.HttpClientMetrics("fasthttp.server")). + AddOperationListeners(http.HttpServerMetrics("fasthttp.server")). SetInstrumentationScope(instrumentation.Scope{ Name: utils.FAST_HTTP_SERVER_SCOPE_NAME, Version: version.Tag,