Skip to content

fix: add missing decoupleprocessor module requires/replaces - #5

Merged
meijeran merged 1 commit into
mainfrom
fix/decoupleprocessor-go-mod
Jul 6, 2026
Merged

fix: add missing decoupleprocessor module requires/replaces#5
meijeran merged 1 commit into
mainfrom
fix/decoupleprocessor-go-mod

Conversation

@meijeran

@meijeran meijeran commented Jul 6, 2026

Copy link
Copy Markdown
Owner

default.go imports decoupleprocessor (and transitively lambdalifecycle) from the opentelemetry-lambda submodule, but go.mod never declared them. Both are unpublished local modules, so go test fails to resolve the import. Add local filesystem replace directives pointing into the submodule.

Description: <Describe what has changed.
Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.>

Link to tracking Issue:

Testing: < Describe what testing was performed and which tests were added.>

Documentation: < Describe the documentation added.>

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

default.go imports decoupleprocessor (and transitively lambdalifecycle)
from the opentelemetry-lambda submodule, but go.mod never declared them.
Both are unpublished local modules, so go test fails to resolve the
import. Add local filesystem replace directives pointing into the
submodule.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the adot/collector/lambdacomponents Go module dependency metadata so imports from the opentelemetry-lambda submodule (notably decoupleprocessor, plus transitive lambdalifecycle) can be resolved without Go attempting to auto-edit go.mod during go test.

Changes:

  • Add require entries for decoupleprocessor and lambdalifecycle, and add local replace directives pointing into the opentelemetry-lambda submodule.
  • Add processorhelper to module requirements and update go.sum accordingly.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
adot/collector/lambdacomponents/go.mod Adds missing module requirements and local filesystem replace directives for opentelemetry-lambda components.
adot/collector/lambdacomponents/go.sum Records new sums for processorhelper after dependency graph changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +20 to 24
require go.opentelemetry.io/collector/processor/processorhelper v0.138.0 // indirect

require (
cloud.google.com/go/auth v0.18.2 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
Comment thread adot/collector/lambdacomponents/go.mod
@meijeran
meijeran merged commit a6d13d2 into main Jul 6, 2026
1 of 2 checks passed
@meijeran
meijeran deleted the fix/decoupleprocessor-go-mod branch July 6, 2026 11:11
Copilot stopped work on behalf of meijeran due to an error July 6, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants