Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: fix panic on nil value in headers name/value pair #6425

Merged
merged 10 commits into from
Dec 12, 2024

Conversation

codeboten
Copy link
Contributor

Found a bug during testing of v0.3.0 support with the Collector where the value passed in to the headers name/value pair list could be nil, causing a dereferencing error. This fixes that bug.

Found a bug during testing of v0.3.0 support with the Collector where the value
passed in to the headers name/value pair list could be nil, causing a dereferencing
error. This fixes that bug.

Signed-off-by: Alex Boten <[email protected]>
@codeboten codeboten requested review from pellared and a team as code owners December 11, 2024 16:41
Signed-off-by: Alex Boten <[email protected]>
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 61.53846% with 15 lines in your changes missing coverage. Please review.

Project coverage is 67.8%. Comparing base (1606707) to head (4f84afc).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
config/v0.3.0/config_yaml.go 62.5% 6 Missing and 3 partials ⚠️
config/v0.3.0/config_json.go 60.0% 4 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #6425   +/-   ##
=====================================
  Coverage   67.8%   67.8%           
=====================================
  Files        200     200           
  Lines      16605   16635   +30     
=====================================
+ Hits       11267   11291   +24     
- Misses      4995    4999    +4     
- Partials     343     345    +2     
Files with missing lines Coverage Δ
config/v0.3.0/config_json.go 49.2% <60.0%> (+2.1%) ⬆️
config/v0.3.0/config_yaml.go 62.5% <62.5%> (ø)

config/v0.3.0/config_yaml.go Outdated Show resolved Hide resolved
config/v0.3.0/config_yaml.go Outdated Show resolved Hide resolved
Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
config/v0.3.0/config_json.go Outdated Show resolved Hide resolved
config/v0.3.0/config_yaml.go Outdated Show resolved Hide resolved
@MrAlias MrAlias merged commit 378d704 into open-telemetry:main Dec 12, 2024
25 of 26 checks passed
@MrAlias MrAlias added this to the v1.33.0 milestone Dec 12, 2024
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.

4 participants