Skip to content

Migrate puppeteer service to modular session architecture#182

Open
briannadelvalle-datadog wants to merge 2 commits into
mainfrom
TRAIN-3546-puppeteer-improvements
Open

Migrate puppeteer service to modular session architecture#182
briannadelvalle-datadog wants to merge 2 commits into
mainfrom
TRAIN-3546-puppeteer-improvements

Conversation

@briannadelvalle-datadog

Copy link
Copy Markdown

Summary

  • Replaces the monolithic scripts/puppeteer.js / puppeteer.sh with a modular architecture: index.js entrypoint, core/sessionManager.js, a pooled browser layer (browser/), and discrete session types under scripts/sessions/.
  • Adds package.json/package-lock.json, example session recordings, a .dockerignore, and a service README.md + CHANGELOG.md.

Notes

  • Independent PR off main (no dependency on the other TRAIN-3546 PRs).

Test plan

  • docker compose build puppeteer
  • Run the puppeteer service against a running storedog and confirm sessions execute.

Made with Cursor

Replace the monolithic puppeteer.js/puppeteer.sh with a modular
architecture: an index.js entrypoint, a session manager, a pooled
browser layer, and discrete session types under scripts/sessions/.
Adds package.json, example session recordings, a .dockerignore, and
a service README/CHANGELOG.

Co-authored-by: Cursor <cursoragent@cursor.com>
@briannadelvalle-datadog briannadelvalle-datadog requested review from a team as code owners June 8, 2026 18:14
The example-sessions/ RUM payloads were not referenced by any code or
tests. Drop them and the CHANGELOG mention.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant