Created
July 11, 2019 06:03
-
-
Save kschingiz/7ab422d577bcae49f4bd9b421190ebc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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