Skip to content

Instantly share code, notes, and snippets.

@Fine0830
Created February 26, 2021 05:59
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 Fine0830/53d36508671882e210d7fca861555ce9 to your computer and use it in GitHub Desktop.
Save Fine0830/53d36508671882e210d7fca861555ce9 to your computer and use it in GitHub Desktop.
use sw-client-js
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