Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .chloggen/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
### Changelog folder

This repo uses `chloggen` to manage its changelog files. You can find the source code for the tool [here](https://github.com/open-telemetry/opentelemetry-go-build-tools/tree/main/chloggen).

Here is a quick explanation of the `config.yaml` file for chloggen:

```yaml
# The directory that stores individual changelog entries.
# Each entry is stored in a dedicated yaml file.
# - 'chloggen new' will copy the 'template_yaml' to this directory as a new entry file.
# - 'chloggen validate' will validate that all entry files are valid.
# - 'chloggen update' will read and delete all entry files in this directory, and update 'changelog_md'.
# Specify as relative path from root of repo.
# (Optional) Default: .chloggen
entries_dir: .chloggen

# This file is used as the input for individual changelog entries.
# Specify as relative path from root of repo.
# (Optional) Default: .chloggen/TEMPLATE.yaml
template_yaml: .chloggen/TEMPLATE.yaml

summary_template: .chloggen/summary.tmpl

# The CHANGELOG file or files to which 'chloggen update' will write new entries
# (Optional) Default filename: CHANGELOG.md
change_logs:
user: CHANGELOG.md
api: CHANGELOG-API.md

# The default change_log or change_logs to which an entry should be added.
# If 'change_logs' is specified in this file, and no value is specified for 'default_change_logs',
# then 'change_logs' MUST be specified in every entry file.
default_change_logs: [user]
```
73 changes: 50 additions & 23 deletions .chloggen/config.yaml
Copy link
Copy Markdown
Member Author

@mowies mowies Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments were removed by generating the file with githubgen. I added a readme file to add back the config file documentation

Original file line number Diff line number Diff line change
@@ -1,26 +1,53 @@
# The directory that stores individual changelog entries.
# Each entry is stored in a dedicated yaml file.
# - 'chloggen new' will copy the 'template_yaml' to this directory as a new entry file.
# - 'chloggen validate' will validate that all entry files are valid.
# - 'chloggen update' will read and delete all entry files in this directory, and update 'changelog_md'.
# Specify as relative path from root of repo.
# (Optional) Default: .chloggen
change_logs:
api: CHANGELOG-API.md
user: CHANGELOG.md
default_change_logs:
- user
entries_dir: .chloggen

# This file is used as the input for individual changelog entries.
# Specify as relative path from root of repo.
# (Optional) Default: .chloggen/TEMPLATE.yaml
template_yaml: .chloggen/TEMPLATE.yaml

summary_template: .chloggen/summary.tmpl

# The CHANGELOG file or files to which 'chloggen update' will write new entries
# (Optional) Default filename: CHANGELOG.md
change_logs:
user: CHANGELOG.md
api: CHANGELOG-API.md

# The default change_log or change_logs to which an entry should be added.
# If 'change_logs' is specified in this file, and no value is specified for 'default_change_logs',
# then 'change_logs' MUST be specified in every entry file.
default_change_logs: [user]
components:
- all
- cmd/builder
- cmd/mdatagen
- connector/forward
- connector/sample
- consumer/xconsumer
- docs/rfcs
- exporter/debug
- exporter/nop
- exporter/otlp
- exporter/otlphttp
- extension/memory_limiter
- extension/xextension
- extension/xextension
- extension/zpages
- pdata/pprofile
- pkg/confmap
- pkg/exporterhelper
- pkg/pdata
- pkg/processorhelper
- pkg/queuebatch
- pkg/receiverhelper
- pkg/scraper
- pkg/scraperhelper
- pkg/service
- pkg/xconnector
- pkg/xexporter
- pkg/xexporterhelper
- pkg/xprocessor
- pkg/xreceiver
- processor/batch
- processor/memory_limiter
- processor/sample
- provider/env
- provider/file
- provider/http
- provider/https
- provider/yaml
- receiver/nop
- receiver/otlp
- receiver/sample
- receiver/sample
- scraper/sample
- service/graph
2 changes: 1 addition & 1 deletion .chloggen/control-attribute-enabled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: mdatagen
component: cmd/mdatagen

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Improve validation for resource attribute `enabled` field in metadata files
Expand Down
4 changes: 2 additions & 2 deletions .chloggen/fix_cmd_mdata-gen-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: mdatagen
component: cmd/mdatagen

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Fix mdatagen generated_metrics for connectors
Expand All @@ -22,4 +22,4 @@ subtext:
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [api]
change_logs: [api]
25 changes: 25 additions & 0 deletions .chloggen/mowies-standardize-chloggen-components.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Use this changelog template to create an entry for release notes.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: all

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Changelog entries will now have their component field checked against a list of valid components.

# One or more tracking issues or pull requests related to the change
issues: [13924]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext: This will ensure a more standardized changelog format which makes it easier to parse.

# Optional: The change log or logs in which this entry should be included.
# e.g. '[user]' or '[user, api]'
# Include 'user' if the change is relevant to end users.
# Include 'api' if there is a change to a library API.
# Default: '[user]'
change_logs: [user]
2 changes: 1 addition & 1 deletion .chloggen/mx-psi_configoptional-1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: configoptional
component: all
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should all changes to config/* or service be labeled as component: all from now on?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, i'd say so. all is the only catch-all label that's there for now. That's of course something we could change in the future though.


# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Mark configoptional as stable
Expand Down
2 changes: 1 addition & 1 deletion .chloggen/mx-psi_mark-configauth-as-1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: configauth
component: all

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Mark configauth module as 1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
change_type: breaking

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: exporterhelper
component: pkg/exporterhelper

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Remove all experimental symbols in exporterhelper
Expand Down
2 changes: 1 addition & 1 deletion .chloggen/stable-use-custom-proto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
change_type: enhancement

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: pdata
component: pkg/pdata

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Mark featuregate pdata.useCustomProtoEncoding as stable
Expand Down
2 changes: 1 addition & 1 deletion .chloggen/telemetry-tracesconfig-deprecated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
change_type: deprecation

# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
component: service
component: all

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: service/telemetry.TracesConfig is deprecated
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ jobs:
echo "CHANGELOG.md and CHANGELOG-API.md were not modified."
fi

- name: Ensure changelog config.yaml is up to date
run: |
make generate-chloggen-components
if [[ $(git diff --name-only) ]]; then
echo ".chloggen/config.yaml is out of date. Please run 'make generate-chloggen-components' and commit the changes."
false
else
echo ".chloggen/config.yaml is up to date."
fi
git checkout $PR_HEAD -- ./.chloggen/config.yaml

- name: Ensure ./.chloggen/*.yaml addition(s)
run: |
if [[ 1 -gt $(git diff --diff-filter=A --name-only $(git merge-base origin/main $PR_HEAD) $PR_HEAD ./.chloggen | grep -c \\.yaml) ]]
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -475,3 +475,7 @@ gengithub: $(GITHUBGEN) generate-codeowners generate-gh-issue-templates
.PHONY: gendistributions
gendistributions: $(GITHUBGEN)
$(GITHUBGEN) distributions

.PHONY: generate-chloggen-components
generate-chloggen-components: $(GITHUBGEN)
$(GITHUBGEN) chloggen-components
Loading