Skip to content

Commit

Permalink
Merge pull request #617 from snyk/chore/analytics-depgraph
Browse files Browse the repository at this point in the history
feat: send analytics for docker and depgraph
  • Loading branch information
lili2311 authored Jul 1, 2019
2 parents 7821f01 + bfb38b2 commit 6cd86de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/snyk-test/run-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ async function runTest(packageManager: SupportedPackageManagers,
}

await spinner(spinnerLbl);
analytics.add('depGraph', depGraph);
analytics.add('isDocker', payload.body && payload.body.docker);
// Type assertion might be a lie, but we are correcting that below
let res = await sendPayload(payload, hasDevDependencies) as LegacyVulnApiResult;
if (depGraph) {
Expand Down

0 comments on commit 6cd86de

Please sign in to comment.