You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide the code you used to setup the OpenTelemetry SDK
consttracerProvider=newWebTracerProvider({
plugins,// array of plugin instancesresource: initResource(),// instance of `Resource`});tracerProvider.addSpanProcessor(initSpanProcessor());// BatchSpanProcessor instancetracerProvider.register();
What did you do?
This week we launched tracing with otel in our browsers. We started receiving the following error immediately after:
TypeError: entryTypes contained only unsupported types
Our breadcrumbs indicated this was coming from xhr.js, on a specific browser/OS combination.
OS: macOS 10.11 (El Capitan, which is normally bundled with Safari 9)
Browser: Safari 11 (the version released with with macOS 10.13)
This means it was only happening to users who upgraded Safari to 11, but not their OS.
caniuse reports that Resource Timing is supported in Safari 11, but it's limited to macOS 10.12+.
However, PerformanceObserver is supported in this browser combination so the support check currently passes.
What did you expect to see?
I expect the plugin to handle checking support for the entryTypes it observes via PerformanceObserver. For resource entries, this would look like typeof window.PerformanceResourceTiming === 'function' in addition to the PerformanceObserver check.
What did you see instead?
The support check passes and PerformanceObserver throws a TypeError.
Additional context
Some browsers are starting to support PerformanceObserver.supportedEntryTypes, but this is still experimental. So I think explicitly checking the entryType's interface is the safest option.
The text was updated successfully, but these errors were encountered:
What version of OpenTelemetry are you using?
0.12.0
What version of Node are you using?
Using in browser
Please provide the code you used to setup the OpenTelemetry SDK
What did you do?
This week we launched tracing with otel in our browsers. We started receiving the following error immediately after:
TypeError: entryTypes contained only unsupported types
Our breadcrumbs indicated this was coming from
xhr.js
, on a specific browser/OS combination.OS: macOS 10.11 (El Capitan, which is normally bundled with Safari 9)
Browser: Safari 11 (the version released with with macOS 10.13)
This means it was only happening to users who upgraded Safari to 11, but not their OS.
caniuse reports that Resource Timing is supported in Safari 11, but it's limited to macOS 10.12+.
However,
PerformanceObserver
is supported in this browser combination so the support check currently passes.What did you expect to see?
I expect the plugin to handle checking support for the
entryTypes
it observes viaPerformanceObserver
. For resource entries, this would look liketypeof window.PerformanceResourceTiming === 'function'
in addition to thePerformanceObserver
check.What did you see instead?
The support check passes and
PerformanceObserver
throws a TypeError.Additional context
Some browsers are starting to support
PerformanceObserver.supportedEntryTypes
, but this is still experimental. So I think explicitly checking the entryType's interface is the safest option.The text was updated successfully, but these errors were encountered: