Move implementation from SDK header files to SDK cc#3887
Move implementation from SDK header files to SDK cc#3887perhapsmaple wants to merge 19 commits intoopen-telemetry:mainfrom
Conversation
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3887 +/- ##
==========================================
+ Coverage 90.12% 90.13% +0.02%
==========================================
Files 227 230 +3
Lines 7261 7293 +32
==========================================
+ Hits 6543 6573 +30
- Misses 718 720 +2
🚀 New features to boost your workflow:
|
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
marcalff
left a comment
There was a problem hiding this comment.
Thanks for the fix.
This has a good size already, so please stabilize this PR to make it ready for review and merge. More files can be changed in a different PR, if so inclined.
To fix:
- IWYU build failures
- look for "Warning: include-what-you-use reported diagnostics:" in the build logs, in section iwyu_tool
- Resolve merge conflicts
- clang-format
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
| */ | ||
| static const opentelemetry::common::KeyValueIterableView< | ||
| std::array<std::pair<std::string, int32_t>, 0>> & | ||
| GetEmptyAttributes() noexcept |
There was a problem hiding this comment.
GetEmptyAttributes() was previously a static free function (header-only, internal linkage). It's now an externally-linked symbol requiring linkage against opentelemetry_common. While this shouldn't be an issue in practice, someone could theoretically be including this header standalone without linking the SDK - for their own utility purposes - and that would now fail with an undefined symbol error. Please add a CHANGELOG entry noting this change.
lalitb
left a comment
There was a problem hiding this comment.
Thanks for the PR. LGTM once the CI and merge conflict are resolved.
There was a problem hiding this comment.
Move this and SpanDataLink::GetAttributes to .cc for consistency, since SpanData::GetAttributes has been moved to .cc.
|
@perhapsmaple - Would you be resolving the remaining comments, so it can be merged. thanks. |
|
@lalitb Sorry I've been a little busy the last couple of weeks. Please give me a couple of days time to fix the remaining comments |
|
When moving code from x.h to x.cc, make sure to preserve the clang-tidy cleanup implemented in x.h recently, if any, when merging with a recent main. |
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
| deps = [ | ||
| "//api", | ||
| "//sdk:headers", | ||
| "//sdk/src/common:empty_attributes", |
There was a problem hiding this comment.
Seems this is not added to CMakeLists.txt?
There was a problem hiding this comment.
Good catch. I also found circular_buffer_test which is in CMake but missing from Bazel
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Signed-off-by: Harish <140232061+perhapsmaple@users.noreply.github.com>
Contributes to #1429
Changes
Please provide a brief description of the changes here.
For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes