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

refactor(exporter-trace-otlp-http): fix eslint warnings #5398

Conversation

chancancode
Copy link
Contributor

Which problem is this PR solving?

Fix the following eslint warnings in the exporter-trace-otlp-http package:

/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

Ref #5365

Short description of the changes

The existing eslint comment wasn't working because it was in the wrong format.

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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

  • eslint

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

```
/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 existing eslint comment wasn't working because it was in the
wrong format.

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?
@chancancode chancancode requested a review from a team as a code owner January 30, 2025 00:46
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.63%. Comparing base (3c040c4) to head (11d5353).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5398   +/-   ##
=======================================
  Coverage   94.63%   94.63%           
=======================================
  Files         318      318           
  Lines        8032     8032           
  Branches     1685     1685           
=======================================
  Hits         7601     7601           
  Misses        431      431           

@chancancode chancancode mentioned this pull request Jan 29, 2025
25 tasks
@chancancode
Copy link
Contributor Author

There are a bunch of these across packages, closing this and consolidating those changes into a single PR

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.

1 participant