Closed mluggy closed 5 years ago
Thanks for filling the issue. I ran the shared example (only changed the projectId). This is what I see on stackdriver UI.
However, one thing is weird, In filter option once I select the label (for example: Method
) I don't see corresponding values (auto populated) there. I have to manually enter the value (in this case "REPL") to apply the filter.
thanks, so this has to be a problem on Stackdriver UI or a delay populating the suggestion list.
Somehow related - do you know how to populate a description for the labels? the opencensus_task seems to have it but the others don't. I tried this:
const methodTagKey = { name: 'method', description: 'Method description' }
so this has to be a problem on Stackdriver UI or a delay populating the suggestion list.
There are some delay for populating the suggestion list. Now I see values in the list.
Do you know how to populate a description for the labels? the opencensus_task seems to have it but the others don't. I tried this:
Currently TagKey interface does not allow you to add custom description
for the keys. If you use Gauge
API (with LabelKey interface) which has an option to set description
field.
In case of default opencensus_task
label, we have separate logic to add the desciption. https://github.com/census-instrumentation/opencensus-node/blob/1c0d0b5bc6495babe6f896ae47b230f0430b80a9/packages/opencensus-exporter-stackdriver/src/stackdriver-monitoring-utils.ts#L124-L128
I think we should open a separate feature request to add support for description
field for TagKey
.
Did you ever get to a root cause with this? I am having the exact same problem. It's been 12-24 hours since the creation of my metric (with status
tag applied) and I still do not have any values showing up for status
.
What version of OpenCensus are you using?
0.0.9
What version of Node are you using?
10.15.3
What did you do?
Run the repl sample as-is against Stackdriver .
What did you expect to see?
The method, status and error tags appearing as labels with their values populated, filterable and groupable on the Stackdriver UI.
What did you see instead?
The labels were there but they were missing values. Only the automatic "opencensus_task" had values.
Additional context