config: fix issue causing a crash on invalid value by codeboten · Pull Request #6752 · open-telemetry/opentelemetry-go-contrib (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

dmathieu

merged 3 commits into

Feb 12, 2025

Conversation

@codeboten

This addresses a bug that was uncovered in the collector after updating to the latest version of config where an unset value in the NameStringValuePair results in a nil dereferencing.

@codeboten

This addresses a bug that was uncovered in the collector after updating to the latest version of config where an unset value in the NameStringValuePair results in a nil dereferencing.

Signed-off-by: Alex Boten 223565+codeboten@users.noreply.github.com

@codeboten

Signed-off-by: Alex Boten 223565+codeboten@users.noreply.github.com

@codecov

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.1%. Comparing base (daafaee) to head (08324a5).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@ Coverage Diff @@ ## main #6752 +/- ##

Coverage 75.1% 75.1%

Files 203 203
Lines 18322 18323 +1

Files with missing lines Coverage Δ
config/v0.3.0/config.go 88.6% <100.0%> (+0.1%) ⬆️

... and 1 file with indirect coverage changes

dmathieu

mx-psi

dashpole

@dmathieu

@codeboten codeboten deleted the codeboten/dontcrashonnilvalue branch

February 19, 2025 22:59

@XSAM XSAM mentioned this pull request

Mar 5, 2025

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})