@nomiclabs/buidler > Analytics

Class: Analytics

Hierarchy

Analytics

Index

Methods


Methods

sendTaskHit

sendTaskHit(taskName: string): Promise<[AbortAnalytics, Promise<void>]>

Defined in internal/cli/analytics.ts:90

Attempt to send a hit to Google Analytics using the Measurement Protocol. This function returns immediately after starting the request, returning a function for aborting it. The idea is that we don't want Buidler tasks to be slowed down by a slow network request, so Buidler can abort the request if it takes too much time.

Trying to abort a successfully completed request is a no-op, so it's always safe to call it.

Parameters:

Name Type Description
taskName string The name of the task to be logged

Returns: Promise<[AbortAnalytics, Promise<void>]> The abort function


<Static> getInstance

getInstance(rootPath: string, enabled: boolean): Promise<Analytics>

Defined in internal/cli/analytics.ts:43

Parameters:

Name Type
rootPath string
enabled boolean

Returns: Promise<Analytics>