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

Inline print_value() in ostream exporter #1512

Merged
merged 2 commits into from
Jul 24, 2022

Conversation

ahadnagy
Copy link
Contributor

Changes

The common_utils.h header is being used in multiple build targets in the ostream exporter. This header defines the print_value() function, and because it's not inlined, it causes the build to fail in case it tries to link to more than one ostream exporter.

Solution: inline function.

@ahadnagy ahadnagy requested a review from a team July 22, 2022 20:26
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 22, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: ahadnagy / name: Ákos Hadnagy (523fa2a)

Copy link
Member

@lalitb lalitb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fix.

@codecov
Copy link

codecov bot commented Jul 22, 2022

Codecov Report

Merging #1512 (081698e) into main (a77ec80) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1512   +/-   ##
=======================================
  Coverage   84.72%   84.72%           
=======================================
  Files         155      155           
  Lines        4781     4781           
=======================================
  Hits         4050     4050           
  Misses        731      731           
Impacted Files Coverage Δ
...ude/opentelemetry/exporters/ostream/common_utils.h 100.00% <100.00%> (ø)
...include/opentelemetry/sdk/common/circular_buffer.h 98.00% <0.00%> (-2.00%) ⬇️
ext/src/http/client/curl/http_client_curl.cc 81.44% <0.00%> (+0.38%) ⬆️

Copy link
Member

@esigo esigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks for the fix :)

@esigo esigo merged commit e5cf017 into open-telemetry:main Jul 24, 2022
yxue pushed a commit to yxue/opentelemetry-cpp that referenced this pull request Dec 5, 2022
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.

3 participants