Skip to content

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

Merged
wpessers merged 2 commits into
open-telemetry:mainfrom
wpessers:chore/collector/warn-deprecated-processors
Oct 22, 2026
Merged

wpessers merged 2 commits 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
@github-project-automation github-project-automation Bot moved this from Todo to Need more Approval in Lambda Triage Oct 22, 2026
@wpessers
wpessers merged commit a474e36 into open-telemetry:main Oct 22, 2026
17 checks passed
@github-project-automation github-project-automation Bot moved this from Need more Approval to Done in Lambda Triage Oct 22, 2026
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: Done

Development

Successfully merging this pull request may close these issues.

2 participants