-
Notifications
You must be signed in to change notification settings - Fork 812
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
InstrumentationBase#init triggers cascading errors #4712
Comments
Closing this as it looks like a duplicate of #3713 |
alecmev
added a commit
to alecmev/opentelemetry-js
that referenced
this issue
Jun 30, 2024
TypeScript emits InstrumentationNodeModuleDefinition with " | undefined" for some reason, making it incompatible with InstrumentationModuleDefinition under exactOptionalPropertyTypes.
7 tasks
alecmev
added a commit
to alecmev/opentelemetry-js
that referenced
this issue
Jul 5, 2024
TypeScript emits InstrumentationNodeModuleDefinition with " | undefined" for some reason, making it incompatible with InstrumentationModuleDefinition under exactOptionalPropertyTypes.
alecmev
added a commit
to alecmev/opentelemetry-js
that referenced
this issue
Jul 16, 2024
TypeScript emits InstrumentationNodeModuleDefinition with " | undefined" for some reason, making it incompatible with InstrumentationModuleDefinition under exactOptionalPropertyTypes.
alecmev
added a commit
to alecmev/opentelemetry-js
that referenced
this issue
Aug 13, 2024
TypeScript emits InstrumentationNodeModuleDefinition with " | undefined" for some reason, making it incompatible with InstrumentationModuleDefinition under exactOptionalPropertyTypes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Steps to Reproduce
Expected Result
The app builds
Actual Result
The app triggers a build error for every individual instrumentation installed.
Additional Details
In this example, the following instrumentations are installed through
sentry@1.8.0
:This was reproduced with pnpm, npm and bun.
For readability, the provided log comes from npm.
I can only reproduce this using
tsc
. The provided setup code does not provide any issues when ran withtsx
and the Buntime (bun index.ts
). I assume this is because tsx and the Buntime do the equiviliant of tsc'sskipLibCheck
.OpenTelemetry Setup Code
package.json
Relevant log output
The text was updated successfully, but these errors were encountered: