Skip to content

feat(collector): warn at startup when deprecated processors are configured - #2691

Open
wpessers wants to merge 1 commit into
open-telemetry:mainfrom
wpessers:chore/collector/warn-deprecated-processors
Open

wpessers wants to merge 1 commit into
open-telemetry:mainfrom
wpessers:chore/collector/warn-deprecated-processors

Conversation

@wpessers

Copy link
Copy Markdown
Member

Relates to #2272. Prerequisite for #2338.

The attributes, resource, and span processors are deprecated in the default collector layer build (#2273) and #2338 removes them. So far the deprecation is only documented in the README, so users who still have those processors in their config get no runtime signal before the removal lands.

This adds a confmap converter that logs a warning through the extension logger for every configured processor whose type is attributes, resource, or span (named instances such as resource/env are matched too). It runs once when the config is resolved, does not touch the config, and adds nothing to the data path.

Example log line:

WARN  Processor is deprecated in the default collector layer build and will be removed in the next release. Migrate to the transform processor or build a custom layer that includes it. See https://github.com/open-telemetry/opentelemetry-lambda/blob/main/collector/README.md#deprecation-notice  {"processor": "resource/env"}

Intended sequence: release this first, then merge #2338 in the following release. #2338 should also delete this converter.

…gured

The attributes, resource, and span processors are deprecated in the default
collector layer build and will be removed in the next release (open-telemetry#2272, open-telemetry#2338).
Until now the deprecation was only documented in the README, so users with
those processors in their config got no runtime signal.

Add a confmap converter that logs a warning through the extension logger for
every configured processor of a deprecated type. It runs once at config
resolution and does not modify the config.
@wpessers
wpessers requested a review from a team as a code owner October 21, 2026 21:36
@github-actions github-actions Bot added the go Pull requests that update Go code label Oct 21, 2026
for _, name := range found {
c.logger.Warn("Processor is deprecated in the default collector layer build and will be removed in the next release. "+
"Migrate to the transform processor or build a custom layer that includes it. "+
"See https://github.com/open-telemetry/opentelemetry-lambda/blob/main/collector/README.md#deprecation-notice",

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.

Thoughts about pointing this to a tagged release rather than main?

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

Labels

go Pull requests that update Go code

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants