Skip to content

config: fix issue causing a crash on invalid value#6752

Merged
dmathieu merged 3 commits into
open-telemetry:mainfrom
codeboten:codeboten/dontcrashonnilvalue
Feb 12, 2025
Merged

config: fix issue causing a crash on invalid value#6752
dmathieu merged 3 commits into
open-telemetry:mainfrom
codeboten:codeboten/dontcrashonnilvalue

Conversation

@codeboten
Copy link
Copy Markdown
Contributor

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.

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 codeboten requested review from a team and pellared as code owners February 10, 2025 23:43
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 10, 2025

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     
=====================================
+ Hits       13768   13775    +7     
+ Misses      4144    4140    -4     
+ Partials     410     408    -2     
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 dmathieu merged commit 33e13b3 into open-telemetry:main Feb 12, 2025
@codeboten codeboten deleted the codeboten/dontcrashonnilvalue branch February 19, 2025 22:59
@XSAM XSAM added this to the v1.35.0 milestone Mar 4, 2025
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.

5 participants