Created
February 26, 2021 05:59
-
-
Save Fine0830/53d36508671882e210d7fca861555ce9 to your computer and use it in GitHub Desktop.
use sw-client-js
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
app.on('routeChange', function (to) { | |
ClientMonitor.setPerformance({ | |
collector: 'http://127.0.0.1:8080', | |
service: 'browser-app', | |
serviceVersion: '1.0.0', | |
pagePath: to.path, | |
autoTracePerf: true, | |
enableSPA: true, | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment