v1.0.0
1.0.0
🎉 We're out of beta! This is the first stable release of Splunk OpenTelemetry JavaScript Web SDK.
Breaking Changes
This release includes several breaking changes as we graduate from beta to stable:
-
@splunk/otel-web-
Removed Legacy Build Support #1366
- Dropped support for legacy browsers (Internet Explorer)
- The legacy build that provided IE compatibility has been removed
-
Removed Deprecated and Experimental APIs #1331
- All APIs marked as deprecated in previous versions have been removed
- All experimental APIs (prefixed with
_experimental_) have been removed or promoted to stable - Removed deprecated configuration options:
app- UseapplicationNameinsteadbeaconUrl- UsebeaconEndpointinsteadenvironment- UsedeploymentEnvironmentinsteadrumAuth- UserumAccessTokeninstead
- Removed deprecated API methods:
SplunkRum._experimental_getGlobalAttributes()- UseSplunkRum.getGlobalAttributes()insteadSplunkRum.error(...args)- UseSplunkRum.reportError(error, context)insteadSplunkRum._experimental_addEventListener(name, callback)- UseSplunkRum.addEventListener(name, callback)insteadSplunkRum._experimental_removeEventListener(name, callback)- UseSplunkRum.removeEventListener(name, callback)insteadSplunkRum._experimental_getSessionId()- UseSplunkRum.getSessionId()instead
-
Session Management Changes #1289
- Session lifecycle management has been simplified and now works independently
- Sessions are extended only when
click,scroll,touch, andkeydownevents are detected - Previously, we extended sessions based on the
_experimental_allSpansExtendSessionand_experimental_longtaskNoStartSessionconfig options. These options are no longer supported and can be removed from your configuration.
-
-
@splunk/otel-web-session-recorder-
Session Recorder Breaking Changes #1330
- Removed rrweb dependency - The session recorder no longer uses the external rrweb library
- Replaced with Splunk's native recorder - Session recording is now handled by Splunk's proprietary, more efficient recording engine
- Removed
recorderTypeconfiguration option - Therecorder: 'rrweb|splunk'option is no longer supported - Please refer to the Record browser sessions docs for more details.
-
Session Replay Enhancements #1368
- Added
persistFailedReplayDataoption to improve replay data reliability (set totrueby default) - When
persistFailedReplayDatais enabled, data that we are unable to send to Splunk is persisted to local storage and sent again when the page is reloaded. - There is a 2MB limit for data stored in local storage
- Added
-
Migration Guide
If you're upgrading from a previous version, please ensure:
-
Update your configuration to use the new option names:
// Before (deprecated) SplunkRum.init({ app: 'my-app', beaconUrl: 'https://...', environment: 'production', rumAuth: 'token', }) // After (stable) SplunkRum.init({ applicationName: 'my-app', beaconEndpoint: 'https://...', deploymentEnvironment: 'production', rumAccessToken: 'token', })
-
Update your API calls to use the stable methods:
// Before (deprecated) SplunkRum._experimental_getGlobalAttributes() SplunkRum.error('Something went wrong') // After (stable) SplunkRum.getGlobalAttributes() SplunkRum.reportError('Something went wrong')
CDN
Version v1.0.0
splunk-otel-web-session-recorder.js:
<script src="https://cdn.signalfx.com/o11y-gdi-rum/v1.0.0/splunk-otel-web-session-recorder.js" integrity="sha384-YjsSwSwKGZC5OBUvd88p9Iwat5hj/V3bg9aA/3RwwhMFQFXoNr25eumFo/PN6M7m" crossorigin="anonymous"></script>
splunk-otel-web.js:
<script src="https://cdn.signalfx.com/o11y-gdi-rum/v1.0.0/splunk-otel-web.js" integrity="sha384-fWHQKHi0Uppw3FP4QXbLWy8MFwna/Ib2anyxtKJ/Bk3AbY8mRZFMf2KP1j4Gj2bz" crossorigin="anonymous"></script>Version v1.0
WARNING: Content behind this URL might be updated when we release a new version.
For this reason we do not provide integrity attribute.
splunk-otel-web-session-recorder.js:
<script src="https://cdn.signalfx.com/o11y-gdi-rum/v1.0/splunk-otel-web-session-recorder.js" crossorigin="anonymous"></script>
splunk-otel-web.js:
<script src="https://cdn.signalfx.com/o11y-gdi-rum/v1.0/splunk-otel-web.js" crossorigin="anonymous"></script>Version v1
WARNING: Content behind this URL might be updated when we release a new version.
For this reason we do not provide integrity attribute.
splunk-otel-web-session-recorder.js:
<script src="https://cdn.signalfx.com/o11y-gdi-rum/v1/splunk-otel-web-session-recorder.js" crossorigin="anonymous"></script>
splunk-otel-web.js:
<script src="https://cdn.signalfx.com/o11y-gdi-rum/v1/splunk-otel-web.js" crossorigin="anonymous"></script>Version latest
WARNING: Content behind this URL might be updated when we release a new version.
For this reason we do not provide integrity attribute.
splunk-otel-web-session-recorder.js:
<script src="https://cdn.signalfx.com/o11y-gdi-rum/latest/splunk-otel-web-session-recorder.js" crossorigin="anonymous"></script>
splunk-otel-web.js:
<script src="https://cdn.signalfx.com/o11y-gdi-rum/latest/splunk-otel-web.js" crossorigin="anonymous"></script>