Collector Component Automation

Explanation of the automation process for OpenTelemetry Collector components.

The tables within the OpenTelemetry Collector components pages are automatically synchronized with data from the OpenTelemetry Ecosystem Explorer registry. The code that manages this process is located in scripts/collector-sync.

The synchronization process is managed by a GitHub Action that runs on a schedule (collector-sync.yml).

Every night the GitHub Action performs the following steps:

  1. Fetches the latest data from the OpenTelemetry Ecosystem Explorer registry.
  2. Based on the registry data, it will update the associated component data files in data/collector/.
  3. If there are any changes to the component data files, it will generate a PR with the updates.

All component pages reference shortcodes that pull in the relevant data from the data/collector/ directory, so when the data files are updated, the tables on the component pages will automatically reflect the latest information.

Related files and directories:

Translations

In order to create a new translation for the Collector components pages, you can follow these steps:

  • Copy the existing English content from content/en/docs/collector/components to the corresponding directory for the new language (e.g., content/es/docs/collector/components for Spanish).
  • Translate the static content (titles, descriptions, etc.) in the new language.
  • Ensure that the associated i18n/<language>.yml file exists, and has entries for the collector_components_ prefixed keys that are used in the component tables. You can copy the English entries and translate the values.