Serverless Framework collects anonymous telemetry data in order to better understand the needs of our users and to help drive better prioritization of improvements and more informed decisions. We understand that not everyone might want to send their usage data, so the participation is optional and can be disabled by following the instructions below.
One way to disable telemetry is to set environment variable SLS_TELEMETRY_DISABLED
. For example, the command below will be executed with telemetry disabled:
SLS_TELEMETRY_DISABLED=1 sls deploy
Disabling telemetry via SLS_TELEMETRY_DISABLED
environment variable is available since Serverless Framework 2.37.1
.
Alternatively, it is also possible to globally disable telemetry by running the following command:
sls slstats --disable
It will update the configuration stored in your ~/.serverlessrc
configuration file and will apply to all serverless commands.
In our telemetry data, we collect information about version of the Framework, selected provider, configured event types, triggered deprecations, runtime and used plugins. All collected data is anonymous and we do not store any sensitive data.
In addition to telemetry, Serverless Framework occasionally informs you about newer releases or additional available offerings. If you do not wish to receive such notifications, you can disable them by following the instructions below.
Notifications can be configured by SLS_NOTIFICATIONS_MODE
environment variable. If accepts following distinct values:
off
(in older versions0
) - No notifications will be shownupgrades-only
(in older versions1
) - Only notifications about minor and major version upgrades will be visibleon
(in older versions2
) - All notifications will be visibleforce
(in older versions3
) - All notifications will be visible and will be presented constantly ignoring the visibility threshold setting
By default, the notifications are turned on (mode 'on'
), with the exception of CI environments where the default mode is set to 'upgrades-only'
.
To adjust the notifications, set the SLS_NOTIFICATIONS_MODE
to one of the values above, e.g.:
SLS_NOTIFICATIONS_MODE=upgrades-only sls deploy