Skip to content

Conversation

@lewgordon-amplitude
Copy link
Collaborator

@lewgordon-amplitude lewgordon-amplitude commented Dec 5, 2025

Summary

I forgot to expose these options in the plugin too.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: No

…tor generation

Add InteractionPerformanceConfig interface to plugin types to expose the
selector generation performance options added in session-replay-browser.

This allows plugin users to configure:
- timeoutMs: max time for selector generation before timeout
- maxNumberOfTries: max optimization attempts for path simplification
- threshold: max selector combinations to evaluate

Configuration is accessible via:
performanceConfig.interaction.{timeoutMs,maxNumberOfTries,threshold}

Related to SR-2196.
@promptless
Copy link

promptless bot commented Dec 5, 2025

📝 Documentation updates detected!

Updated existing suggestion: Document performanceConfig.interaction options for Session Replay Browser SDK

@lewgordon-amplitude lewgordon-amplitude merged commit 85ec6e4 into main Dec 9, 2025
9 checks passed
@lewgordon-amplitude lewgordon-amplitude deleted the SR-2196-add-performance-options-to-plugin branch December 9, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants