opentelemetry-js
opentelemetry-js copied to clipboard
Fix #4712
Which problem is this PR solving?
Fix #4712, related to #3713.
TypeScript emits InstrumentationNodeModuleDefinition
with | undefined
for some reason, making it incompatible with InstrumentationModuleDefinition
under exactOptionalPropertyTypes: true
.
Type of change
Please delete options that are not relevant.
- [x] 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?
I'm using OpenTelemetry indirectly via Sentry. I applied this patch locally to the latest version of @opentelemetry/instrumentation
and it resolved the issue.
Checklist:
- [x] Followed the style guidelines of this project
- [ ] Unit tests have been added
- [ ] Documentation has been updated