You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
As you can see in the first place, GetMetricDisplayName was not used, and it directly constructs the display name with the default display name prefix. But in the second place, GetMetricDisplayName was used if it's not nil.
I suspect that's the reason it's not working.
The text was updated successfully, but these errors were encountered:
Please answer these questions before submitting a bug report.
What version of the Exporter are you using?
v0.13.4
What version of OpenCensus are you using?
v0.23.0
What version of Go are you using?
1.21
What did you do?
If possible, provide a recipe for reproducing the error.
I created a exporter with custom
GetMetricDisplayName
option:What did you expect to see?
I want the display name of the metric displayed in Cloud Monitoring to be
My App/my_metric
.What did you see instead?
The display name is still
OpenCensus/my_metric
.Additional context
Add any other context about the problem here.
I found there are two places a
MetricDescriptor
was built.opencensus-go-exporter-stackdriver/metrics.go
Lines 284 to 296 in e367a86
opencensus-go-exporter-stackdriver/stats.go
Lines 309 to 325 in e367a86
As you can see in the first place,
GetMetricDisplayName
was not used, and it directly constructs the display name with the default display name prefix. But in the second place,GetMetricDisplayName
was used if it's notnil
.I suspect that's the reason it's not working.
The text was updated successfully, but these errors were encountered: