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

Get rid of obsolete core namespace in API #686

Merged
merged 8 commits into from
Apr 22, 2021

Conversation

pyohannes
Copy link
Contributor

Changes

The API has a opentelemetry::core namespace, which currently contains the classes SystemTimestamp and SteadyTimestamp. I see no reason for having separate opentelemetry::core and opentelemetry::common namespace, and I think it would be easier to just have one namespace for components that are shared for multiple OpenTelemetry signals.

This PR simplifies the API namespaces layout by removing the opentelemetry::core namespace and moving its items to opentelemetry::common.

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

@pyohannes pyohannes requested a review from a team April 21, 2021 01:23
@@ -27,7 +27,7 @@ class SpanDataEvent
{
public:
SpanDataEvent(std::string name,
core::SystemTimestamp timestamp,
opentelemetry::common::SystemTimestamp timestamp,
Copy link
Contributor

Choose a reason for hiding this comment

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

Define namespace alias to simplify the namespace reference?

@codecov
Copy link

codecov bot commented Apr 21, 2021

Codecov Report

Merging #686 (c0fa5fa) into main (c8c697f) will increase coverage by 0.00%.
The diff coverage is 90.32%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #686   +/-   ##
=======================================
  Coverage   94.76%   94.76%           
=======================================
  Files         210      210           
  Lines        9644     9647    +3     
=======================================
+ Hits         9139     9142    +3     
  Misses        505      505           
Impacted Files Coverage Δ
api/include/opentelemetry/common/timestamp.h 100.00% <ø> (ø)
api/include/opentelemetry/logs/logger.h 100.00% <ø> (ø)
api/include/opentelemetry/logs/noop.h 100.00% <ø> (ø)
api/include/opentelemetry/trace/default_span.h 14.28% <0.00%> (ø)
api/include/opentelemetry/trace/span.h 100.00% <ø> (ø)
api/test/core/timestamp_test.cc 100.00% <ø> (ø)
api/test/logs/logger_test.cc 90.90% <ø> (ø)
api/test/trace/noop_test.cc 100.00% <ø> (ø)
ext/test/zpages/tracez_data_aggregator_test.cc 96.35% <ø> (ø)
sdk/include/opentelemetry/sdk/logs/recordable.h 100.00% <ø> (ø)
... and 17 more

@pyohannes pyohannes added the pr:please-merge This PR is ready to be merged by a Maintainer (rebased, CI passed, has enough valid approvals, etc.) label Apr 22, 2021
@lalitb lalitb merged commit a978920 into open-telemetry:main Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:please-merge This PR is ready to be merged by a Maintainer (rebased, CI passed, has enough valid approvals, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants