Skip to content

Instantly share code, notes, and snippets.

@kschingiz
Created July 11, 2019 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kschingiz/7ab422d577bcae49f4bd9b421190ebc2 to your computer and use it in GitHub Desktop.
Save kschingiz/7ab422d577bcae49f4bd9b421190ebc2 to your computer and use it in GitHub Desktop.
import Agent from "meteor/kschingiz:meteor-elastic-apm";
import meteorMeasured from "meteor/kschingiz:meteor-measured";
Agent.start({
serviceName: "meteor-demo-app"
});
const metrics = Agent._metrics;
const registrySymbol = Object.getOwnPropertySymbols(metrics).find(
symbol => symbol.toString() === "Symbol(metrics-registry)"
);
const registry = metrics[registrySymbol];
meteorMeasured(registry);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment