Skip to content

[CODE HEALTH] clean up nostd::variant access in otlp exporters#3973

Draft
dbarker wants to merge 4 commits intoopen-telemetry:mainfrom
dbarker:cleanup_nostd_variant_access_otlp_exporters
Draft

[CODE HEALTH] clean up nostd::variant access in otlp exporters#3973
dbarker wants to merge 4 commits intoopen-telemetry:mainfrom
dbarker:cleanup_nostd_variant_access_otlp_exporters

Conversation

@dbarker
Copy link
Copy Markdown
Member

@dbarker dbarker commented Apr 8, 2026

Fixes # (issue)

Changes

  • clean up use of nostd::holds_alternative/nostd::get if/else pattern
    • replace with nostd::visit in otlp AnyValue attribute utils
    • replace with nostd::get_if in otlp http client and otlp metric utils
  • Add tests for OtlpPopulateAttributeUtils
  • minor updates to OtlpMetricUtils to reduce data point copies and use const
  • update conversion of uint64 attribute values to match the standard (map to string on overflow of int).

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.18%. Comparing base (fef7bbb) to head (d03999c).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3973   +/-   ##
=======================================
  Coverage   90.18%   90.18%           
=======================================
  Files         230      230           
  Lines        7298     7298           
=======================================
  Hits         6581     6581           
  Misses        717      717           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbarker dbarker force-pushed the cleanup_nostd_variant_access_otlp_exporters branch 3 times, most recently from 6ed236d to 1948936 Compare April 9, 2026 13:42
@dbarker dbarker force-pushed the cleanup_nostd_variant_access_otlp_exporters branch from 1948936 to d03999c Compare April 9, 2026 15:27
@dbarker dbarker added the pr:do-not-merge This PR is not ready to be merged. label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:do-not-merge This PR is not ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant