-
Notifications
You must be signed in to change notification settings - Fork 842
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
refactor(exporter-*): remove export * from ...
#5399
refactor(exporter-*): remove export * from ...
#5399
Conversation
``` /home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/exporter-trace-otlp-http/src/index.ts 20:1 warning Using 'ExportAllDeclaration' is not allowed no-restricted-syntax /home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/exporter-trace-otlp-http/src/platform/browser/index.ts 20:1 warning Using 'ExportAllDeclaration' is not allowed no-restricted-syntax /home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/exporter-trace-otlp-http/src/platform/index.ts 20:1 warning Using 'ExportAllDeclaration' is not allowed no-restricted-syntax /home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/exporter-trace-otlp-http/src/platform/node/index.ts 20:1 warning Using 'ExportAllDeclaration' is not allowed no-restricted-syntax ``` The comment say we should do this before the next "major" (minor since we are pre-1.0?) version, which means this is the right time to do it. However, I'm not sure if there is a real need/reason for that. As far as I can tell, this is still exporting exactly the same items and shouldn't cause any breakages? Ref open-telemetry#5365
``` /home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/exporter-trace-otlp-grpc/src/index.ts 20:1 warning Using 'ExportAllDeclaration' is not allowed no-restricted-syntax ``` The comment say we should do this before the next "major" (minor since we are pre-1.0?) version, which means this is the right time to do it. However, I'm not sure if there is a real need/reason for that. As far as I can tell, this is still exporting exactly the same items and shouldn't cause any breakages? Ref open-telemetry#5365
``` /home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/opentelemetry-exporter-metrics-otlp-grpc/src/index.ts 20:1 warning Using 'ExportAllDeclaration' is not allowed no-restricted-syntax ``` The comment say we should do this before the next "major" (minor since we are pre-1.0?) version, which means this is the right time to do it. However, I'm not sure if there is a real need/reason for that. As far as I can tell, this is still exporting exactly the same items and shouldn't cause any breakages? Ref open-telemetry#5365
``` /home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/opentelemetry-exporter-metrics-otlp-proto/src/index.ts 20:1 warning Using 'ExportAllDeclaration' is not allowed no-restricted-syntax ``` The comment say we should do this before the next "major" (minor since we are pre-1.0?) version, which means this is the right time to do it. However, I'm not sure if there is a real need/reason for that. As far as I can tell, this is still exporting exactly the same items and shouldn't cause any breakages? Ref open-telemetry#5365
``` /home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/exporter-logs-otlp-grpc/src/index.ts 20:1 warning Using 'ExportAllDeclaration' is not allowed no-restricted-syntax ``` The comment say we should do this before the next "major" (minor since we are pre-1.0?) version, which means this is the right time to do it. However, I'm not sure if there is a real need/reason for that. As far as I can tell, this is still exporting exactly the same items and shouldn't cause any breakages? Ref open-telemetry#5365
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5399 +/- ##
=======================================
Coverage 94.63% 94.63%
=======================================
Files 318 318
Lines 8032 8032
Branches 1685 1685
=======================================
Hits 7601 7601
Misses 431 431 |
export * from ...
We held some of them back when we updated the other packages to avoid conflicts while I was re-structuring exporters. That's done now. We had some cases in some of these packages that we could not solve without a major refactor. The comment's intention was to ensure that we remove it before marking the package as GA, mainly as a way to ensure we don't export anything we don't intend to. Refs #4186 |
export * from ...
export * from ...
a04284c
/* eslint no-restricted-syntax: ["warn", "ExportAllDeclaration"] -- | ||
* TODO: Replace wildcard export with named exports before next major version | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chancancode A late question on this one. I assume this eslint and TODO comment could now be removed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#5426 added to remove it.
This TODO was handled in open-telemetry#5399.
Which problem is this PR solving?
Fix the following eslint warnings:
Ref #5365
Short description of the changes
The comment say we should do this before the next "major" (minor since we are pre-1.0?) version, which means this is the right time to do it.
However, I'm not sure if there is a real need/reason for that. As far as I can tell, this is still exporting exactly the same items and shouldn't cause any breakages?
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: