Skip to content

refactor(sdk-node): fix eslint warning#5400

Merged
pichlermarc merged 4 commits intoopen-telemetry:mainfrom
tildeio:eslint-warning-sdk-node
Jul 4, 2025
Merged

refactor(sdk-node): fix eslint warning#5400
pichlermarc merged 4 commits intoopen-telemetry:mainfrom
tildeio:eslint-warning-sdk-node

Conversation

@chancancode
Copy link
Copy Markdown
Contributor

Which problem is this PR solving?

Fixes the following eslint warnings from the sdk-node package:

/home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/opentelemetry-sdk-node/src/index.ts
  20:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  21:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  22:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  23:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  24:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  25:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  26:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  27:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax

Ref #5365

Short description of the changes

This feels a bit different than the other ones (#5399), as this is a meta- package, and these are wildcard exports to re-export all the public exports from the upstream packages into individual namespaces.

There is no risk of accidentally exporting something that wasn't meant to be public, and it would be a huge pain to enumerate things from each of the upstream packages and keep things in-sync.

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

@chancancode chancancode requested a review from a team as a code owner January 30, 2025 02:03
@chancancode chancancode mentioned this pull request Jan 30, 2025
25 tasks
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.04%. Comparing base (56df3c0) to head (6669e36).
Report is 16 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5400   +/-   ##
=======================================
  Coverage   95.04%   95.04%           
=======================================
  Files         310      310           
  Lines        8008     8008           
  Branches     1616     1616           
=======================================
  Hits         7611     7611           
  Misses        397      397           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

```
/home/runner/work/opentelemetry-js/opentelemetry-js/experimental/packages/opentelemetry-sdk-node/src/index.ts
  20:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  21:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  22:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  23:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  24:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  25:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  26:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
  27:1  warning  Using 'ExportAllDeclaration' is not allowed  no-restricted-syntax
```

This feels a bit different than the other ones, as this is a meta-
package, and these are wildcard exports to re-export all the public
exports from the upstream packages into individual _namespaces_.

There is no risk of accidentally exporting something that wasn't
meant to be public, and it would be a huge pain to enumerate things
from each of the upstream packages and keep things in-sync.

Ref open-telemetry#5365
@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions Bot added the stale label May 12, 2025
Comment thread experimental/packages/opentelemetry-sdk-node/src/index.ts Outdated
@github-actions github-actions Bot removed the stale label May 26, 2025
@pichlermarc pichlermarc added this pull request to the merge queue Jul 4, 2025
Merged via the queue into open-telemetry:main with commit 553db87 Jul 4, 2025
25 checks passed
@opentelemetrybot
Copy link
Copy Markdown
Contributor

Thank you for your contribution @chancancode! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

martinkuba pushed a commit to martinkuba/opentelemetry-js that referenced this pull request Jul 17, 2025
Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants