-
As per the title really, I've been struggling with adding custom metrics to my own asp.net 8 projects so I thought I'd take a look at If I build and run
but even if I hit
I can see the freezingDaysCounter being incremented under the debugger, but I never see any What am I doing wrong? This is the same thing I'm seeing with my own custom metrics. TIA Rich |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm not quite sure why but when I try again this morning with the same (unchanged code) those metrics are now appearing, so will close this off. For info, it's the |
Beta Was this translation helpful? Give feedback.
I'm not quite sure why but when I try again this morning with the same (unchanged code) those metrics are now appearing, so will close this off.
For info, it's the
.AddMeter(Instrumentation.MeterName)
call in the metrics builder inProgram.cs
which is doing the work to add this custom metric into the output. This is what I was missing from my own personal projects.