Skip to content

fix(core): Avoid using DOM types for otperformance export#6278

Merged
pichlermarc merged 4 commits intoopen-telemetry:mainfrom
samchungy:create-global-type
Jan 14, 2026
Merged

fix(core): Avoid using DOM types for otperformance export#6278
pichlermarc merged 4 commits intoopen-telemetry:mainfrom
samchungy:create-global-type

Conversation

@samchungy
Copy link
Copy Markdown
Contributor

@samchungy samchungy commented Jan 12, 2026

Which problem is this PR solving?

This PR introduced a change which requires users to use DOM types or use skipLibCheck

Example in our CI failing:
https://github.com/seek-oss/skuba/actions/runs/20899166995/job/60042387974?pr=2202#step:5:562

Fixes # (issue)

Short description of the changes

Explicitly types the optperformance export to avoid referencing DOM types

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?

Locally

  • Test A

Checklist:

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

@samchungy samchungy requested a review from a team as a code owner January 12, 2026 04:23
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Jan 12, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Copy Markdown
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

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

Hi @samchungy thanks for reaching out and reporting this.
I'd like to suggest using a type definition we had used previously for this, see comment below.

Comment thread packages/opentelemetry-core/src/platform/node/index.ts Outdated
Co-authored-by: pichlermarc <pichlermarc@users.noreply.github.com>
@samchungy samchungy changed the title fix(core): Create global type for Node.js fix(core): Avoid using DOM types for otperformance export Jan 12, 2026
@pichlermarc
Copy link
Copy Markdown
Member

Thanks! Please also add a changelog entry in ./CHANGELOG.md, then this PR should be good to go. 🙂

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.39%. Comparing base (87a0b45) to head (813ec53).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6278   +/-   ##
=======================================
  Coverage   95.39%   95.39%           
=======================================
  Files         316      316           
  Lines        9558     9558           
  Branches     2210     2210           
=======================================
  Hits         9118     9118           
  Misses        440      440           
🚀 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.

Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
@pichlermarc pichlermarc enabled auto-merge January 14, 2026 09:46
@pichlermarc pichlermarc added this pull request to the merge queue Jan 14, 2026
@pichlermarc pichlermarc linked an issue Jan 14, 2026 that may be closed by this pull request
Merged via the queue into open-telemetry:main with commit 52a1367 Jan 14, 2026
27 checks passed
@otelbot
Copy link
Copy Markdown
Contributor

otelbot Bot commented Jan 14, 2026

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

maryliag pushed a commit to maryliag/opentelemetry-js that referenced this pull request Jan 15, 2026
…etry#6278)

Co-authored-by: pichlermarc <pichlermarc@users.noreply.github.com>
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeScript build error after upgrading to core 2.3.0

2 participants