- 
                Notifications
    
You must be signed in to change notification settings  - Fork 19
 
Open
Description
Registering a LogRecordProcessor throws an exception reading:
An error occurred while loading instrumentation hook: Cannot read properties of undefined (reading 'attributeCountLimit')
This was possibly introduced in open-telemetry/opentelemetry-js#4564. Upgrading @opentelemetry/sdk-logs seems to fix the issue but only if you do not pass anything to logRecordProcessor and instead create your own logRecordProcessor and pass a resource and empty value for logRecordLimits.
This only happens on the edge runtime, at runtime (not build), when there is a middleware.ts file (NextJS), and using SimpleLogRecordProcessor,
Updating the range for peer dependencies in #89 seems to have solved the warnings from package managers during installation but not actual logic changes.
billliu1992, bolga21, matis-dk, smndtrl, zloit and 1 more
Metadata
Metadata
Assignees
Labels
No labels