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

Align internal no-op implementations into Noop namespaces. #1262

Closed

Conversation

ChrisLightfootWild
Copy link
Contributor

I noticed the noop namespace for metrics (\OpenTelemetry\API\Metrics\Noop) and had seen the other signals did not follow the same pattern.

Some IDE magic moved these around quickly so I thought I'd open a PR.

These are marked as internal, so by my understanding we could theoretically move them without breaking our public API. Whether we should is a different question, so I leave that to feedback.

@ChrisLightfootWild ChrisLightfootWild requested a review from a team March 21, 2024 00:15
@ChrisLightfootWild ChrisLightfootWild marked this pull request as draft March 21, 2024 00:18
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.87%. Comparing base (a1489d3) to head (7b4809f).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #1262   +/-   ##
=========================================
  Coverage     83.87%   83.87%           
  Complexity     2136     2136           
=========================================
  Files           296      296           
  Lines          6104     6104           
=========================================
  Hits           5120     5120           
  Misses          984      984           
Flag Coverage Δ
8.1 83.87% <100.00%> (ø)
8.2 83.87% <100.00%> (ø)
8.3 83.87% <100.00%> (ø)
8.4 83.87% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/API/Instrumentation/Configurator.php 100.00% <ø> (ø)
src/API/Instrumentation/InstrumentationTrait.php 95.23% <ø> (ø)
src/API/Logs/Noop/NoopLogger.php 100.00% <ø> (ø)
src/API/Logs/Noop/NoopLoggerProvider.php 100.00% <ø> (ø)
src/API/Trace/Noop/NonRecordingSpan.php 100.00% <ø> (ø)
src/API/Trace/Noop/NoopSpanBuilder.php 100.00% <ø> (ø)
src/API/Trace/Noop/NoopTracer.php 0.00% <ø> (ø)
src/API/Trace/Noop/NoopTracerProvider.php 0.00% <ø> (ø)
src/API/Trace/Span.php 0.00% <ø> (ø)
src/SDK/Logs/LoggerProvider.php 87.50% <ø> (ø)
... and 4 more

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1489d3...7b4809f. Read the comment docs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this should be moved into Noop, since it's not directly related to noop traces (it is used by Span too)

@brettmc
Copy link
Collaborator

brettmc commented Mar 21, 2024

These are marked as internal

Many aren't marked as internal (and somebody doing manual configuration might have cause to, for example, create a noop tracer provider). So, I think it's a BC break and we might need to plan for it (or, at least document it in the release notes)

@ChrisLightfootWild
Copy link
Contributor Author

These are marked as internal

Many aren't marked as internal (and somebody doing manual configuration might have cause to, for example, create a noop tracer provider). So, I think it's a BC break and we might need to plan for it (or, at least document it in the release notes)

Given that is the case, it is probably best to close this one off for now. 👍

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.

2 participants