Skip to content

Telemetry for SAM CLI #1272

@sriram-mv

Description

@sriram-mv

Description

SAM CLI is adding telemetry. In addition to existing feedback, telemetry allows us to better understand our customer’s needs, common CLI scenarios and existing issues. The information collected will include generic usage metrics, system and environment information, and errors (see below for types of information collected). These generic metrics will inform our product decisions and help us continue to deliver features and enhancements that improve the customer experience. This feature does not collect personal information, such as usernames or email addresses, or extract sensitive project-level information and customers control whether telemetry is enabled and can change their settings at any point of time. To learn more about AWS policies:

Experience

Customers new to SAM CLI, upon first use after installation, will be provided with a message prompt informing them that telemetry collection is enabled and will provide the customer with instructions on how to opt out (see instructions for opt out below).
Customers already using SAM CLI, including as a part of automated CI/CD systems, will be provided with the message prompt upon first use after update or next install. If telemetry remains enabled, we will send telemetry data in the background without requiring any additional customer interaction.

NOTE: The message prompt will only appear upon the first update or install after the launch of the telemetry feature, and not upon every update thereafter.

How to opt out

At any point, customers have the option to disable telemetry by setting an environment variable SAM_CLI_TELEMETRY=0 in their shell. Once the customer has opted-out, we will cease collecting telemetry data. Data collected through telemetry adheres to the AWS data privacy policies.

Types of information collected

  1. Usage information: generic commands and sub-commands executed.
  2. Errors and diagnostic information: Status and duration of command run, including exit code and internal exception name. Failures when connecting to Docker.
  3. System and environment information: Python version, Operating system (Windows, Linux or Mac), environment in which SAM CLI is executed (e.g. CodeBuild, AWS IDEToolkit or Terminal).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions