Skip to content

NH-137757 - Pull upstream vulnerabilities fix - #72

Merged
jerrytfleung merged 3 commits into
swofrom
sync_20260716
Jul 17, 2026
Merged

NH-137757 - Pull upstream vulnerabilities fix#72
jerrytfleung merged 3 commits into
swofrom
sync_20260716

Conversation

@jerrytfleung

@jerrytfleung jerrytfleung commented Jul 16, 2026

Copy link
Copy Markdown

@jerrytfleung
jerrytfleung changed the base branch from main to swo July 16, 2026 17:34
@jerrytfleung jerrytfleung changed the title Sync 20260716 NH-137757 - Pull upstream vulnerabilities fix Jul 16, 2026
@jerrytfleung
jerrytfleung marked this pull request as ready for review July 16, 2026 19:31
@jerrytfleung
jerrytfleung requested review from a team and Copilot July 16, 2026 19:31

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 pulls in upstream OpenTelemetry Collector/Contrib dependency updates (including Prometheus-related components) to address reported vulnerabilities, and adjusts collector/extension logging behavior and packaging metadata to align with the updated stack.

Changes:

  • Bump OpenTelemetry Collector/Contrib, Prometheus, gRPC, and golang.org/x* dependencies across collector modules (v0.151.0v0.156.0, v1.57.0v1.62.0, etc.).
  • Refactor extension logger initialization into collector/internal/logging and update collector log-core wiring/tests to validate collector vs. extension log-level separation.
  • Update layer publishing/runtime metadata and default collector config (notably removing the Prometheus pull-reader config block).

Reviewed changes

Copilot reviewed 15 out of 21 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
collector/receiver/telemetryapireceiver/go.mod Bumps receiver module deps to newer otelcol versions.
collector/receiver/telemetryapireceiver/go.sum Updates checksums for bumped receiver dependencies.
collector/processor/decoupleprocessor/go.mod Bumps processor module deps to newer otelcol versions.
collector/processor/decoupleprocessor/go.sum Updates checksums for bumped decoupleprocessor dependencies.
collector/processor/coldstartprocessor/go.mod Bumps coldstartprocessor deps to newer otelcol versions.
collector/processor/coldstartprocessor/go.sum Updates checksums for bumped coldstartprocessor dependencies.
collector/lambdacomponents/go.mod Bumps contrib components (incl. Prometheus) and related indirect deps.
collector/go.mod Bumps top-level collector and provider/component deps to the updated otelcol versions.
collector/internal/tools/go.mod Bumps toolchain dependencies (x/tools, x/exp, etc.).
collector/internal/tools/go.sum Updates checksums for toolchain dependency bumps.
collector/main.go Switches to centralized internal logging package for extension logger setup.
collector/main_test.go Removes tests tied to the old initLogger function.
collector/internal/logging/logger.go Introduces shared logger/core creation for the extension.
collector/internal/logging/logger_test.go Adds unit tests for log-level parsing behavior.
collector/internal/collector/collector.go Changes collector logging core wiring to use logging.NewCore.
collector/internal/collector/collector_test.go Updates/adds tests to assert collector vs. extension log-level separation.
collector/internal/collector/testdata/config-info-level.yaml Adds config fixture for collector telemetry log level = info.
collector/Makefile Updates Lambda layer publish compatible runtimes list (drops python3.9).
collector/config.yaml Removes Prometheus pull-reader telemetry config from the default config.

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

Comment on lines +46 to +48
// parseLevel resolves the extension log level from the env var value,
// falling back to INFO and returning an error if the value is invalid.
func parseLevel(envLvl string) (zap.AtomicLevel, error) {
"go.uber.org/zap/zapcore"
)

func TestParseLevelDefaultsToInfoWhenUnset(t *testing.T) {
Comment on lines +37 to +41
func TestParseLevelFallsBackToInfoAndErrorsOnInvalid(t *testing.T) {
lvl, err := parseLevel("not-a-level")
require.Error(t, err)
assert.Equal(t, zapcore.WarnLevel, lvl.Level(), "should fall back to INFO")
}
Comment thread collector/Makefile
.PHONY: publish
publish:
aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(ARCH).zip --compatible-runtimes nodejs20.x nodejs22.x nodejs24.x java11 java17 java21 java25 python3.9 python3.10 python3.11 python3.12 python3.13 python3.14 --compatible-architectures $(ARCH) --query 'LayerVersionArn' --output text
aws lambda publish-layer-version --layer-name $(LAYER_NAME) --zip-file fileb://$(BUILD_SPACE)/opentelemetry-collector-layer-$(ARCH).zip --compatible-runtimes nodejs20.x nodejs22.x nodejs24.x java11 java17 java21 java25 python3.10 python3.11 python3.12 python3.13 python3.14 --compatible-architectures $(ARCH) --query 'LayerVersionArn' --output text

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is acknowledged already in APM Python relnotes

Comment thread collector/config.yaml
Comment on lines 46 to 60
service:
extensions: [solarwindsapmsettings]
pipelines:
traces:
receivers: [otlp]
processors: [resource,resourcedetection,batch]
exporters: [otlp,debug]
metrics:
receivers: [otlp,telemetryapi]
processors: [resource,resourcedetection,batch]
exporters: [otlp,debug]
logs:
receivers: [otlp,telemetryapi]
processors: [resource,resourcedetection,batch]
exporters: [otlp,debug]

@tammy-baylis-swi tammy-baylis-swi 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.

Lgtm. This is a sync so it's simpler to not address copilot nits

@jerrytfleung
jerrytfleung merged commit 447c71d into swo Jul 17, 2026
5 checks passed
@jerrytfleung
jerrytfleung deleted the sync_20260716 branch July 17, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants