Socket
Socket
Sign inDemoInstall

gatsby-telemetry

Package Overview
Dependencies
13
Maintainers
18
Versions
476
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gatsby-telemetry

Gatsby Telemetry


Version published
Weekly downloads
344K
increased by1.99%
Maintainers
18
Install size
21.2 MB
Created
Weekly downloads
 

Readme

Source

gatsby-telemetry

Check out: gatsby.dev/telemetry

API

captureEvent(type, tags)

Capture an event of type type and decorate the generated event with these tags (note: allowed tags are filtered on server side)

trackCli(type, tags)

This one does the same thing as the captureEvent function described above.

Capture an event of type type and decorate the generated event with these tags (note: allowed tags are filtered on server side)

trackError(type, tags)

Capture an error of type type. The exception maybe passed in tags and it will be sanitized to anonymize the contents.

trackBuildError(type, tags)

Capture an build error of type type. The exception maybe passed in tags and it will be sanitize to anonymize the contents.

setDefaultTags(tags)

Set additional tags to be included in all future events.

decorateEvent(type, tags)

Attach additional tags to the next event generated of type type.

setTelemetryEnabled(enabled)

Enable or disable the telemetry collection.

expressMiddleware(type)

Returns a debounced events tracker for collecting general activity information for incoming requests.

ENV Variables

  • Set GATSBY_TELEMETRY_DEBUG to 1 to print the telemetry data instead of sending it over
  • Set GATSBY_TELEMETRY_DISABLED to 1 to opt out of all telemetry
  • Set GATSBY_TELEMETRY_VERBOSE to 1 to log all telemetry

Keywords

FAQs

Last updated on 26 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc