Closed mstumpfx closed 4 years ago
@keitwb I'm not sure if the internal metrics are appropriately renamed or not when I ran the code generation. I can change back to "datapoints" if needed.
Yeah the sed
in gen.sh
expects to be run on a GNU based system I think, so my OSX isn't doing the substitutions. I manually edited the datapoint names back to normal rather than fight sed
.
The writer's ring buffer may have not been initialized inside its go routine before another routine may call the
InternalMetrics
function, which accesses the writer's ring buffer, causing a panic.This PR moves the initialization of several writer fields into the writer's
Start
function, before the new go routine is created to run the writer.