Skip to content

Capture extension use as a telemetry data point #365

Closed

Description

@JoshMock

With the addition of the extension system #222 we should be measuring extension usage as part of our telemetry. If Elasticians or community members build extensions that gain a notable amount of usage, it helps us to determine whether there's a way to merge the extension as a built-in command, or improve the usability of other existing commands that do similar things.

This is slightly more complicated than our standard telemetry measurement technique of using an x-elastic-client-meta HTTP header, because we won't have control over the contents of requests that an extension sends to Elastic APIs.

A couple possible solutions:

  • Record installs: ping Elasticsearch, Kibana or Cloud control plane (pick one of whichever is configured in the current context) with an info request at extension install time, putting the extension name in the x-elastic-client-meta header.
  • Record every extension invocation: use the same ping method, but run on every use of the extension
  • Record one invocation per day per extension: same as above, but ping once a day max per extension, storing a timeout/lock value on the filesystem to keep track of the last ping
  • New telemetry data set: capture and aggregate whatever extension use patterns we care about locally, in a cached JSON file, then at maximum once per day have a CLI invocation look for the file, publish it to Elastic's telemetry API directly, and delete

I prefer the first option, as it low volume and the least likely to be a privacy concern to users. The only downside is that it would not capture how often an extension is actually used.

Activity

  1. added theissue type on May 22, 2026
  2. JoshMock commented on May 27, 2026

    @JoshMock
    MemberAuthor

    Capturing the decision made as a team in our weekly Dev Experience meeting: we'll start by looking into collecting npm download stats and GitHub repo stars only to get a sense of extension usage. This is the lowest-friction solution, and upholds our preferred privacy stance as a team, by avoiding running any additional requests behind the scenes other than the ones the user intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions