@elastic/ebt

中文文档
1.4.1发布于 2025/10/20SSPL-1.0 OR Elastic License 2.0CommonJS近 30 天下载 18万

Event-based telemetry for Elastic products

原始使用文档
文档目录3 节
  1. Client
  2. Prebuilt shippers
  3. Release process

@elastic/ebt/*

This module implements the Analytics client used for Event-Based Telemetry. The intention of the client is to be usable on both: the UI and the Server sides.

Client

@elastic/ebt/client holds the public APIs to report events, enrich the events' context and set up the transport mechanisms. Refer to the client's docs for more information.

Prebuilt shippers

Elastic-approved shippers are available as @elastic/ebt/shippers/* packages. Refer to the shippers' docs for more information.


Release process

When we want to publish a new version to npmjs, the process is quite simple:

  1. Bump the version via the command yarn version major|minor|patch (use the prefix pre for beta versions).
  2. The command should have created a branch matching the new version name and pushed it to the repo. Create a new PR to merge that new branch.
  3. After the PR is merged, create a new release from the pushed tag.
  4. Step 3 should trigger the Publish GH Action and publish the NPM package.

版本与发布记录

@elastic/ebt 共发布 14 个版本,首次发布于 2024/07/24;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.4.1latest2025/10/201.1 年前
1.4.02025/09/041.2 年前
1.3.12025/07/151.3 年前
1.3.02025/07/151.3 年前
1.2.12025/06/111.4 年前
1.2.02025/06/051.4 年前

其他发布通道:beta → 0.0.4。

关于 @elastic/ebt 的常见问题

@elastic/ebt 是什么?

Event-based telemetry for Elastic products

如何安装 @elastic/ebt?

在项目目录运行 npm install @elastic/ebt,或使用 pnpm add / yarn add / bun add。

@elastic/ebt 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/elastic__ebt 是否存在。

@elastic/ebt 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@elastic/ebt 可以商用吗?

@elastic/ebt 使用 SSPL-1.0 OR Elastic License 2.0 许可。可在 SSPL-1.0、Elastic License 2.0 中任选其一遵守。以上为概括,不构成法律意见,请以许可原文为准。

@elastic/ebt 的下载量有多少?

根据 npm 官方下载统计,@elastic/ebt 在 2026/10/13 – 2026/11/11 这 30 天内被下载 179,620 次,日均约 5,987 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@elastic/ebt 还在维护吗?

最新版本 1.4.1 发布于 2025/10/20(1.1 年前);至今共发布 14 个版本,其中过去 12 个月发布了 0 个;首次发布于 2024/07/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。