open-telemetry / opentelemetry-cpp

The OpenTelemetry C++ Client
https://opentelemetry.io/
Apache License 2.0
815 stars 391 forks source link

[CI] include-what-you-use #2629

Closed marcalff closed 1 month ago

marcalff commented 2 months ago

Fixes #2052

Contributes to #2054

Changes

Please provide a brief description of the changes here.

Remaining work

The following is to be implemented later, once cleanup is completed:

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

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.70%. Comparing base (497eaf4) to head (1ad587c). Report is 68 commits behind head on main.

:exclamation: Current head 1ad587c differs from pull request most recent head 686039d

Please upload reports for the commit 686039d to get more accurate results.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629/graphs/tree.svg?width=650&height=150&src=pr&token=FJESTYQ2AD&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry)](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry) ```diff @@ Coverage Diff @@ ## main #2629 +/- ## ========================================== + Coverage 87.12% 87.70% +0.58% ========================================== Files 200 190 -10 Lines 6109 5852 -257 ========================================== - Hits 5322 5132 -190 + Misses 787 720 -67 ``` | [Files](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry) | Coverage Δ | | |---|---|---| | [...lude/opentelemetry/sdk/common/global\_log\_handler.h](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&filepath=sdk%2Finclude%2Fopentelemetry%2Fsdk%2Fcommon%2Fglobal_log_handler.h&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2RrL2luY2x1ZGUvb3BlbnRlbGVtZXRyeS9zZGsvY29tbW9uL2dsb2JhbF9sb2dfaGFuZGxlci5o) | `63.16% <ø> (-9.06%)` | :arrow_down: | | [...ude/opentelemetry/sdk/trace/batch\_span\_processor.h](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&filepath=sdk%2Finclude%2Fopentelemetry%2Fsdk%2Ftrace%2Fbatch_span_processor.h&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2RrL2luY2x1ZGUvb3BlbnRlbGVtZXRyeS9zZGsvdHJhY2UvYmF0Y2hfc3Bhbl9wcm9jZXNzb3IuaA==) | `100.00% <ø> (ø)` | | | [...lude/opentelemetry/sdk/trace/random\_id\_generator.h](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&filepath=sdk%2Finclude%2Fopentelemetry%2Fsdk%2Ftrace%2Frandom_id_generator.h&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2RrL2luY2x1ZGUvb3BlbnRlbGVtZXRyeS9zZGsvdHJhY2UvcmFuZG9tX2lkX2dlbmVyYXRvci5o) | `100.00% <ø> (ø)` | | | [sdk/include/opentelemetry/sdk/trace/tracer.h](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&filepath=sdk%2Finclude%2Fopentelemetry%2Fsdk%2Ftrace%2Ftracer.h&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2RrL2luY2x1ZGUvb3BlbnRlbGVtZXRyeS9zZGsvdHJhY2UvdHJhY2VyLmg=) | `100.00% <ø> (ø)` | | | [...k/include/opentelemetry/sdk/trace/tracer\_context.h](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&filepath=sdk%2Finclude%2Fopentelemetry%2Fsdk%2Ftrace%2Ftracer_context.h&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2RrL2luY2x1ZGUvb3BlbnRlbGVtZXRyeS9zZGsvdHJhY2UvdHJhY2VyX2NvbnRleHQuaA==) | `100.00% <ø> (ø)` | | | [sdk/src/common/base64.cc](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&filepath=sdk%2Fsrc%2Fcommon%2Fbase64.cc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2RrL3NyYy9jb21tb24vYmFzZTY0LmNj) | `82.40% <ø> (ø)` | | | [sdk/src/common/env\_variables.cc](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&filepath=sdk%2Fsrc%2Fcommon%2Fenv_variables.cc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2RrL3NyYy9jb21tb24vZW52X3ZhcmlhYmxlcy5jYw==) | `98.53% <ø> (ø)` | | | [sdk/src/common/platform/fork\_unix.cc](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&filepath=sdk%2Fsrc%2Fcommon%2Fplatform%2Ffork_unix.cc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2RrL3NyYy9jb21tb24vcGxhdGZvcm0vZm9ya191bml4LmNj) | `100.00% <ø> (ø)` | | | [sdk/src/resource/resource.cc](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&filepath=sdk%2Fsrc%2Fresource%2Fresource.cc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2RrL3NyYy9yZXNvdXJjZS9yZXNvdXJjZS5jYw==) | `96.30% <ø> (ø)` | | | [sdk/src/resource/resource\_detector.cc](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree&filepath=sdk%2Fsrc%2Fresource%2Fresource_detector.cc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry#diff-c2RrL3NyYy9yZXNvdXJjZS9yZXNvdXJjZV9kZXRlY3Rvci5jYw==) | `100.00% <ø> (ø)` | | | ... and [11 more](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry) | | ... and [56 files with indirect coverage changes](https://app.codecov.io/gh/open-telemetry/opentelemetry-cpp/pull/2629/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-telemetry)