Skip to content

Commit

Permalink
polish metrics name (#277)
Browse files Browse the repository at this point in the history
polish metrics name
  • Loading branch information
123liuziming authored Jan 7, 2025
1 parent ddeaec5 commit 10697b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/inst-api/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion pkg/rules/fasthttp/fasthttp_otel_instrumenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 10697b5

Please sign in to comment.