Skip to content

v1.0.0

Choose a tag to compare

@srv-gh-o11y-rum srv-gh-o11y-rum released this 01 Oct 10:47
8683a9f

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 - Use applicationName instead
        • beaconUrl - Use beaconEndpoint instead
        • environment - Use deploymentEnvironment instead
        • rumAuth - Use rumAccessToken instead
      • Removed deprecated API methods:
        • SplunkRum._experimental_getGlobalAttributes() - Use SplunkRum.getGlobalAttributes() instead
        • SplunkRum.error(...args) - Use SplunkRum.reportError(error, context) instead
        • SplunkRum._experimental_addEventListener(name, callback) - Use SplunkRum.addEventListener(name, callback) instead
        • SplunkRum._experimental_removeEventListener(name, callback) - Use SplunkRum.removeEventListener(name, callback) instead
        • SplunkRum._experimental_getSessionId() - Use SplunkRum.getSessionId() instead
    • Session Management Changes #1289

      • Session lifecycle management has been simplified and now works independently
      • Sessions are extended only when click, scroll, touch, and keydown events are detected
      • Previously, we extended sessions based on the _experimental_allSpansExtendSession and _experimental_longtaskNoStartSession config 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 recorderType configuration option - The recorder: 'rrweb|splunk' option is no longer supported
      • Please refer to the Record browser sessions docs for more details.
    • Session Replay Enhancements #1368

      • Added persistFailedReplayData option to improve replay data reliability (set to true by default)
      • When persistFailedReplayData is 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

Migration Guide

If you're upgrading from a previous version, please ensure:

  1. 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',
    })
  2. 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>