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

feat: add esnext target for web instrumentations #1776

Merged
merged 4 commits into from
Nov 10, 2023

Conversation

martinkuba
Copy link
Contributor

Which problem is this PR solving?

Fixes #1756

Short description of the changes

This adds esnext build target for all web instrumentations. Currently, only esm is published, which is incompatible with the esnext code from core libraries when subclassing (see the linked issue above). This should also reduce bundle size when targeting newer browsers (no polyfills).

@martinkuba martinkuba requested a review from a team November 7, 2023 00:33
@martinkuba martinkuba added the Target: Browser Targets on Browser label Nov 7, 2023
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Merging #1776 (1c6a287) into main (da94ee9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1776   +/-   ##
=======================================
  Coverage   91.42%   91.42%           
=======================================
  Files         143      143           
  Lines        7299     7299           
  Branches     1458     1458           
=======================================
  Hits         6673     6673           
  Misses        626      626           

Copy link
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.

Looks good, thank you for working on this 🙂

@pichlermarc pichlermarc merged commit 2698bb1 into open-telemetry:main Nov 10, 2023
@dyladan dyladan mentioned this pull request Nov 10, 2023
jmcdo29 pushed a commit to jmcdo29/opentelemetry-js-contrib that referenced this pull request Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants