Skip to content
New issue

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

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

Already on GitHub? # to your account

[service] fix v0.2.0 to v0.3.0 conversion bug #12438

Merged
merged 9 commits into from
Feb 20, 2025

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Feb 20, 2025

Converting headers from config schema v0.2.0 to v0.3.0 was causing a nil dereferencing issue by incorrectly setting the name/value pair to a nil pointer. Added a test in both the loading of the config in otelcol, as well as the migration code unit test.

Fixes #12439

Converting headers from config schema v0.2.0 to v0.3.0 was causing
a nil dereferencing issue by incorrectly setting the name/value
pair to a nil pointer. Added a test in both the loading of the config
in otelcol, as well as the migration code unit test.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
@codeboten codeboten requested a review from a team as a code owner February 20, 2025 03:25
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
@codeboten codeboten enabled auto-merge February 20, 2025 15:45
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
@codeboten
Copy link
Contributor Author

The failing test is blocked by #12437

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

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.19%. Comparing base (f024b0d) to head (ff73b42).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12438      +/-   ##
==========================================
- Coverage   92.19%   92.19%   -0.01%     
==========================================
  Files         466      466              
  Lines       25325    25324       -1     
==========================================
- Hits        23348    23347       -1     
  Misses       1577     1577              
  Partials      400      400              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codeboten codeboten added this pull request to the merge queue Feb 20, 2025
Merged via the queue into open-telemetry:main with commit 782749d Feb 20, 2025
55 checks passed
@codeboten codeboten deleted the codeboten/bump-config-pkg branch February 20, 2025 20:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

telemetry configuration causes crash at startup
2 participants